|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.springframework.batch.core.job.builder.FlowBuilder<Q>
Q - the type of object returned by the builder (by default a Flow)public class FlowBuilder<Q>
A builder for a flow of steps that can be executed as a job or as part of a job. Steps can be linked together with conditional transitions that depend on the exit status of the previous step.
| Nested Class Summary | |
|---|---|
static class |
FlowBuilder.SplitBuilder<Q>
A builder for building a split state. |
static class |
FlowBuilder.TransitionBuilder<Q>
A builder for transitions within a flow. |
static class |
FlowBuilder.UnterminatedFlowBuilder<Q>
A builder for continuing a flow from a decision state. |
| Constructor Summary | |
|---|---|
FlowBuilder(String name)
|
|
| Method Summary | |
|---|---|
Q |
build()
Validate the current state of the builder and build a flow. |
Q |
end()
A synonym for build() which callers might find useful. |
protected Flow |
flow()
|
FlowBuilder<Q> |
from(Flow flow)
Start again from a subflow that was already registered. |
FlowBuilder.UnterminatedFlowBuilder<Q> |
from(JobExecutionDecider decider)
Start again from a decision that was already registered. |
FlowBuilder<Q> |
from(Step step)
Go back to a previously registered step and start a new path. |
FlowBuilder<Q> |
next(Flow flow)
Go next on successful completion to a subflow. |
FlowBuilder.UnterminatedFlowBuilder<Q> |
next(JobExecutionDecider decider)
Transition to the decider on successful completion of the current step. |
FlowBuilder<Q> |
next(Step step)
Transition to the next step on successful completion of the current step. |
FlowBuilder.TransitionBuilder<Q> |
on(String pattern)
Start a transition to a new state if the exit status from the previous state matches the pattern given. |
FlowBuilder.SplitBuilder<Q> |
split(org.springframework.core.task.TaskExecutor executor)
|
FlowBuilder<Q> |
start(Flow flow)
If a flow should start with a subflow use this as the first state. |
FlowBuilder.UnterminatedFlowBuilder<Q> |
start(JobExecutionDecider decider)
If a flow should start with a decision use this as the first state. |
FlowBuilder<Q> |
start(Step step)
Start a flow. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public FlowBuilder(String name)
| Method Detail |
|---|
public Q build()
public FlowBuilder<Q> next(Step step)
step - the next step
public FlowBuilder<Q> start(Step step)
from(Step).
step - the step to start with
public FlowBuilder<Q> from(Step step)
start(Step).
step - the step to start from (already registered)
public FlowBuilder.UnterminatedFlowBuilder<Q> next(JobExecutionDecider decider)
decider - the JobExecutionDecider to determine the next step to execute
public FlowBuilder.UnterminatedFlowBuilder<Q> start(JobExecutionDecider decider)
decider - the to start from
public FlowBuilder.UnterminatedFlowBuilder<Q> from(JobExecutionDecider decider)
decider - the decider to start from (already registered)
public FlowBuilder<Q> next(Flow flow)
flow - the flow to go to
public FlowBuilder<Q> from(Flow flow)
flow - the flow to start from (already registered)
public FlowBuilder<Q> start(Flow flow)
flow - the flow to start from
public FlowBuilder.SplitBuilder<Q> split(org.springframework.core.task.TaskExecutor executor)
executor - a task executor to execute the split flows
public FlowBuilder.TransitionBuilder<Q> on(String pattern)
ExitStatus for commonly used values.
pattern - the pattern of exit status on which to take this transition
public final Q end()
build() which callers might find useful. Subclasses can override build to create an object
of the desired type (e.g. a parent builder or an actual flow).
protected Flow flow()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||