I have to delete all the records from the DB if there is a file at a given path before processing the record of new file else don't delete the record from DB.
delete the existing records from a table ABC Then process new file
Don't delete the existing records from ABC table.
Can any one suggest me some solution how to make my job in different steps.
Below is the piece of code. I am executing my batch through command prompt.
Within this job i have to manage that if else condition.
<job id="paymentRecordLoadJob" xmlns="http://www.springframework.org/schema/batch">
<step id="paymentRecordLoad" >
<chunk reader="paymentRecordReader" writer="paymentRecordWriter"