Our Community is getting an upgrade! To get everything ready for the relaunch, we’ll be placing the site in read-only mode starting September 21st.
We really appreciate your understanding while we get things set up behind the scenes. Catch up on all the exciting details about the move here.
Need help or have questions? Drop us a line at [email protected]
Created on 04-22-2015 12:39 AM - edited 09-16-2022 02:26 AM
Hello,
Is it possible to pass parameters to oozie subworkflows from the parent workflow actions using the actionData funciton, i.e. ${wf:actionData('ParentWFAction')['PARAM_NAME']}?
Thanks,
Martin
Created on 04-26-2015 02:30 AM - edited 04-26-2015 02:33 AM
Hi Harsh, thanks for the follow up, though it's not 100% clear from the response what needs to be done.
However, I was able to figure out the following & posting here for the benefit of the community. In the subworkflow task, you can use the Job Properties box to achieve this, e.g.
Property Name = PARAM1
Property Value = ${wf:actionData('ParentWFAction')['PARAM_NAME']}
Then in the subworkflow itself, you will be able to access the value as ${PARAM1}.
Regards,
Martin
Created 04-22-2015 02:51 AM
Created on 04-26-2015 02:30 AM - edited 04-26-2015 02:33 AM
Hi Harsh, thanks for the follow up, though it's not 100% clear from the response what needs to be done.
However, I was able to figure out the following & posting here for the benefit of the community. In the subworkflow task, you can use the Job Properties box to achieve this, e.g.
Property Name = PARAM1
Property Value = ${wf:actionData('ParentWFAction')['PARAM_NAME']}
Then in the subworkflow itself, you will be able to access the value as ${PARAM1}.
Regards,
Martin
Created 07-25-2016 04:21 AM
Hi, How can I get the status of the workflow and the execution time taken by the workflow through these commands,
${wf:actionData('ParentWFAction')['PARAM_NAME']}
Created 07-27-2016 01:23 AM