Uploaded image for project: 'JS - JobScheduler'
  1. JS - JobScheduler
  2. JS-2124

Controller should not crash when cancelling a failed order inside an Options instruction, followed by ConsumeNotices instruction and Job instruction

    XMLWordPrintable

Details

    • Fix
    • Status: Released (View Workflow)
    • Blocker
    • Resolution: Fixed
    • 2.5.8, 2.6.5
    • 2.5.9, 2.6.6, 2.7.0
    • 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

      1. 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.
      2. Add an ad hoc order to the workflow, causing the order to enter the failed state.
      3. 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

          Activity

            People

              jz Joacim Zschimmer
              Ajay-Kumbhkar Ajay Kumbhkar
              Pramokshi Narawariya Pramokshi Narawariya
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: