Add ability to start a job flow definition with a decider
fmbenhassine opened this issue · 1 comments
fmbenhassine commented
Discussed in #4359
Originally posted by acktsap April 12, 2023
In xml based job configuration, we can set decider first like this.
<job id="decisionJob1" >
<decision id="decider1" decider="stepFlowDecider">
<end on="EXIT" exit-code="COMPLETED"/>
<next on="*" to="job1Step1" />
</decision>
<step id="job1Step1">
<tasklet ref="createFileTasklet"/>
</step>
</job>
But when using code based job configuration, no way to start with decider. JobBuilder
only provides start methods taking Step
, Flow
only.
It there any way to set decider first on code based job configuration?
References:
seonWKim commented
Hi! @fmbenhassine. I've created a draft PR about this issue. Please feel free to check it anytime.