Introduction
- The Finish Instruction makes an order leave a workflow. The order is considered being completed and is assigned the FINISHED state.
- FINISHED orders leave their workflow with a successful outcome. They do not require user intervention to leave the workflow.
- For details see JS7 - Order State Transitions.
Workflow Instruction: Finish
Download Workflow Example (.json upload): 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