title: How to pass data between Spring Batch jobs
body: <p>I'm familiar with how to pass data between steps in a Spring Batch job.  But what happens when you job is composed of many smaller jobs?  In the example below, I would like to set some data in the JobExecutionContext at the end of the first job, siNotificationJob.  Then, that data could be read from the JobExecutionContext of StepExecutionContext in the next job, ciNotificationJob.  Do I need to promote this data somehow?  I can't seem to see the results in the Job Parameter Extractor defined in step 'ciNotificationJob' that I use to configure my job parameters.</p>
  
  <p>Thoughts?</p>
  
  <p>Andrew</p>
  
  <pre><code>    &lt;job id="notificationJob" xmlns="http://www.springframework.org/schema/batch"&gt;
  
      &lt;batch:step id="pn_step_0" next="pn-step-1"&gt;
          &lt;batch:job ref="siNotificationJob" job-launcher="jobLauncher" 
              job-parameters-extractor="jobParamsExtractor"/&gt;
      &lt;/batch:step&gt;       
      &lt;batch:step id="pn-step-1" next="pn-step-2"&gt;
          &lt;batch:job ref="ciNotificationJob" job-launcher="jobLauncher" 
              job-parameters-extractor="jobParamsExtractor"/&gt;
      &lt;/batch:step&gt;           
  &lt;/job&gt;
  </code></pre>