Parallel Control Step

The Parallel Control step is used to run a set of subflows in parallel/simultaneously.

Praise Magidi avatar
Written by Praise Magidi
Updated over a week ago

Illustrated in the below image is an example of a flow of how the Parallel Control step is used.

The Parallel has three Subflows. Each Subflow has a different destination step.

A Buffer source step is used to start the flow. The image below shows the data in the Buffer source step.

Adding the Parallel Control step

To add a Parallel Control 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. Select or search for a Control step. Click on the Control tab and select Parallel as shown in the image below.

Configuring a Parallel Control step

Provide a title and description (optional). Once saved, open the control step to access more configuration options as shown in the image below.

The Swap Control Step is used to swap to another Control step. The Parallel Control step can be swapped with the Series or Condition Control steps.

Using the Parallel Control Step

To add a Subflow in the Parallel step, click on the plus icon shown in the below image. A Subflow will be added with each click. To edit each Subflow in the Parallel, click on the highlighted button in the image below.

The below page will appear. The Break on Error checkbox will break on any errors in the Subflow when selected. The Record by Reference section checkbox will pass the record by reference instead of creating a copy when selected.

Illustrated in the below image is the Calculator step for the first Subflow. This Subflow has been set as first in the Parallel as shown.

The below image shows the Calculator step for the second Subflow. This Subflow has been set as second in the Parallel as shown.

The below image shows the Calculator step for the third Subflow. This Subflow has been set as third in the Parallel as shown.

The image below shows the outcome after the Parallel step. The order of the calculations is shows that the flows were not run in the set order. The delayed flow was not run first.

Additional information

Returns

The options below let you define how you want the data to be returned from the Sub-flow. To access Returns, click on the Returns button as shown illustrated in the image below.

Return Type

Select the option type you want the Sub-flow value to be returned as one of the following:

  • None - No return. This is equivalent to void in traditional programming.

  • Current - The default of the subflow being called.

  • Array - Converts the output to an array.

  • Object - Converts the output to an object.

  • String - Converts the output to a string.

  • Binary - Converts the output to a binary representation.

  • Base64 - Converts the output to base64.

Return Source

Selects what value types to return from the flow you are calling.

  • Auto - Auto detects the appropriate output.

  • Record - Returns the current record processed by the subflow.

  • Output - Returns the output of the Writer Step (if any) in the subflow.

  • Result - Returns the output of the Destination Step (if any) in the subflow.

Did this answer your question?