Question

Configuration properties specified in coordinator job are not seen in workflow's param tags.

Coordinator:

<action>
    <workflow>
      <app-path>${workflowRoot}/report_action.xml</app-path>
      <configuration>
        <property>
         <name>OUTPUT_COORD</name>
         <value>${workflowRoot}/2014_05_01</value>
        </property>
      </configuration>
    </workflow>
  </action>

Workflow:

<action name="pig-node">
      <pig>
...
        <param>OUTPUT=${OUTPUT_COORD}</param> 
      </pig>
      <ok to="end"/>
      <error to="fail"/>
</action>

What I get is 'EL_ERROR', variable OUTPUT_COORD cannot be resolved.

What could be the problem?

Était-ce utile?

La solution

Syntax wise, variables are well defined in Coordinator and Workflow. As Mzf pointed out, it seems you are running workflow directly. Instead you need to run coordinator which will eventually run workflow (as defined) and pass the value of OUTPUT_COORD to Workflow from Coordinator as well.

Licencié sous: CC-BY-SA avec attribution
Non affilié à StackOverflow
scroll top