<?xml version="1.0" encoding="UTF-8"?>
<beans:beans xmlns="http://www.springframework.org/schema/batch" xmlns:beans="http://www.springframework.org/schema/beans"
	xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
	xsi:schemaLocation="http://www.springframework.org/schema/batch http://www.springframework.org/schema/batch/spring-batch-2.2.xsd
	http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans-3.1.xsd">

	<beans:import resource="common-context.xml" />

	<job id="job1">
		<step id="s1" parent="step1" next="job1.flow"/>
		<flow id="job1.flow" parent="flow" next="s4" />
		<step id="s4" parent="step4" />
	</job>

	<job id="job2">
		<flow id="job2.flow" parent="flow">
			 <next on="*" to="job2.s1"/>
			 <next on="FAILED" to="job2.s2"/>
		</flow>
		<step id="job2.s1" parent="step1" />
		<step id="job2.s2" parent="step2" />
	</job>

	<job id="job3">
		<flow id="job3.flow" parent="flow" />
	</job>

	<job id="job4">
		<split id="split">
			<flow parent="flow" />
			<flow parent="flow" />
		</split>
	</job>

	<flow id="flow">
		<step id="s2" parent="step2" next="s3"/>
		<step id="s3" parent="step3" />
	</flow>

</beans:beans>