OPEN - issue BATCH-1380: Make <flow/> a top-level element, so it can be shared or strategised in a job
Add <flow/> at top level and as element in a flow.
This commit is contained in:
@@ -0,0 +1,40 @@
|
||||
<?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.1.xsd
|
||||
http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans-2.5.xsd">
|
||||
|
||||
<beans:import resource="common-context.xml" />
|
||||
|
||||
<job id="job1">
|
||||
<step id="s1" parent="step1" next="job1.flow"/>
|
||||
<flow id="job1.flow" ref="flow" next="s4" />
|
||||
<step id="s4" parent="step4" />
|
||||
</job>
|
||||
|
||||
<job id="job2">
|
||||
<flow id="job2.flow" ref="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" ref="flow" />
|
||||
</job>
|
||||
|
||||
<job id="job4">
|
||||
<split id="split">
|
||||
<flow ref="flow" />
|
||||
<flow ref="flow" />
|
||||
</split>
|
||||
</job>
|
||||
|
||||
<flow id="flow">
|
||||
<step id="s2" parent="step2" next="s3"/>
|
||||
<step id="s3" parent="step3" />
|
||||
</flow>
|
||||
|
||||
</beans:beans>
|
||||
Reference in New Issue
Block a user