Details
-
Fix
-
Status: Released (View Workflow)
-
Minor
-
Resolution: Fixed
-
1.13
-
None
-
None
Description
Current Behaviour:
In the JOC Cockpit when adding an order to a job chain via a return code configuration then it executes the order only for the first job chain referenced. When adding the order by a return code configuration to the job chain via a standalone job then it works fine.
How to Reproduce:
- Open JOC Cockpit configuration tab
- Create multiple job chains
- For one job chain (example: job_chain1) use "Add Order" for return code configuration to the remaining job chain
- Then start the job_chain1. It will run only a single job chain
job_chain1 configuration created with JOC Cockpit:
<job_chain> <job_chain_node error_state="error" job="job1" next_state="success" state="job1"> <on_return_codes> <on_return_code return_code="0"> <add_order xmlns="https://jobscheduler-plugins.sos-berlin.com/NodeOrderPlugin" id="2" job_chain="job_chain2"/> </on_return_code> <on_return_code return_code="0"> <add_order xmlns="https://jobscheduler-plugins.sos-berlin.com/NodeOrderPlugin" id="3" job_chain="job_chain3"/> </on_return_code> </on_return_codes> </job_chain_node> <job_chain_node state="success"/> <job_chain_node state="error"/> </job_chain>
The <on_return_code return_code="0"> tag is used for every job chain separately, that's why the job1 executes for the job chain from the first return code configuration only. The second return code configuration is not considered.
Desired Behaviour:
From the JOC Cockpit when adding an order via a return code configuration then orders should be added to all referenced job chains.