Entering content frameProcedure documentation Unit 9: Adding a User Decision Locate the document in its SAP Library structure

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

  1. Choose This graphic is explained in the accompanying text under step type. The cursor changes shape.
  2. Position the cursor on the Undefined step that follows the outcome notification of absence Rejected and click.
  3. 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

  4. Enter Your request was rejected by &. Revise? in the Title field.
  5. 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.

  6. Choose the F4 input help in the Parameter 1 field.
  7. The Expression for first parameter of user decision dialog box is then displayed.

  8. Choose the Approver container element by double-clicking it.
  9. Entering alternative decisions

  10. Define the alternative decisions. Enter the following texts:
  11. 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

  12. Choose Workflow initiator (expression) under Agents.

The system enters the expression &_WF_INITIATOR& in the Expression field and in the input field beside the checkbox.

Concluding step definition

  1. Choose This graphic is explained in the accompanying text to check the step definition.
  2. Choose This graphic is explained in the accompanying text to exit the step definition.
  3. Choose This graphic is explained in the accompanying text to view the entire workflow definition in the workflow area on the screen.
  4. 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.

  5. Choose This graphic is explained in the accompanying text.

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.

Leaving content frame