...
- 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 |
---|
|
Jira |
---|
server | SOS JIRA |
---|
columnIds | issuekey,summary,issuetype,created,updated,duedate,assignee,reporter,priority,status,resolution |
---|
columns | key,summary,type,created,updated,due,assignee,reporter,priority,status,resolution |
---|
serverId | 6dc67751-9d67-34cd-985b-194a8cdc9602 |
---|
key | JS-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 |
---|
title | Example for catching a job error by use of a recovery job |
---|
linenumbers | true |
---|
collapse | true |
---|
|
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 |
---|
|
Jira |
---|
server | SOS JIRA |
---|
columnIds | issuekey,summary,issuetype,created,updated,duedate,assignee,reporter,priority,status,resolution |
---|
columns | key,summary,type,created,updated,due,assignee,reporter,priority,status,resolution |
---|
serverId | 6dc67751-9d67-34cd-985b-194a8cdc9602 |
---|
key | JS-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.
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 |
---|
|
Jira |
---|
server | SOS JIRA |
---|
columnIds | issuekey,summary,issuetype,created,updated,duedate,assignee,reporter,priority,status,resolution |
---|
columns | key,summary,type,created,updated,due,assignee,reporter,priority,status,resolution |
---|
serverId | 6dc67751-9d67-34cd-985b-194a8cdc9602 |
---|
key | JS-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.
Use Case 5: Job warning lets order continue
...