An AsyncFlow is used to execute a second flow concurrently while the run is processing in the current flow. The second flow will be executed simultaneously as soon as a run for the current flow starts processing.
The Run Event Async step is based on the status of a run for the current flow and will execute the second flow concurrently.
A processed run can have a completed, completed with errors or failed status.
Illustrated in the image below is a flow where an AsyncFlow Run Event step is used.
Adding an AsyncFlow Run Event Step
To add an AsyncFlow Run Event step in a flow, follow the below instructions:
1. Click on the highlighted icon as shown in the below image.
2. The below page will appear. Click on the RunEvent tab and select AsyncFlow as shown in the image below.
Configuring an AsyncFlow Run Event Step
Illustrated in the below image is the configuration that is available in the AsyncFlow Run Event step.
Events – The events to trigger on. This field is required for the step to work. The following options are available:
Completed – All records that are successfully processed.
Completed with Errors – All records that are processed but contain errors.
Failed – All records that failed.
Flow ID – The ID/name of the flow to execute. Click on the dropdown arrow to see a full list of all available flows and select the required one. Alternatively, click on the icon highlighted in yellow to create a new flow. Click on the icon highlighted in green to edit the selected flow. Click on the icon highlighted in blue to open the selected flow.
Using an AsyncFlow Run Event Step
To use the AsyncFlow Run Event step, follow the instructions below:
1. Press the Execute button in Flow 1 as shown in the image below.
2. Click on the Create Run button to execute the flow.