Support Questions
Find answers, ask questions, and share your expertise
Announcements
Alert: Welcome to the Unified Cloudera Community. Former HCC members be sure to read and learn how to activate your account here.

Is there a way to get a Coordinator parameter as an argument to Java Action?

Is there a way to get a Coordinator parameter as an argument to Java Action?

Explorer

I want to use the scheduled time of a job in the Java action of a workflow.

Inorder to achieve that, I want to pass "coord:nominalTime()" as an agrument to my java main class.

Is this possible? If yes, how?

1 REPLY 1

Re: Is there a way to get a Coordinator parameter as an argument to Java Action?

Master Guru
You could inject it in via a regular config element perhaps. That is,
in coordinator.xml (for the wf call definition), you will have a
time${coord:nominalTime()},
and in the workflow.xml you can refer to this value anywhere as
${time}?