Parallel is multi-path branching operator. It allows you to create multiple execution branches with optional filtering rules and Pipedream will execute all matching branches. Unlike Switch and If/Else, the order in which rules are defined will not affect the path of execution.
Edit the branch’s nameslug on the canvas or in the right pane after selecting the Start phase of the parallel block. The nameslug communicates the branch’s purpose and affects workflow execution—the end phase exports an object, with each key corresponding to a branch name.
Add a trigger and generate an event to help you build and test your workflow:
2
Add the Parallel control flow block
Click the + button to add a step to the canvas and select Parallel from the Control Flow section on the right. You can optionally add or remove branches and configure conditions defining when each branch should run.
3
Test to identify the execution path(s)
Test the Start phase to identify which branches will execute for the current event.
4
Add steps to branches
Add steps to the branches. These steps will be executed in parallel when the workflow runs.
5
Optionally merge and continue to the parent flow
Test the End phase to export the results of the last step of each branch that was executed. This makes data from the branches available to reference in the parent flow.
6
Use exports in parent flow
Optionally add steps after the parallel block and use data from individual branches by referencing the return value of the End phase.
7
Deploy and test the live workflow
Deploy the workflow and trigger it to inspect the executions.