title: how to control repeat and next step execution in spring batch
body: <p>Hi I have below like xml for executing Job</p>
  
  <pre>
  &lt;batch:job id="Job1" restartable="false" xmlns="http://www.springframework.org/schema/batch"&gt;
          &lt;step id="step1" next="step2"&gt;
              &lt;tasklet ref="automate" /&gt;
          &lt;/step&gt;
          &lt;step id="step2"&gt;
              &lt;tasklet ref="drive"  /&gt;
              &lt;next on="COMPLETED" to="step3"&gt;&lt;/next&gt;
          &lt;/step&gt;
          &lt;step id="step3"&gt;
              &lt;tasklet ref="generate_file"  /&gt;
          &lt;/step&gt;
      &lt;/batch:job&gt;
  </pre>
  
  <p>For this I have write a tasklet to execute a script. Now I want that if script execution failed three times then next step will not execute . But from Tasklet I am able to return only Finished which move the flow to next step and continuable which continue the process. What should I do in this.</p>