I'm new with Spring-batch. I have a simple, proof-of-concept, job which does something dummy.
ItemReader: Get a number of records between dateA and max date (last record at the moment) ItemProcessor: aggregates the rows per city ItemWriter: writes the result to the database
My question is that when the job finishes, I want to keep the last date in order for the next job execution to start from that date as dateA. I know that I can use JobExecutionContext to share data but if on the second run, I tried to get dateA but the value is null
IS there a way to get the previous dateA value recorded from the previous job execution? and how?
Thanks in advance