春季批处理-根据先前拆分完成状态的一些流程定义拆分

时间:2018-11-27 21:08:11

标签: spring spring-batch

我的弹簧批定义如下。

1)Step1,Step2,Step3和Step4使用split并行运行。 2)希望根据以下条件触发另一个拆分。

步骤5-步骤1,步骤2和步骤3完成后。 step6-步骤1,步骤2和步骤4完成后

<job id="job1">
    <split id="splitForSet_A" task-executor="taskExecutor" next="splitForSet_B">
        <flow><step id="step1" parent="s1"/></flow>
        <flow><step id="step2" parent="s2"/></flow>
        <flow><step id="step3" parent="s3"/></flow>
        <flow><step id="step4” parent="s4”/></flow>
    </split>

 <another split>
<flow><step id="step5” /></flow>  — This is should start once step1 ,step2 and step3 are completed.
<flow><step id="step6” /></flow>  —   This should start once the step1,step2 and step4 are completed.
</another split>

0 个答案:

没有答案