title: Spring Batch - Step on FAILED was not invoked
body: <p>my Spring Batch configuration is posted below.
  The problem is that I don't understand why step rename-file-step was not invoked.</p>
  
  <p>My test scenario:</p>
  
  <ol>
  <li>Step copy-file-step is completed.</li>
  <li>During invocation of ItemWriter in step copy-file-step a rollback exception occurs. </li>
  </ol>
  
  <p>The ExitStatus of my-import-step is FAILED. 
  I expect that rename-file-step should be invoked but it is not.
  Could anyone help in explanation? Thanks in advance!</p>
  
  <p>More details:
  In Job Repository(DB), for the step my-import-step:
  exitCode: FAILED, status: UNKNOWN. </p>
  
  <p><div class="snippet" data-lang="js" data-hide="false">
  <div class="snippet-code">
  <pre class="snippet-code-html lang-html prettyprint-override"><code>     &lt;batch:job id="myImportJob"&gt;  
          &lt;batch:step id="copy-file-step" next="my-import-step"&gt;  
              &lt;batch:tasklet ref="sftpRequestTasklet"/&gt;  
          &lt;/batch:step&gt;  
          &lt;batch:step id="my-import-step"&gt;    
              &lt;batch:tasklet&gt;  
                  &lt;batch:chunk reader="myItemReader"  
                               writer="myItemWriter"
                               commit-interval="10000"&gt;
                  &lt;/batch:chunk&gt;  
                  &lt;batch:transaction-attributes isolation="DEFAULT" propagation="REQUIRED"/&gt;  
                  &lt;/batch:tasklet&gt;  
                  &lt;batch:next on="*" to="delete-file-step" /&gt;  
                  &lt;batch:next on="FAILED" to="rename-file-step" /&gt;  
              &lt;/batch:step&gt;  
              &lt;batch:step id="delete-file-step"&gt;  
                  &lt;batch:tasklet ref="deleteFileTasklet" /&gt;  
              &lt;/batch:step&gt;
              &lt;batch:step id="rename-file-step"&gt;
                  &lt;batch:tasklet ref="renameFileTasklet" /&gt;
              &lt;/batch:step&gt;  
          &lt;/batch:job&gt; </code></pre>
  </div>
  </div>
  </p>