Purpose
- Fails an order in a workflow. The order halts and is assigned the FAILED state.
- FAILED orders remain with their workflow position and require user intervention to transition from this state.
- Users can resume, suspend and cancel FAILED orders, see JS7 - Order State Transitions
Workflow Instruction: Fail
Download workflow example: pdwFail.json
Explanations:
- The workflow makes use of an If Instruction to check a previous job's return values. See JS7 - If Instruction for details how to add expressions.
- If the If Instruction evaluates to true then the Fail Instruction is executed. The order is then assigned the FAILED state.
- When failing an order then a message and a return code optionally can be added that specify the reason for failing the order.
Overview
Content Tools