Multiple independent instances

In this example, a given number of instances of an activity are executed, and the instances execute independently. This example is implemented using a loop with a counter, and either a gateway element or an event throw that is in the loop.

Gateway implementation

The gateway contains a single branch that includes the activity or activities that you want to execute independently. The value of the Control Type property of the gateway is set to NO-WAIT so that the next iteration of the loop is executed without waiting for the gateway branch to complete.

Event implementation

The loop includes a throw of an asynchronous event type. A subprocess uses the receiver of the event as a start point. Each invocation of the subprocess executes independently.

Grafik in Originalgröße anzeigen
A.
Event throw is inside loop.

B.
Subprocess receives event as start point