Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

  • The History outcome is not determined as the order remains in the workflow. The History outcome will be determined from later User Intervention.
  • Notifications can optionally be sent.
  • User Interventions include the following operations:
    • Resume Order: The order will be continued at the same, at a previous or at a later workflow instruction.
      • Child orders in Fork-Join and ForkList-Join instructions can be resumed within their branch.
    • Suspend Order: The order will be suspended and will be resumed or cancelled later on.
    • Cancel Order: The order will be cancelled and the History outcome will indicate the failed outcome of order execution.
      • Child orders in Fork-Join and ForkList-Join instructions leave their branch with a failed outcome that is adopted by the parent order.


Code Block
titleExample for default error handling
linenumberstrue
collapsetrue
job1
job2
job3

...

  • if any of job1 or job2 in the Try block raises an error then the empty Catch block lets will let the order continue.
  • Leaving the Catch block the order will continue with job3.

...

Jira
serverSOS JIRA
columnIdsissuekey,summary,issuetype,created,updated,duedate,assignee,reporter,priority,status,resolution
columnskey,summary,type,created,updated,due,assignee,reporter,priority,status,resolution
serverId6dc67751-9d67-34cd-985b-194a8cdc9602
keyJS-2005

For earlier JS7 releases users have to add a dummy job has to be added to the Catch block to specify force a successful outcome for the order.

...

  • if any of job1 or job2 in the Try block raises an error then the order will enter the Catch block.
  • In the Catch block job2a is executed.
    • If job2a completes successfully then the order will leave the Catch block and will continue with job3.
    • If job2a fails then the order will be put in the failed state, will be stopped and will remain in the Catch block to wait for User Intervention.
    • Consider that Try-Catch instructions can be nested, i.e. in a Catch block another Try-Catch instruction can be used for error handling.

...

For earlier JS7 releases users have to add a dummy job before the Finish instruction that guarantees successful execution in order to specify force a successful History outcome.

...

In this scenario job errors are considered being warnings based on a selection of job return codes. Such warnings do not require specific error handling, instead the order will continue in the workflow.

...