I'm working with Spring batch for the first time and I need some help about validation step.
Before realy starting my batch Job, I need some validation on the file to be handled like :
- Check the name with information from database
- Check first and last line (wich are specific) with information from system and database
- Check total line number with a data in the first line
After that I can really start my batch job.
I have in mind multiple step chaining each others, the initial step doing the validation, if the file is not valid the process go in error step.
How can I doing this validation? All reader found give me only one line of the file, I have to create my own reader? Which approach will you take to manage this behaviour?