Reply
Contributor
Posts: 58
Registered: ‎10-19-2014
Accepted Solution

Pass parameters to oozie subworkflow

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

Posts: 1,886
Kudos: 425
Solutions: 300
Registered: ‎07-31-2013

Re: Pass parameters to oozie subworkflow

You can use on the to pass any variable
name and substituted values around.

Highlighted
Contributor
Posts: 58
Registered: ‎10-19-2014

Re: Pass parameters to oozie subworkflow

[ Edited ]

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

New Contributor
Posts: 2
Registered: ‎07-25-2016

Re: Pass parameters to oozie subworkflow

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']}

Contributor
Posts: 58
Registered: ‎10-19-2014

Re: Pass parameters to oozie subworkflow

Hi sairamvj, I would suggest you open a new thread for your question, as it is not related to this topic of this thread.

Martin
Announcements