Details
-
Feature
-
Status: Released (View Workflow)
-
Major
-
Resolution: Fixed
-
2.0.0
-
None
Description
Current Situation
- With
JS-2005the outcome of an order is considered successful if an order enters the Catch block of a Try-Catch Instruction. - This allows to make an order continue in the workflow using an empty Catch block.
- This allows to make an order leave the workflow with a successful outcome using the Finish Instruction.
- This does not allow to make an order leave the workflow with an unsuccessful outcome.
Desired Behavior
- The Finish Instruction is extended by two additional attributes specifying
- that the order should leave the workflow with a successful (default) or unsuccessful outcome,
- a message that is made available to the JOC Cockpit History from a corresponding event.
- A Finish Instruction with unsuccessful outcome logs its message in red letters as error.
Example:
[ERROR] [OrderFinished] id=#2022-11-07#T47319953201-root, pos=0, Error (status=failed, reason=finish_instruction, msg=unsuccessful), returnCode=1 - A Finish Instruction with successful outcome logs its message with the list of variables where the variable name is returnMessage.
Example:
[MAIN] [OrderFinished] id=#2022-11-07#T83056597200-root, pos=0, returnCode=0, returnMessage=successful
- A Finish Instruction with unsuccessful outcome logs its message in red letters as error.