Entering content frameFunction documentation Table-Driven Dynamic Parallel Processing Locate the document in its SAP Library structure

Use

You have defined a multiline container element in the workflow container, which contains a list of values of the same type at runtime. The exact number of values is not known at definition time.

For each value in this list, one particular function is to be executed as a step in the workflow.

Example

The materials connected with an order are stored in a multiline container element in the workflow container.

Stock is to be checked for each material.

Integration

In addition to table-driven, dynamic parallel processing, there is also explicitly-modeled parallelism and the work queue. For more information, see Implementation Options for Parallel Processing.

Prerequisites

The following prerequisites must always be fulfilled for parallel steps:

A multiline container element is created with one data type reference and can therefore only ever include a list of values that refer to the same data type reference.

A multiline container element can be a list of object references.

Note

A multiline container element in the workflow container can be constructed in various ways:

Features

Table-driven parallel processing has two aspects:

Caution

The multiline container element should only have 99 values.

Creation of parallel steps in accordance with the number of values

The system executes a step of a workflow definition in parallel processing branches as many times as there are values in the multiline container element.

A dialog step is represented for each value of the multiline container element with a work item in the Business Workplaces of the recipients. Background steps are executed automatically by the system.

Operations on the relevant current value of the multiline element

In each of the steps created in parallel, one value from the multiline container element is the current value. You can also define a binding from the relevant current value of the multiline container element to a single-line container element in the task container or the event container.

Activities

You use the multiline container element in the binding from the workflow container to the task container.

The relevant current value of the multiline container element can be used in the relevant parallel step.

You define a binding for the activity from the multiline container element in the workflow container to a (single-line) container element in the task container. The container element of the task container must have the same data type reference as the multiline container element.

The following are possible:

In this case, you execute the same single-step task n times on n objects (n = number of values, n > 1). All n work items created have the same input parameters.

In this case, you execute the same object method on an object m times. But the m work items then have one variable parameter.

Note

If the multiline container element contains a list of users, you can execute a step from all users in parallel. For example, this is used by the dynamic workflow wizards. Enter &<MultilineElement>[&_WF_PARFOREACH_INDEX&]& as the responsible agent. You can also use the F4 input help.

A combination of the two cases is not possible.

For the binding definition from and to the multiline container element, use &<MultilineElement>[&_WF_PARFOREACH_INDEX&]& as the expression for the workflow container.

Note

If the table is empty this step is skipped.

Errors in expression evaluation stop the workflow in error status. Error messages are recorded in the workflow log.

Leaving content frame