Class FlowStep
java.lang.Object
org.springframework.batch.core.step.AbstractStep
org.springframework.batch.core.job.flow.FlowStep
- All Implemented Interfaces:
Step,org.springframework.beans.factory.Aware,org.springframework.beans.factory.BeanNameAware,org.springframework.beans.factory.InitializingBean
A
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).- Author:
- Dave Syer
-
Field Summary
Fields inherited from interface org.springframework.batch.core.Step
STEP_TYPE_KEY -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidEnsure that the flow is set.protected voiddoExecute(StepExecution stepExecution) Delegate to the flow provided for the execution of the step.voidPublic setter for the flow.Methods inherited from class org.springframework.batch.core.step.AbstractStep
close, doExecutionRegistration, doExecutionRelease, execute, getCompositeListener, getJobRepository, getName, getStartLimit, isAllowStartIfComplete, open, registerStepExecutionListener, setAllowStartIfComplete, setBeanName, setJobRepository, setName, setStartLimit, setStepExecutionListeners, toString
-
Constructor Details
-
Method Details
-
setFlow
Public setter for the flow.- Parameters:
flow- the flow to set
-
afterPropertiesSet
Ensure that the flow is set.- Specified by:
afterPropertiesSetin interfaceorg.springframework.beans.factory.InitializingBean- Overrides:
afterPropertiesSetin classAbstractStep- Throws:
Exception- See Also:
-
doExecute
Delegate to the flow provided for the execution of the step.- Specified by:
doExecutein classAbstractStep- Parameters:
stepExecution- the current step context- Throws:
Exception- checked exception thrown by implementation- See Also:
-