Multiple Instance Loop Type Properties

If you select Multiple Instance in the Loop Type field, you can set properties in an additional Property View.

Property View

Description

Condition

MultiInstance Loops must have a numeric Expression to be evaluated--the Expression must resolve to an integer.

Ordering

This applies to only Multi-Instance Loops. The MI_Ordering attribute defines whether the loop instances will be performed sequentially or in parallel. Sequential MI_Ordering is a more traditional loop. Parallel MI_Ordering is equivalent to multi-instance specifications that other notations, such as UML Activity Diagrams use. If set to Parallel, the Parallel marker shall replace the Loop Marker at the bottom center of the activity shape.

Counter

The LoopCounter attribute is only applied for Sequential Multi-Instance Loops and for processes that are being executed by a process engine. The attribute is updated at runtime by a process engine to count the number of loops as they occur. The LoopCounter attribute must be incremented at the start of a loop. Unlike a Standard loop, you do not use this attribute in the MI_Condition Expression, but it can be used for tracking the status of a loop.

Flow Condition

This attribute is equivalent to using a Gateway to control the flow past a set of parallel paths. An MI_FlowCondition of “None” is the same as uncontrolled flow (no Gateway) and means that all activity instances shall generate a token that will continue when that instance is completed. An MI_FlowCondition of “One” is the same as an Exclusive Gateway and means that the Token shall continue past the activity after only one of the activity instances has completed.

 

The activity continues its other instances, but additional Tokens must not be passed from the activity. An MI_FlowCondition of “All” is the same as a Parallel Gateway and means that the Token shall continue past the activity after all of the activity instances have completed. An MI_FlowCondition of “Complex” is the same as a Complex Gateway. The ComplexMI_FlowCondition attribute will determine the Token flow.

Complex Flow Condition

If the MI_FlowCondition attribute is set to “Complex,” then an Expression must be entered. This Expression may reference Process data. The expression shall determine when and how many Tokens will continue past the activity.