title: How to pass data from one action to another in oozie workflow
body: <p>In action "A1" I am adding two numbers 10 &amp; 20 so the result will be 30. Now this result 30 should be given as input to next action "A2". How to do this ?</p>
  
  <pre><code>&lt;workflow-app name="JavaFlow1" xmlns="uri:oozie:workflow:0.4"&gt;
  &lt;start to="A1"/&gt;
  &lt;action name="A1"&gt;
      &lt;java&gt;
          &lt;job-tracker&gt;${jobTracker}&lt;/job-tracker&gt;
          &lt;name-node&gt;${nameNode}&lt;/name-node&gt;
          &lt;main-class&gt;com.demo.Test1&lt;/main-class&gt;
          &lt;arg&gt;10&lt;/arg&gt;
          &lt;arg&gt;20&lt;/arg&gt;
          &lt;capture-output/&gt;
      &lt;/java&gt;
      &lt;ok to="A2"/&gt;
      &lt;error to="kill"/&gt;
  &lt;/action&gt;
  &lt;action name="A2"&gt;
      &lt;java&gt;
          &lt;job-tracker&gt;${jobTracker}&lt;/job-tracker&gt;
          &lt;name-node&gt;${nameNode}&lt;/name-node&gt;
          &lt;main-class&gt;com.demo.Test2&lt;/main-class&gt;
          &lt;arg&gt;100&lt;/arg&gt;
          &lt;capture-output/&gt;
      &lt;/java&gt;
      &lt;ok to="end"/&gt;
      &lt;error to="kill"/&gt;
  &lt;/action&gt;
  &lt;kill name="kill"&gt;
      &lt;message&gt;Action failed, error message[${wf:errorMessage(wf:lastErrorNode())}]&lt;/message&gt;
  &lt;/kill&gt;
  &lt;end name="end"/&gt;
  </code></pre>
  
  <p></p>