If you want conditional step flow, you should use the batch namespace. There is no other reasonable way to get the same functionality.
That said, converting a <bean/> to a <job/> is pretty trivial and shouldn't cause you any problems since the <job/> tag is just a wrapper for the <bean/> functionality. Just replace
Code:
<bean id="batchjob" class="org.springframework.batch.core.job.SimpleJob" scope="singleton">
<property name="name" value="batchjob"/>
<property name="steps">
<list>
<ref bean="step1"/>
<ref bean="step2"/>
<ref bean="step3"/>
<list>
</property>
</bean>
with:
Code:
<job id="batchjob">
<step id="step1">
<tasklet ref="step1Tasklet"/>
<next on="*" to="step2"/>
<next on="FAILED" to="step3"/>
</step>
<step id="step2">
<tasklet ref="step2Tasklet"/>
</step>
<step id="step3">
<tasklet ref="step3Tasklet"/>
</step>
</job>
and you should be good to go.