`
evangxli
  • 浏览: 231681 次
  • 性别: Icon_minigender_1
  • 来自: 大连
社区版块
存档分类
最新评论

转 Building a simple Workflow via "User Decision" and "Mail"

阅读更多

Developing a simple application using steps "User Decision" and "Mail"

By Suresh Kumar Parvathaneni from link.

Basic terminology used in the workflow:

 

The workflow definition is the set of rules that determine the path that the process takes. For example, how a purchase requisition is processed, from the initial request to the creation of the purchase order

 

A Workflow Instance, which is often simply referred to as the workflow, is a single workflow run. For example, the processing of a single purchase requisition for computers.

 

The Tasks are the steps in the process, which have to be performed either by people or automatically by the software. For example, to check for the availability of the spare computers in the company.

 

A Work item is the task instance that is performed as a single workflow step. For example, check that there are no spare computers available in the company.

 

Agents are the people who process the tasks (via the work items). For example, requisitioner and a member of the purchasing department.

 

Container is the place where all the data used in the workflow is collected.

 

Bindingis the set of rules that define which data is passed to which part of the process.

 

 

Building a simple workflow application

 The central tool for creating, displaying and processing a workflow is the workflow builder (Transaction SWDD). Within the workflow builder you can create all components of a workflow, including all the containers you need for getting the data from one step to another.

 

Generally, most of the workflows are started by an event (for example, when a material is created or when a new purchase requisition arrives). You define which data from this event needs to be passed to the workflow via binding.

 

However you can also start any workflow directly. Let us create a simple workflow and start the workflow directly, using the testing tools. 

 

Call transaction SWDD. When the workflow builder is called for the first time, a newly created initial workflow definition appears or else last created workflow appears. In such cases you can opt to create a new workflow by pressing “Create New Workflow”(ctrl + shft + F5). The following screen appears. 

The initial workflow screen has the following parts:

  1. The start of the workflow definition, indicated by .
  2. The end of the workflow definition, indicated by .
  3. The area in which you insert the new workflow definition is indicated by .

Now select the undefined step and select Create step or double click the undefined step. Now among the different steps chose the User Decision by double clicking on it.

Now enter the title for the user decision “ Please make a decision”. Also enter the decision texts as Approve and Reject. On pressing enter, the outcome values default to the Decision texts but you can specify your own names, if desired. Now we need to select the agent. Agent is the person to whom the work item needs to be sent.. Since this is just a beginning, we would hardcode the user name. Select the User from the drop down list and enter the user name to whom the work item needs to be sent. In general, this type of agent assignment is not done. Agents are generally assigned using the expression, agent assignment rule or organization object (job, position etc.). 

 
Now select  Transfer and to graphic button. Following screen appears:

Now we need to include a mail step to be sent to the requestor. Now select the line “Approve” and do a right click. Different options on shown on the context menu. Select Create. 

Now select the step “Send Mail” from the list.

Now enter the subject and the body of the message for the mail to be sent.


Do not change the recipients. Our mail is intended for the persons who triggered this workflow. &_WF_INITIATOR& contains the value who executed the workflow. Since this is a test object, we are using &_WF_INITIATOR&. But we wouldn’t be using this variable in real time scenarios. We would discuss about this in the coming documents.

Now select  Transfer and to graphic button.
A popup appears requesting for the abbreviation and the name for this task. Enter the same and press enter.
Now enter the package as local object and press enter.
Follow the steps 5 through 9 for the step “Reject”. The following screen appears:
Press SAVE to save the workflow application. You need to enter an abbreviation and name for your workflow as shown below. You can change any of these at any later point. After saving, a number is assigned to your workflow starting with WS, as shown below.

To execute the workflow, activate it by choosing the activate button.
Test the workflow by choosing  Test. The following screen appears.

Now choose  Execute to start the workflow.
Now the recipient would receive a work item in his SAP® inbox (Transaction SBWP).

Now execute the work item by pressing “Execute”. The following screen appears:
Choose one among Approve  or Reject as part of the user decision. He can select the third option to retain the work item in his inbox and make the decision later. Now suppose that the recipient has chosen one of the first options. Now a mail would be sent to the requestor with the status of his request.

分享到:
评论

相关推荐

    simple workflow

    "Simple Workflow"标题暗示我们将会探讨一个简洁易懂的工作流实现,适合初学者或者需要快速理解工作流概念的开发者。 在描述中提到“very easy to understand the idea of workflow”,这表明这个压缩包可能包含了...

    Simple Workflow:Simple Workflow是使用Java编写的免费工作流引擎。-开源

    Simple Workflow是使用Java编写的免费工作流引擎。 属性:-简单易用(只需调用2个方法并实现1个接口)-用Java 7写成-使用简单的域语言描述工作流-可以与任何存储后端(Sql,NoSql,File等)一起使用-可以与任何前端...

    AVAYA Workflow Designer User Guide

    根据提供的文件信息,我们可以推断出《AVAYA Workflow Designer User Guide》是针对AVAYA交互中心(Avaya Interaction Center)版本7.1的工作流设计工具的用户指南。该文档详细介绍了如何使用AVAYA Workflow ...

    Building.Tools.with.GitHub.Customize.Your.Workflow.epub

    Each hands-on chapter is a compelling story that walks you through the tradeoffs and considerations for building applications on top of various GitHub technologies. If you’re an experienced ...

    Beginning WF: Windows Workflow in .NET 4.0

    Beginning WF: Windows Workflow in .NET 4.0 By Mark ... Mark currently serves as a senior software engineer for a nonprofit organization, providing a custom CRM, mail processing, and fulfillment system.

    TMS Workflow Studio v1.9.0.0 Full Source

    With Workflow Studio you can easily add workflow and BPM capabilities to your application,by allowing you or your end-user to create workflow definitions and running them. v1.9.0.0 New : ...

    Building Tools with GitHub Customize Your Workflow mobi

    Building Tools with GitHub Customize Your Workflow 英文mobi 本资源转载自网络,如有侵权,请联系上传者或csdn删除 本资源转载自网络,如有侵权,请联系上传者或csdn删除

    Building Tools with GitHub Customize Your Workflow 无水印pdf

    Building Tools with GitHub Customize Your Workflow 英文无水印pdf pdf所有页面使用FoxitReader和PDF-XChangeViewer测试都可以打开 本资源转载自网络,如有侵权,请联系上传者或csdn删除 本资源转载自网络,...

    developing a reusable workflow engine

    文章“Developing a Reusable Workflow Engine”由Diogo M. R. Ferreira和J. J. Pinto Ferreira撰写,发表于《系统架构杂志》(Journal of Systems Architecture)2004年6月的第50卷,第6期。文章的关键词包括工作流...

    Creating an SAP Workflow with Workflow Builder

    create a simple workflow, and then build upon it to show enhanced features. Understand data flow, find out about the types of steps you can use to create a workflow, and send a workflow to production.

    workflow-in-mvc-simple-demo

    本项目"workflow-in-mvc-simple-demo"旨在提供一个简单的示例,展示如何将工作流集成到MVC应用中,以实现更加灵活和可维护的业务逻辑。 首先,让我们深入了解一下工作流(Workflow)。工作流是一系列按特定顺序执行...

    WORKFLOW AND PARALLELEXTENSIONS IN .NET FRAMEWORK 4

    ### WORKFLOW AND PARALLELEXTENSIONS IN .NET FRAMEWORK 4 #### Microsoft TPL 和 Windows Workflow Foundation 整合使用 在 .NET Framework 4 中,引入了新的并行编程模型来支持多线程操作,这其中包括了 **...

    workflow.part3.rar

    This program communicates notifications to users via e–mail and interprets responses. The Notification Mailer has implementations that can integrate directly with UNIX Sendmail or MAPI–compliant ...

    workflow.part1.rar

    This program communicates notifications to users via e–mail and interprets responses. The Notification Mailer has implementations that can integrate directly with UNIX Sendmail or MAPI–compliant ...

Global site tag (gtag.js) - Google Analytics