Show TOC

 3.3 Adding a Branch (Multiple Condition) in the Workflow Template

Use

In this lesson, you insert a branch into the process flow of your workflow template. To do this, you insert a workflow step ( Multiple Condition step type) and determine the required information for this step.

An approval step results in one of the following actions, each affecting the process flow differently:

Approved

If the workflow step ends with the result Approved , you can complete the process by saving the data in the back-end system in the infotypes.

Rejected

If the workflow step ends with the result Back to Author , the form must be sent back to the author.

Back to Author

If the workflow step ends with the result Rejected , the system exits the workflow. No further steps are necessary.

With multiple condition step types, the system must check the approval step result to control the flow of the process.

Procedure

Open the Workflow Builder .

Choose the Step Types That Can Be Inserted menu bar.

Choose the Multiple Condition entry, and hold down the left-hand mouse button to drag it onto the Graphical Model area, onto the line after the approval step.

The mouse pointer uses a plus symbol (+) to show you where you can insert the multiple condition.

The detail view for the multiple condition appears.

Choose the Condition tab page and enter the following data:

Step Name Approved?

Type CASE

Choose the input help for Comparison Basis . The Expression for Comparison Basis dialog box appears.

Double-click the PROCSTATE container element.

Create the necessary branchings in the process flow. To do this, use the input help in the Value column to enter the following constants in the PROCSTATE container element in the Comparison Values area:

Value

Outcome Name

APPROVED

Approved

REJECTED

Rejected

BACK

Back to Author

The values of the constants represent the functions with which a user can exit the form application for approval.

In the Outcome Name column, enter the names in the table above to provide labels for the branches in the workflow.

Choose Transfer and to Graphic

Save and activate your workflow template.

Result

Your workflow template now looks like the following figure:

The first process step in which the employee starts the process is outside of the workflow and is therefore not represented in this graphic. The Edit Relocation Form (Superior) step (which the figure shows as the first step) is the second step of the process.