We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
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.
JobBuilder
Step
Flow
spring-batch/spring-batch-core/src/main/java/org/springframework/batch/core/job/builder/JobBuilder.java
Lines 53 to 78 in 972951a
It there any way to set decider first on code based job configuration?
References:
The text was updated successfully, but these errors were encountered:
SimpleJobBuilder
JobExecutionDecider
Hi! @fmbenhassine. I've created a draft PR about this issue. Please feel free to check it anytime.
Sorry, something went wrong.
3fe3b7f
Successfully merging a pull request may close this issue.
Discussed in #4359
Originally posted by acktsap April 12, 2023
In xml based job configuration, we can set decider first like this.
But when using code based job configuration, no way to start with decider.
JobBuilder
only provides start methods takingStep
,Flow
only.spring-batch/spring-batch-core/src/main/java/org/springframework/batch/core/job/builder/JobBuilder.java
Lines 53 to 78 in 972951a
It there any way to set decider first on code based job configuration?
References:
The text was updated successfully, but these errors were encountered: