You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 7 Next »

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



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 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.


  • No labels