I created a job which splits my file into small chunks and all these chunks are read in the separated steps. For ex. 3 steps are finished without any errors and the records are commited to the database, but if 4th step fails I need to rollback all records from previous step. **Is it possible to rollback them somehow?**

**Or perhaps there is a possibility to commit all records only when the last step was finished correctly?** (But here is problem with large files)