In this lesson, you insert a branch into the process flow of your workflow template. To do this, you insert a workflow step with step type
Multiple Condition
, and determine the required information for this step.
You can end an approval step with the result
Approved, Rejected
,or
Back to Author
. These different results affect the further process flow.
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.
If the workflow step ends with the result
Back to Author
, the form must be sent back to the author.
If the workflow step ends with the result
Rejected
, the system exits the workflow. No further steps are necessary.
For the process flow, in the multiple condition, the system must check the approval step result to control the following processing processes, and to perform the necessary branching to processing.
Access the insertable steps for your workflow template. Access the
Step Types That Can Be Inserted
area at the bottom left of the
Workflow Builder
.
Select the
Multiple Condition
entry, and hold down the left-hand mouse button to drag it into 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.
In the
Step Name
field, enter the
Approved?
name.
In the
Type
field, use the input help to select the entry CASE.
Access the input help for the
Comparison Basis
field.
The
Expression for Comparison Basis
dialog box appears.
Double-click the PROCSTATE container element to select it.
Create the necessary branchings in the process flow . To do this, specify the following constants for the PROCSTATE container element in the
Comparison Values
area in the left-hand column:
APPROVED
REJECTED
BACK
The values of the constants represent the functions with which a user can exitthe form application for approval.
In the
Comparison Values
area in the right-hand column, specify the following names for branching to the workflow:
APPROVED –
Approved
REJECTED –
Rejected
BACK –
Back to Author
Choose
Transfer and Go to Graphic
.
Save and activate your workflow template.
Your workflow template now looks like the following graphic:
Note
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 that the graphic shows as the first step is the second step of the process.