
Unit 9: Adding a User Decision
Use
In the previous units, you created a workflow whose definition contains two activities. These activities are based on two standard tasks that you created.
In this unit, you will add a
user decision to your workflow definition.With the user decision, the requester can decide to revise and resubmit the notification of absence if the head of department rejects it.
For further information, refer to
Maintenance of User Decisions in the SAP Business Workflow documentation.Procedure
You start the Workflow Builder and open your workflow definition in Change mode. Proceed as described in
Unit 7: Including "Check Notification of Absence" in the Workflow Definition.Creating a user decision as a step in the workflow definition
By doing so, you add a user decision to your workflow definition. The step definition is shown in the right-hand part of the screen. The Decision tab is displayed.
Entering basic data for user decision
This text is used as the title for the alternative decisions when the workflow is executed. The variable
& is a placeholder for a parameter that is filled from the task container at runtime.The Expression for first parameter of user decision dialog box is then displayed.
Entering alternative decisions
Decision texts |
Name |
Decision: Revise request? |
Revise notification of absence |
Decision: Withdraw request? |
Withdraw notification of absence |
The decision texts you enter here appear as decision options on the screen that can be processed by the requester after their leave request has been rejected.
The descriptions are the terms used to describe the outcomes in the workflow definition.
Entering the agents responsible
The system enters the expression
Concluding step definition
You can see that your workflow definition contains a user decision in the Notification of absence rejected branch. This has two outcomes whose branches converge again in the Notification of absence rejected branch. Each new branch contains an undefined step.
The workflow definition is checked, saved, and, provided it does not contain any errors, activated. The system displays a message if problems are encountered during the test.
Result
You can now subject your workflow definition to another test.