Versions Compared

Key

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

...

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

Feature Status:

Display feature availability
StartingFromRelease2.5.0

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 to the Catch block to specify a successful outcome for the order.


Code Block
titleExample for catching a job error by use of a recovery job
linenumberstrue
collapsetrue
Try
    job1
    job2
Catch
    job2a
Catch-End
job3

...

  • if any of job1 or job2 in the Try block raises an error then the order enters the Catch block.
  • In the Catch block the Fail instruction makes the order leave the workflow. The Fail instruction can be parameterized to either stop an order or to make an order leave the workflow.
  • An order that enters the Catch block will not execute job3.

Feature Status:

Display feature availability
StartingFromRelease2.5.0

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

For earlier JS7 releases users apply the Finish instruction instead of the Fail instruction in the Catch block to make an order leave the workflow with a failed History outcome.

Anchor
use_case_4
use_case_4
Use Case 4: Job error makes order leave workflow with successful history outcome

...

  • if any of job1 or job2 in the Try block raises an error then the order enters the Catch block.
  • In the Catch block the Finish instruction makes the order leave the workflow.
  • An order that enters the Catch block will not execute job3.

Feature Status:

Display feature availability
StartingFromRelease2.5.0

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 before the Finish instruction that guarantees successful execution in order to specify a successful History outcome.

Anchor
use_case_5
use_case_5
Use Case 5: Job warning lets order continue

...