拆分后的条件流

时间:2021-07-12 08:04:39

标签: spring spring-batch

根据 ExitStatus,我知道有可能在步骤完成后指定下一步:

<batch:step id="step1" parent="parenStep1">
    <batch:next on="COMPLETED" to="step2"/>
    <batch:next on="FAILED" to="step3"/>
</batch:step>

我有这个拆分流程:

<batch:split id="split1" task-executor="taskExecutor" next="step4">
    <batch:flow><batch:step id="step1" parent="parentStep1"/> </batch:flow>
    <batch:flow><batch:step id="step2" parent="parentStep2"/> </batch:flow>
    <batch:flow><batch:step id="step3" parent="parentStep3"/> </batch:flow>
</batch:split>

有没有办法根据里面steps的ExitStatus来指定split后的next step?

注意:我知道使用分区可以解决问题,但我有使用 split 的限制

0 个答案:

没有答案
相关问题