Parallel branches, loops and sub-workflows
Parallel branches, loops and sub-workflows
Do several things at once, repeat steps for each item in a list, and reuse one workflow inside another — with approvals and limits intact.
- 1Run branches at the same timeAdd a Parallel step, choose where each branch starts and the step to continue at. Each branch ends when it reaches that step, and the workflow waits for all of them.
- 2Repeat for each itemAdd a For each step, name the list (for example steps.lookup.items), the first step to repeat and where to continue. Use {{loop.item}} in the repeated steps.
- 3Reuse a workflowAdd a Run a workflow step, choose the workflow and pass values as name=value lines. Its values come back as {{steps.<id>.vars.name}}.
- 4Follow a runThe run’s detail lists its branches and sub-workflows with their status; open any of them to see its steps.
Tips & tricks
- A failing branch fails the step; Retry starts fresh branches.
- High-risk steps inside branches and loops still need an approval before them.
- Loops can’t be nested and take up to 50 items.