I have a job with e.g. steps 1 to 10 in a sequnetial execution.
Based on a JobParameter (mmExport=true) enterd on the command line I want to either execute all the steps or END after e.g step 6.
I looked at using a Decider but that won't work becuase it is not inside a step so I can't give it a scope="step"
but I need a scope="step" in order to do something like
<bean id="deciderMM" class="de.quirin.siron.job.MMDecider" scope="step">
<property name="exportMM" value="#{jobParameters['export.mm']}"/>
</bean>
Is there any elegant way to do this in Spring Batch?


Reply With Quote
