Workflow Exit Points
Learn how to stop a workflow execution gracefully
(payload) => {
const { step_1 } = payload;
if (step_1.inventory.quantity < 1) {
return {
"lam.exit": true,
// payload to be returned
"data": {
"error": "Out of stock"
}
};
}
// Continue with normal processing...
Last updated
Was this helpful?