Flow Controls
Branching, looping, and error handling for workflow definitions.
Branch
Executes one and only one branch of execution based on the `expression` value.
Condition
Directs a stream based on true/false results of comparisons.
Each
Iterates over each item in list, in parallel. Note, that since it iterates over each item in parallel, there is no guarantee of completion order.
Fork/Join
Executes each branch in parallel (list of tasks) as a separate and isolated sub-flow. Branches are executed internally in sequence.
Graph
Directs execution across a set of named nodes connected by dynamic transitions, executing each node's tasks in sequence until a node with no next transition is reached.
Loop
Loops sequentially over list of items.
Loop Break
Breaks the loop execution.
Map
Produces a new collection of values by mapping each value in list through defined task, in parallel. When execution is finished on all items, the `map` task will return a list of execution results in an order which corresponds to the order of the source list.
Error Handler
Triggers an error branch with an error object if an exception occurs in the main branch.
Parallel
Run collection of tasks in parallel, without waiting until the previous function has completed.
Subflow
Starts a new job as a sub-flow of the current job. Output of the sub-flow job is the output of the task.
Stop Job
Stops a job execution with specified status and message.
Wait for Approval
Allows a person to review and either approve or reject requests.
How is this guide?
Last updated on