To get a job parameter, you inject it into a step scoped bean. You're already doing that with the sDItemReader
. To get it in your mapper, add a setter, say setFileName(String name)
, and configure your mapper like below:
<beans:bean id="sDHeaderLineMapper" class="com.cv.cib.common.gfmas.aob.s.d.SDHeaderFieldSetMapper" scope="step">
<beans:property name="fileName" value="#{jobParameters['input.file.name']}"/>
</beans:bean>