Purpose
- Finishes an order in a workflow. The order is considered being completed and is assigned the FINISHED state.
- FINISHED orders remain with their workflow and cannot transition from this state. They require user intervention to make them leave the workflow.
- Users have to cancel FINISHED orders, see JS7 - Order State Transitions
Workflow Instruction: Finish
Download Workflow Example: pdwFinish.json
Explanation:
- The workflow makes use of an If Instruction to check a previous job's return values. See JS7 - If Instruction for details of how to add expressions to If Instructions.
- If the If Instruction evaluates to true then the Finish Instruction is executed. The order is then assigned the FINISHED state.
- When finishing an order then a message and a return code that specify the reason for finishing the order can be optionally added.
Overview
Content Tools