Page History
...
- Steps for error handling include:
- JS7 - How to detect job errors and warnings
- JS7 - How to handle job errors:
- deciding if a job error can be handled automatically by making:
- an order continue in the workflow,
- an order leave the workflow.
- deciding if a job error requires user intervention.
- deciding if a job error can be handled automatically by making:
- JS7 - How to handle job warnings
- A JS7 - Notification will be created in the event of job errors and warnings.
...
For earlier JS7 releases a dummy job has to be added to the Catch block to force a successful outcome for the order.
Code Block | ||||||
---|---|---|---|---|---|---|
| ||||||
Try job1 job2 Catch job2a Catch-End job3 |
...
Code Block | ||||||
---|---|---|---|---|---|---|
| ||||||
Try job1 job2 Catch FailFinish (fail and leave workflow) Catch-End job3 |
...
- if any of
job1
orjob2
in the Try block raises an error then the order enters the Catch block. - In the Catch block the Fail instruction Finish instruction makes the order leave the workflow. The Fail Finish instruction can be is parameterized to either stop an order or to make an order leave create a successful or unsuccessful History outcome when the order leaves the workflow.
- If the above example is applied to child orders, for example in branches of Fork-Join and ForkList-Join instructions then the Fail instruction will make the child order leave the branch.
- An order that enters the Catch block will not execute
job3
.
...
Jira | ||||||||||
---|---|---|---|---|---|---|---|---|---|---|
|
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 | ||||
---|---|---|---|---|
|
...
Code Block | ||||||
---|---|---|---|---|---|---|
| ||||||
Try
job1
job2
Catch
Finish (succeed and leave workflow)
Catch-End
job3 |
Explanation:
...
Overview
Content Tools