lam.exit

Learn more about the exit keyword

Invocation

Data transformation for a flow must output:

{ "lam.exit": true }
KeyDescriptionType

exit

The value for whether or whether not we should exit a workflow.

Boolean

Functionality

The exit keyword can be thought of as an early return for a workflow. If at any point a flow inside a workflow outputs the exit keyword. Laminar will halt the execution of the workflow and any remaining steps will not be executed.

Examples

.step_1.response.results | 
if length == 0 then 
  { "lam.exit": true } 
elif length == 1 then 
  .[0] | { "order_ids": [(.order_id | tonumber)] }
else 
  { "lam.exit": true } 
end

Last updated