Show TOC

 3.3 Branching to Reaction to Result of Including the Approval Step 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 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.

Procedure

  1. 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 .

  2. 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.

  3. Choose the Condition tab page.

  4. In the Step Name field, enter the Approved? name.

  5. In the Type field, use the input help to select the entry CASE.

  6. Access the input help for the Comparison Basis field.

    The Expression for Comparison Basis dialog box appears.

  7. Double-click the PROCSTATE container element to select it.

  8. 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.

  9. 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

  10. Choose Transfer and Go to Graphic .

  11. Save and activate your workflow template.

Result

Your workflow template now looks like the following graphic:

Note 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.

End of the note.