public class FlowStep extends AbstractStep
Step implementation that delegates to a Flow. Useful for
logical grouping of steps, and especially for partitioning with multiple
steps per execution. If the flow has steps then when the FlowStep
executes, all steps including the parent FlowStep will have
executions in the JobRepository (one for the parent and one each for
the flow steps).| Constructor and Description |
|---|
FlowStep()
Default constructor convenient for configuration purposes.
|
FlowStep(Flow flow)
Constructor for a
FlowStep that sets the flow and of the step
explicitly. |
| Modifier and Type | Method and Description |
|---|---|
void |
afterPropertiesSet()
Ensure that the flow is set.
|
protected void |
doExecute(StepExecution stepExecution)
Delegate to the flow provided for the execution of the step.
|
void |
setFlow(Flow flow)
Public setter for the flow.
|
close, doExecutionRegistration, doExecutionRelease, execute, getCompositeListener, getJobRepository, getName, getStartLimit, isAllowStartIfComplete, open, registerStepExecutionListener, setAllowStartIfComplete, setBeanName, setJobRepository, setName, setStartLimit, setStepExecutionListeners, toStringpublic FlowStep()
public void setFlow(Flow flow)
flow - the flow to setpublic void afterPropertiesSet()
throws java.lang.Exception
afterPropertiesSet in interface org.springframework.beans.factory.InitializingBeanafterPropertiesSet in class AbstractStepjava.lang.ExceptionAbstractStep.afterPropertiesSet()protected void doExecute(StepExecution stepExecution) throws java.lang.Exception
doExecute in class AbstractStepstepExecution - the current step contextjava.lang.ExceptionAbstractStep.doExecute(StepExecution)