Early stop / Break
If defined, at the end of or before a step, the predicate expression will be evaluated to decide if the flow should stop early.
Early stop for a step
Section titled “Early stop for a step”For each step of the flow, an early stop can be defined. The result of the step will be compared to a previously defined predicate expression, and if the condition is met, the flow will stop after that step.
- Pick the step you want to stop after.
- Go to
Advanced, thenEarly stop/Break. - Toggle on “Early stop or Break if condition met”.
- Write the condition you want to stop on, based on the step’s results. In the expression, you can use
resultto access the current step’s result andflow_inputfor the flow’s input. You can also reference previous steps’ results usingresults(e.g.results.a,results.b), which gives access to the full result map of all completed steps. - Optionally, toggle on “Label flow as ‘skipped’ if stopped”. Skipped flows are just a label, useful to keep them out of the runs page.
Early stop for a flow
Section titled “Early stop for a flow”To stop a flow early based on the flow inputs, you can set an “Early stop” from the flow settings. If the inputs meet the predefined condition, the flow will not run.