title: spring batch : Conditional Flow
body: <p>I need to decide based on some condition in step1 of job, which step to call next.</p>
  
  <p>Please note: in Step1, I'm using purely tasklet approach. Example:</p>
  
  <pre><code>&lt;step id="step1"&gt;
     &lt;tasklet ref="example"&gt;
  &lt;/step&gt;
  </code></pre>
  
  <p>Please help, how can I put some code in Example tasklet or make some configuration to decide the next step to be called ?</p>
  
  <p>I've already looked into <a href="https://docs.spring.io/spring-batch/reference/html/configureStep.html" rel="nofollow noreferrer">https://docs.spring.io/spring-batch/reference/html/configureStep.html</a></p>