Sap-business-workflow-creating-steps
提供:Dev Guides
SAP Business Workflow-ステップの作成
ワークフローでステップを使用して、タスクを実行したり、ワークフローを制御したりします。 ステップは常にブロック内に作成され、ブロックには常にステップとその結果が含まれます。 ステップは、グラフィカルモードで未定義のステップを変更することで作成できますが、新しいステップを追加することもできます。
ワークフロー内の未定義のステップを変更するには、未定義のステップをダブルクリックすると、ステップ選択が開きます。 次のスクリーンショットに示すように、ステップタイプを選択します。
要件に応じて選択できるさまざまなステップタイプがあります。 次に、いくつかの一般的なステップタイプ、ワークフロー内のシンボル、および説明を示します。
Symbol | Step Type | Step Runtime Function Description |
---|---|---|
Process control | Process control | The functions Cancel workitem or Set workitem to obsolete are applied to other workitems of the current workflow. |
Ad hoc anchor | Ad hoc anchor | In the definition, you save workflows that can replace this step. At runtime, an authorized user can select one of the saved workflows. The ad-hoc anchor is then replaced by the steps of this workflow. |
Activity | Activity | Execution of a task or sub-workflow. |
Condition | Condition | One of two branches defined in the workflow definition is processed. The system makes the decision based on the defined conditions. While doing this, the system takes account of information from the context of the workflow or the application objects processed. |
User decision | User decision | The process flow of the current workflow is controlled on the basis of a decision made by the current agent. |
Document from template | Document from template | A document is created from a document template. |
Container operation | Container operation | Elementary arithmetic operations or value assignments are applied to individual elements of the workflow container. |
Event creator | Event creator | An event is created. |
Form | Form | The data in a container element that refers to a structure can be displayed, processed, or approved as a form. |
Send mail | Send mail | The text entered in this step type is sent as an e-mail. |
Multiple condition | Multiple condition | One of the several branches defined in the workflow definition is processed. To do this, the system checks the value of a container element in the workflow container. |
Fork | Fork | The processing that follows takes place in a fork. You can define how many branches have to be executed for the fork to be successfully completed, or you define an end condition in the condition editor. |
Step Undefined | Undefined step | No function at runtime. Undefined steps always have an outcome. |
Loop UNTIL | Loop (UNTIL) | A sequence of steps is processed repeatedly until the defined termination condition occurs. |
Loop WHILE | Loop (WHILE) | A sequence of steps is processed repeatedly as long as the defined comparisons apply. The system leaves the loop when the basis of comparison does not agree with any of the comparison values. |
Wait for event | Wait for event | The system waits for a specific event. The work item is only completed if the expected event occurs. The event can also be triggered by the occurrence of an XML document. |
Web activity | Web activity | The content of container elements is sent to a URL unchanged or in the form of a generated XML document. The step can wait for a reply. Communication with a process started by a Web activity is possible. A process started by an XML message can communicate with its caller. |
既存のワークフローに新しいステップを挿入するとき、その位置は、ステップまたは以前に選択した結果によって異なります。
Where do you want to insert the step | What do you have to select |
---|---|
After a step | The outcome of the step, which is located in the relevant branch of the workflow definition |
Before a step | The step |
As a new branch of a fork | The Branch symbol before the fork |
待機ステップの使用
ワークフローの待機ステップは、次を待つことができます-
- イベント
- ローカルイベント
- 作業項目
- ワークフローが受信したイベント
待機ステップがイベントを待機している場合、特定のイベントが発生すると終了します。 イベントは、その特定のイベントを待っているすべての待機ステップを終了します。 これは一般的に使用されます-
- 特定のイベントが発生するまでワークフローを一時停止するには
- 別のシステムで開始された別のワークフローの結果として
- 並列処理のイベントとして
他のワークフローからのローカルイベント、条件、またはイベントを待機しているときと同じように機能します。
Wait for event | Wait for event | The system waits for a specific event. The work item is only completed if the expected event occurs. The event can also be triggered by the occurrence of an XML document. |