title: Spring Batch: How can I define is StepExecution a parent or child step?
body: <p>I defined <code>firstStep</code> which is a parent step. It has various child steps for parallel computation.</p>
  
  <pre><code>&lt;step id=“firstStep" next=“secondStep”&gt;
      &lt;partition step=“firstAdditinalStep" partitioner="simplePartitioner"&gt;
          &lt;handler grid-size=“${app.conf.threads}" task-executor="taskExecutor"/&gt;
      &lt;/partition&gt;
      &lt;listeners&gt;
          &lt;listener ref=“myListener”/&gt;        
      &lt;/listeners&gt;
  &lt;/step&gt;
  </code></pre>
  
  <p>I have entry point which allows me to grab all StepExecution's. And now I need to compare steps and define which StepExecution ia a parent or child step (for all steps). What's the easiest way to do this?</p>