Reply
Highlighted
gkb
Explorer
Posts: 14
Registered: ‎01-09-2014

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

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?

Posts: 1,695
Kudos: 341
Solutions: 264
Registered: ‎07-31-2013

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

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}?

Announcements