Hello there, Marin.
Try “elevating” the data value as an export variable; this allows you to “retake” the data value on the Parent Job Workflow. In your instance, you must create an option in Job B to “receive” the output generated by itself in the second call. It sounds dizzy, but here’s an example for you to try:
Parent Job: Calls ChildJobA, which generates a data value and an exported value to use later (this value is available for every Parent Job workflow), then calls ChildJobB, and finally calls ChildJobA again, but this time passing the exported value in the first step.
- defaultTab: nodes description: '' executionEnabled: true id: 8042e48f-54e9-4d98-8840-b77754eb34d7 loglevel: INFO name: ParentJob nodeFilterEditable: false plugins: ExecutionLifecycle: null scheduleEnabled: true sequence: commands: - exec: echo "starting..." - jobref: group: '' name: ChildJobA uuid: d0196853-4bc4-41f9-8e48-69b997d14338 - jobref: group: '' name: ChildJobB uuid: 6eee7f24-2b0a-4e70-8f0e-e05629d5aeae - jobref: args: -car_brand ${export.the_car_brand} group: '' name: ChildJobA uuid: d0196853-4bc4-41f9-8e48-69b997d14338 keepgoing: false strategy: node-first uuid: 8042e48f-54e9-4d98-8840-b77754eb34d7ChildJobA: Creates a data value, this value is exported in a “global variable” to use it later in the Parent Job Workflow.
- defaultTab: nodes description: '' executionEnabled: true id: d0196853-4bc4-41f9-8e48-69b997d14338 loglevel: INFO name: ChildJobA nodeFilterEditable: false options: - name: car_brand plugins: ExecutionLifecycle: null scheduleEnabled: true sequence: commands: - exec: echo "Child Job A" - exec: echo "car=fiat" plugins: LogFilter: - config: invalidKeyPattern: \s|\$|\{|\}|\\ logData: 'true' regex: (.*)=(.*) replaceFilteredResult: 'false' type: key-value-data - configuration: export: the_car_brand group: export value: ${data.car*} nodeStep: false type: export-var - exec: echo ${export.the_car_brand} - exec: 'echo "the parameter from Parent Job: ${option.car_brand}"' keepgoing: false strategy: node-first uuid: d0196853-4bc4-41f9-8e48-69b997d14338ChildJobB: Just a simple job, prints a random string.
- defaultTab: nodes description: '' executionEnabled: true id: 6eee7f24-2b0a-4e70-8f0e-e05629d5aeae loglevel: INFO name: ChildJobB nodeFilterEditable: false plugins: ExecutionLifecycle: null scheduleEnabled: true sequence: commands: - exec: echo "doing something..." keepgoing: false strategy: node-first uuid: 6eee7f24-2b0a-4e70-8f0e-e05629d5aeaeHope it helps!