10.3 Execute Parallel Workflows
Running workflows in parallel reduces overall execution time and optimizes resource utilization by enabling tasks to run concurrently and achieve greater parallelism.
You can run multiple workflow nodes at the same time in parallel as soon as the dependencies are met. Unlike sequential workflows where you need to specify a first step to start the workflow, in parallel workflows all nodes that have no dependencies will start executing simultaneously. When you open the workflow in the Workflow editor make sure that the Workflow type is set to Parallel. Otherwise, the workflow editor will only allow you to design a sequential workflow.
In parallel workflows, the behavior of ok, nok, and ok/nok is as follows
- ok (green) defines the success path.
This is treated as an
ANDcondition whereby all the dependent nodes should execute and pass. for the downstream dependencies to run. For example, if there areNode1,Node2, andNode3withokedges converging toNode4, then all three nodes must complete successfully forNode4to start executing. - not ok (red) defines the failure path.
This is treated as an
ANYorORcondition whereby if any of the dependent nodes fails the subsequent node will execute. Note that the workflow process will wait for the completion of all the nodes, and then run the next node. For example, if there areNode1,Node2, andNode3withnokedges converging toNode4, then if any of the nodes failNode4will start executing. - ok/not ok (black) defines a path that is followed on success or failure.
This is treated as an unconditional path whereby irrespective of whether the execution succeeded or failed, the next step should execute. If a workflow has multiple
okandok/noknodes, the workflow process will wait for all the nodes to complete before executing the next steps.
Workflow design choices that are valid are as follows:
- Multiple nodes as entry points in a workflow.
- Multiple outgoing and multiple incoming
okon the same node. - Multiple outgoing and multiple incoming
nokon the same node. - Multiple incoming
okandok/nokon the same node.
Here is an example of a workflow with multiple ok and nok nodes:

Workflow design choices that are not valid are as follows:
- You cannot have disconnected nodes. All nodes must be part of the flow.
- You cannot have closed loops.
okandnokcannot converge simultaneously to the same node.-
ok/nokandnokcannot converge simultaneously to the same node.
Parent topic: Workflows