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?
<chunk reader="itemReader" writer="itemWriter" commit-interval="10"/>
<step id="fetchRecord" parent="parentStep">
<chunk reader="inputRecords" processor="process" writer="opWriter" commit-interval="5">