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

Infinite Loop Issue When Using 'AddOrder' Instruction with Cycle

    XMLWordPrintable

Details

    • Fix
    • Status: Released (View Workflow)
    • Minor
    • Resolution: Fixed
    • 2.0.0
    • 2.5.9, 2.6.6, 2.7.0
    • None
    • None

    Description

      Current Behavior:

      When using the ‘AddOrder’ instruction with the block position set to ‘cycle’ in workflow1 and workflow1 which triggers workflow2,
      wherein workflow2, there is a 'cycle' instruction that contains a 'retry' instruction and a 'break' statement within an 'if' condition as per the attached workflow(AddOrderTest.zip), in this case an unexpected issue occurs i.e., the retry instruction gets stuck in an infinite loop if it has break condition inside cycle.

      workflow1 ---> AddOrder to trigger workflow2
      workflow2 ---> Cycle=>job=>if=>job=>else=>retry=>job=>retry-end=>break=>if-end=>Cycle-end.

      Steps to reproduce:

      1. Apply the attached workflow (AddOrderTest.zip).
      2. Within the attachment, two workflows are included: "AddOrder1" and "AddOrder2".
      3. Execute "AddOrder1" - it will run successfully, and "AddOrder2" will be triggered as the "AddOrder" instruction has been added in "AddOrder1" to trigger "AddOrder2".
      4. "AddOrder2" will start and go inside an infinite loop.

      Desired behavior:

      When providing the AddOrder instruction, the order should be executed successfully without entering into an infinite loop.

      Attachments

        1. AddOrderTest.zip
          2 kB
        2. test_case_order_log.png
          test_case_order_log.png
          318 kB
        3. test_case_workflow.png
          test_case_workflow.png
          16 kB
        4. workflow_configuration.png
          workflow_configuration.png
          24 kB
        5. workflow_order_log.png
          workflow_order_log.png
          368 kB

        Issue Links

          Activity

            People

              jz Joacim Zschimmer
              rajrani-upadhyay Rajrani Upadhyay
              Rajrani Upadhyay Rajrani Upadhyay
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: