Hi all,
What I need to do is that before running the batch I have to run multiple queries and store them in a Map so that while checking business logic in 'itemProcessor' I can validate input records with the help of Map values.
So my config xml may look like below. But what I am stuck with is that how can I make the Map created in 'parentStep' available in 'process' class?
Please suggest.
Code:<job id="counterJob"> <step id="parentStep"> <chunk reader="itemReader" writer="itemWriter" commit-interval="10"/> </tasklet> </step> <step id="fetchRecord" parent="parentStep"> <tasklet> <chunk reader="inputRecords" processor="process" writer="opWriter" commit-interval="5"> </chunk> </tasklet> </step> </job>


Reply With Quote