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).STEP_TYPE_KEY
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, toString
public FlowStep()
public void setFlow(Flow flow)
flow
- the flow to setpublic void afterPropertiesSet() throws java.lang.Exception
afterPropertiesSet
in interface org.springframework.beans.factory.InitializingBean
afterPropertiesSet
in class AbstractStep
java.lang.Exception
AbstractStep.afterPropertiesSet()
protected void doExecute(StepExecution stepExecution) throws java.lang.Exception
doExecute
in class AbstractStep
stepExecution
- the current step contextjava.lang.Exception
- checked exception thrown by implementationAbstractStep.doExecute(StepExecution)