Page History
...
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 | ||||||||||
---|---|---|---|---|---|---|---|---|---|---|
|
Anchor | ||||
---|---|---|---|---|
|
...
Code Block | ||||||
---|---|---|---|---|---|---|
| ||||||
Try
job1
job2
Catch
Finish (succeed and leave workflow)
Catch-End
job3 |
Explanation:
...
Overview
Content Tools