Q - the result of the parent builder's build()public static class FlowBuilder.TransitionBuilder<Q>
extends java.lang.Object
| Constructor and Description |
|---|
TransitionBuilder(FlowBuilder<Q> parent,
java.lang.String pattern) |
| Modifier and Type | Method and Description |
|---|---|
FlowBuilder<Q> |
end()
Signal the successful end of the flow.
|
FlowBuilder<Q> |
end(java.lang.String status)
Signal the end of the flow with the status provided.
|
FlowBuilder<Q> |
fail()
Signal the end of the flow with an error condition.
|
FlowBuilder<Q> |
stop()
Signal the successful end of the flow.
|
FlowBuilder<Q> |
stopAndRestart(Flow flow)
Stop the flow and provide a flow to start with if the flow is restarted.
|
FlowBuilder<Q> |
stopAndRestart(JobExecutionDecider decider)
Stop the flow and provide a decider to start with if the flow is restarted.
|
FlowBuilder<Q> |
stopAndRestart(Step restart)
Stop the flow and provide a step to start with if the flow is restarted.
|
FlowBuilder<Q> |
to(Flow flow)
Specify the next state as a complete flow.
|
FlowBuilder<Q> |
to(JobExecutionDecider decider)
Specify the next state as a decision.
|
FlowBuilder<Q> |
to(Step step)
Specify the next step.
|
public TransitionBuilder(FlowBuilder<Q> parent, java.lang.String pattern)
public FlowBuilder<Q> to(Step step)
step - the next step after this transitionpublic FlowBuilder<Q> to(Flow flow)
flow - the next flow after this transitionpublic FlowBuilder<Q> to(JobExecutionDecider decider)
decider - the decider to determine the next steppublic FlowBuilder<Q> stop()
public FlowBuilder<Q> stopAndRestart(Flow flow)
flow - the flow to restart withpublic FlowBuilder<Q> stopAndRestart(JobExecutionDecider decider)
decider - a decider to restart withpublic FlowBuilder<Q> stopAndRestart(Step restart)
restart - the step to restart withpublic FlowBuilder<Q> end()
public FlowBuilder<Q> end(java.lang.String status)
status - String containing the status.public FlowBuilder<Q> fail()