ByteChef LogoByteChef

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

Runs a set of task nodes wired by transitions: after a node completes, its conditional transitions are checked in order, then its default one; a node with no matching transition ends the graph. Cycles are allowed and bounded by a transition budget.

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

Deprecated: use the Request Approval action of the Approval component instead. Allows a person to review and either approve or reject requests.

How is this guide?

Last updated on