Class FlowBuilder.TransitionBuilder<Q>
java.lang.Object
org.springframework.batch.core.job.builder.FlowBuilder.TransitionBuilder<Q>
- Type Parameters:
Q
- the result of the parent builder's build()
- Enclosing class:
- FlowBuilder<Q>
A builder for transitions within a flow.
- Author:
- Dave Syer
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionend()
Signal the successful end of the flow.Signal the end of the flow with the status provided.fail()
Signal the end of the flow with an error condition.stop()
Signal the successful end of the flow.stopAndRestart
(Flow flow) Stop the flow and provide a flow to start with if the flow is restarted.stopAndRestart
(JobExecutionDecider decider) Stop the flow and provide a decider to start with if the flow is restarted.stopAndRestart
(Step restart) Stop the flow and provide a step to start with if the flow is restarted.Specify the next state as a complete flow.to
(JobExecutionDecider decider) Specify the next state as a decision.Specify the next step.
-
Constructor Details
-
TransitionBuilder
-
-
Method Details
-
to
Specify the next step.- Parameters:
step
- the next step after this transition- Returns:
- a FlowBuilder
-
to
Specify the next state as a complete flow.- Parameters:
flow
- the next flow after this transition- Returns:
- a FlowBuilder
-
to
Specify the next state as a decision.- Parameters:
decider
- the decider to determine the next step- Returns:
- a FlowBuilder
-
stop
Signal the successful end of the flow.- Returns:
- a FlowBuilder
-
stopAndRestart
Stop the flow and provide a flow to start with if the flow is restarted.- Parameters:
flow
- the flow to restart with- Returns:
- a FlowBuilder
-
stopAndRestart
Stop the flow and provide a decider to start with if the flow is restarted.- Parameters:
decider
- a decider to restart with- Returns:
- a FlowBuilder
-
stopAndRestart
Stop the flow and provide a step to start with if the flow is restarted.- Parameters:
restart
- the step to restart with- Returns:
- a FlowBuilder
-
end
Signal the successful end of the flow.- Returns:
- a FlowBuilder
-
end
Signal the end of the flow with the status provided.- Parameters:
status
-String
containing the status.- Returns:
- a FlowBuilder
-
fail
Signal the end of the flow with an error condition.- Returns:
- a FlowBuilder
-