|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.springframework.batch.core.job.flow.support.SimpleFlow
public class SimpleFlow
A Flow that branches conditionally depending on the exit status of
the last State. The input parameters are the state transitions (in no
particular order). The start state name can be specified explicitly (and must
exist in the set of transitions), or computed from the existing transitions,
if unambiguous.
| Constructor Summary | |
|---|---|
SimpleFlow(java.lang.String name)
Create a flow with the given name. |
|
| Method Summary | |
|---|---|
void |
afterPropertiesSet()
Locate start state and pre-populate data structures needed for execution. |
java.lang.String |
getName()
Get the name for this flow. |
State |
getState(java.lang.String stateName)
Retrieve the State with the given name. |
java.util.Collection<State> |
getStates()
Convenient accessor for clients needing to explore the states of this flow. |
FlowExecution |
resume(java.lang.String stateName,
FlowExecutor executor)
|
void |
setStateTransitions(java.util.List<StateTransition> stateTransitions)
Public setter for the stateTransitions. |
FlowExecution |
start(FlowExecutor executor)
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public SimpleFlow(java.lang.String name)
name - the name of the flow| Method Detail |
|---|
public java.lang.String getName()
getName in interface FlowFlow.getName()public void setStateTransitions(java.util.List<StateTransition> stateTransitions)
stateTransitions - the stateTransitions to setpublic State getState(java.lang.String stateName)
getState in interface Flowpublic java.util.Collection<State> getStates()
getStates in interface Flow
public void afterPropertiesSet()
throws java.lang.Exception
afterPropertiesSet in interface org.springframework.beans.factory.InitializingBeanjava.lang.ExceptionInitializingBean.afterPropertiesSet()
public FlowExecution start(FlowExecutor executor)
throws FlowExecutionException
start in interface FlowFlowExecutionExceptionFlow.start(FlowExecutor)
public FlowExecution resume(java.lang.String stateName,
FlowExecutor executor)
throws FlowExecutionException
resume in interface FlowstateName - the name of the state to resume onexecutor - the context to be passed into each state executed
FlowExecution containing the exit status of the flow
FlowExecutionExceptionFlow.resume(String, FlowExecutor)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||