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