Entering content frameProcedure documentation Unit 13: Inserting Container Operations Locate the document in its SAP Library structure

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

  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 Request revised and click.
  3. 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.

  4. Enter the following basic data:
  5. Step name: Set flag to Z

    Outcome name: Flag = Z

  6. Specify the following for the operation:
  7. Result element: Flag (select using F4 input help)

    Expression: Z

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

    Note

    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.

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

Container operation after the outcome withdraw request

  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 Withdraw request and click.
  3. 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.

  4. Enter the following basic data:
  5. Step name: Set flag to X

    Outcome name: Flag = X

  6. Specify the following for the operation:
  7. Result element: Flag (select using F4 input help)

    Expression: X

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

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

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 This graphic is explained in the accompanying text.
  2. Select the Undefined step that follows the Approved request event and choose This graphic is explained in the accompanying text.

Concluding step definition

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

Leaving content frame