Details
-
Fix
-
Status: Released (View Workflow)
-
Blocker
-
Resolution: Fixed
-
2.5.8, 2.6.5
-
None
-
None
Description
Current Situation
- When a user makes use of the Options instruction, and within this instruction, there exists a ConsumeNotices instruction then in case of failure of the instruction a user might try to cancel the failed order which crashes the Controller. The Controller's log file indicates the error:
2024-03-12T12:09:14,294 ERROR js7.data.controller.ControllerStateExecutor - Order:#2024-03-09#P97529965110-UPDCHSETRIGGER_NHOL_C4_7: Event 'Order:#2024-03-09#P97529965110-UPDCHSETRIGGER_NHOL_C4_7 <-: OrderNoticesConsumed(true)' cannot be applied to 'ControllerState': A 'ConsumeNotices' Instruction is expected at position UPDCHSETRIGGER_NHOL_C4_7~fd083f39-b147-4e11-9dbe-a5cb776b4fb1:1/options:13/consumeNotices:0, not: Try
How to reproduce
- Create a workflow using the Options instruction (Stop On Failure = true), then the ConsumeNotices instruction and a Job instruction, or use the attached test case.
- Add an ad hoc order to the workflow, causing the order to enter the failed state.
- Try to cancel the failed order, which will cause the Controller to crash.
Desired Behavior
When a user tries to cancel a failed order, then the Controller should not crash, and no errors should occur in the Controller's log file.
Attachments
Issue Links
- is related to
-
JS-2126 Proper ResumeOrder and AddOrder position handling
- Open