Is it possible to restart a job in spring batch with same job params, which has completed successfully?
Say I have a job with a step which reads from one file and writes to another.
For test purpose, I need to run the job again and again. However, I do not want the job param (which is today’s date which I am reading from a table) to change again and again.
Is such a scenario possible ?
This method of the JobOperator class along with a JobParameterIncrementer can be used to restart a job, either failed or completed.
http://static.springsource.org/spring-batch/apidocs/org/springframework/batch/core/launch/support/SimpleJobOperator.html#startNextInstance(java.lang.String)