Details
-
Fix
-
Status: Released (View Workflow)
-
Minor
-
Resolution: Fixed
-
2.0.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:
- Apply the attached workflow (AddOrderTest.zip).
- Within the attachment, two workflows are included: "AddOrder1" and "AddOrder2".
- Execute "AddOrder1" - it will run successfully, and "AddOrder2" will be triggered as the "AddOrder" instruction has been added in "AddOrder1" to trigger "AddOrder2".
- "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
Issue Links
- is related to
-
JS-2126 Proper ResumeOrder and AddOrder position handling
- Open