Triggering Process Flows in Sequence
Process Flows, which are binded with any event, are executed at every polling frequency irrespective of the fact that the process flow(s) triggered at the previous polling frequency still may be running.
In addition, there could be possibility that at each polling frequency, multiple process flows are executed. For Example a Process flow may be binded with a File Event, and at each polling frequency multiple files fulfill the trigger criteria. In this case for each file the binded process flow will be executed concurrently.
An advanced property Trigger Process Flows in Sequence is provided in all events to execute the process flows in sequence. You can check this checkbox, to allow process flows to be triggered in sequence. For Example if a Process Flow is binded with a File Event, and at each polling frequency, suppose five files are fulfilling the trigger criteria. In this case the process flow is executed five times or you can say five instance of this process flow are executed in parallel.
When Trigger Process Flows in Sequence is checked, then the process flow is executed five times, but in sequence. Means, when the execution of first instance will be completed, then only the execution of second instance will start. Now in case the next polling frequency comes before the completion of all the instances of the process flow triggered at the previous polling, then the event is not fired and treated as misfired event. Once the execution of all the instances of the process flow is completed, then the misfired event is fired. This should be noted that even if an event goes misfired multiple times, only one misfired event is fired at the completion of the previous execution.
Steps to enable "Trigger Process Flow in Sequence" property
- Select to open the required Event activity.
- Click Advanced Properties of the selected Event. Advanced Properties of the respective Event activity are displayed.
Select the Trigger Process Flow in Sequence checkbox (see Figure 730).
Figure 730: Event's Advanced Properties
- Click Save to save the event.