在动作“A1”中我添加两个数字10&因此结果将为30.现在该结果30应作为下一个动作“A2”的输入。怎么做?
<workflow-app name="JavaFlow1" xmlns="uri:oozie:workflow:0.4">
<start to="A1"/>
<action name="A1">
<java>
<job-tracker>${jobTracker}</job-tracker>
<name-node>${nameNode}</name-node>
<main-class>com.demo.Test1</main-class>
<arg>10</arg>
<arg>20</arg>
<capture-output/>
</java>
<ok to="A2"/>
<error to="kill"/>
</action>
<action name="A2">
<java>
<job-tracker>${jobTracker}</job-tracker>
<name-node>${nameNode}</name-node>
<main-class>com.demo.Test2</main-class>
<arg>100</arg>
<capture-output/>
</java>
<ok to="end"/>
<error to="kill"/>
</action>
<kill name="kill">
<message>Action failed, error message[${wf:errorMessage(wf:lastErrorNode())}]</message>
</kill>
<end name="end"/>