
Unit 13: Inserting 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
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.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.
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.
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.
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
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.
Step name: Set flag to Z
Outcome name: Flag = Z
Result element:
Flag (select using F4 input help)Expression: Z
The input fields for the operator and second expression must be empty.

When this step is executed, the Flag container element in the workflow container receives the value Z. This value remains as long is it is not changed explicitly.
Container operation after the outcome withdraw request
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.
Step name: Set flag to X
Outcome name: Flag = X
Result element:
Flag (select using F4 input help)Expression: X
The input fields for the operator and second expression must be empty.
Container operation after the outcome request approved
Since this container operation is identical to the one created above, you can simply copy it.
Concluding 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.