Unit 13: Adding Container Operations

Use

You have added an UNTIL loop to your workflow definition. To ensure that this loop condition is executed correctly, you have to add container operations to your workflow definition that change the value of the flag container element in accordance with how the workflow is executed.

Prerequisites

You have added an UNTIL loop to your workflow definition.

Procedure

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

Integrating container operations as a step

You can manipulate the individual elements of the workflow container using a container operation type step.

You need to insert a container operation at three different points in your workflow definition.

  • After the outcome Request revised

    At this point, you assign the workflow container element Flag the value Z. The comparison in the UNTIL loop then returns the result false. In this case, the workflow continues via the outcome Flag does not have value X and the request is resubmitted to the superior's Business Workplace.

  • After the outcome Withdraw

    At this point, you assign the workflow container element Flag the value X. The comparison in the UNTIL loop returns the result true. The loop is exited.

  • After the outcome Approved:

    You assign the container element Flag the value X. The comparison in the UNTIL loop returns the result true. The loop is exited.

Container operation after the outcome revised event

  1. Choose under step type. The cursor changes shape.

  2. Position the cursor on the Undefined step that follows the outcome Request revised and click.

    By doing so, you add a container operation to your workflow definition. The step definition is shown in the right-hand part of the screen.

  3. Enter the following basic data:

    • Step name: Set flag to Z

    • Outcome name: Flag = Z

  4. Specify the following for the operation:

    • Result element: Flag (select using F4 input help)

    • Expression: Z

      The input fields for the operator and second expression must be empty.

  5. Choose .

Container operation after the outcome withdraw request

  1. Choose under step type. The cursor changes shape.

  2. Position the cursor on the Undefined step that follows the outcome Withdraw request and click.

    By doing so, you add a container operation to your workflow definition. The step definition is shown in the right-hand part of the screen.

  3. Enter the following basic data:

    • Step name: Set flag to X

    • Outcome name: Flag = X

  4. Specify the following for the operation:

    • Result element: Flag (select using F4 input help)

    • Expression: X

    The input fields for the operator and second expression must be empty.

  5. Choose .

Container operation after the outcome request approved

Since this container operation is identical to the one created above, you can simply copy it.

  1. Select the container operation Set flag to X after the Withdraw request outcome and choose .

  2. Select the Undefined step that follows the Approved request event and choose .

Concluding the step definition

Choose

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 have now extended the workflow definition in such a way that the results of the condition evaluated in the UNTIL loop are meaningful. You can now subject your workflow definition to another test. Carry out the test as described in Unit 10: Third Test.