title: How to pass data to next step in a partitioned flow
body: <p>Let's say there is a partioned flow composed of 2 steps:</p>
  <pre><code>&lt;step id=&quot;stepmaster&quot;&gt;
      &lt;partition partitioner=&quot;partitionerExample&quot;&gt;
          &lt;handler grid-size=&quot;1&quot; task-executor=&quot;taskExecutorExample&quot; /&gt;
          &lt;step&gt;
              &lt;flow parent=&quot;flowExample&quot;/&gt;
          &lt;/step&gt;
      &lt;/partition&gt;
  &lt;/step&gt;
  
  &lt;batch:flow id=&quot;flowExample&quot;&gt;
      &lt;batch:step id=&quot;step1&quot; next=&quot;step2&quot;&gt;
          &lt;tasklet ref=&quot;tasklet1&quot;/&gt;
      &lt;/batch:step&gt;
      &lt;batch:step id=&quot;step2&quot;&gt;
          &lt;tasklet ref=&quot;tasklet2&quot;/&gt;
      &lt;/batch:step&gt;
  &lt;/batch:flow&gt;
  </code></pre>
  <p>I need to pass data from step1 to step2. I am familiar with passing data to step execution context and then promoting it to job execution context, but this would not work in this particular situation due to parallelism of partitions, which would overwrite each other.</p>
  <p>Since partition data is persisted during the entire flow but not after, I thought there might be a &quot;step execution context&quot; of the flow, I have tried to pass data to step execution context without promoting, but I could not retrive data.</p>
  <p>Is there any way to pass data from step1 to step2 conserving parallelism? Whether using a specific (flow?) context or changing design.</p>