Zico,
From what I understand from your example, you can do all the work in a single step by specifying an itemProcessor:
Code:
<beans:bean id="myStep" parent="simpleStep">
<beans:property name="itemReader" ref="myItemReader"/>
<beans:property name="itemProcessor" ref="myItemProcessor"/>
<beans:property name="itemWriter" ref="myItemWriter"/>
</beans:bean>
Now, to answer directly your question, you can promote values from step-to-step by declaring a promotion listener:
Code:
<beans:bean id="promotionListener" class="org.springframework.batch.core.listener.ExecutionContextPromotionListener">
<beans:property name="keys">
<beans:list>
<beans:value>key1</beans:value>
<beans:value>key2</beans:value>
</beans:list>
</beans:property>
</beans:bean>
Where key1 and key2 are keys to value in the executionContext.
Then, add the above promotionListener to the listeners property of the step that you want to promote from:
Code:
<beans:property name="listeners">
<beans:list>
<beans:ref bean="promotionListener"/>
</beans:list>
</beans:property>
Good luck!
- Gino