Class FlowStepBuilder
java.lang.Object
org.springframework.batch.core.step.builder.StepBuilderHelper<FlowStepBuilder>
org.springframework.batch.core.step.builder.FlowStepBuilder
A step builder for
FlowStep instances. A flow step delegates processing to a nested flow composed of other
steps.- Since:
- 2.2
- Author:
- Dave Syer
-
Nested Class Summary
Nested classes/interfaces inherited from class org.springframework.batch.core.step.builder.StepBuilderHelper
StepBuilderHelper.CommonStepProperties -
Field Summary
Fields inherited from class org.springframework.batch.core.step.builder.StepBuilderHelper
logger, properties -
Constructor Summary
ConstructorsConstructorDescriptionFlowStepBuilder(StepBuilderHelper<?> parent) Create a new builder initialized with any properties in the parent. -
Method Summary
Modifier and TypeMethodDescriptionbuild()Build a step that executes the flow provided, normally composed of other steps.Provide a flow to execute during the step.Methods inherited from class org.springframework.batch.core.step.builder.StepBuilderHelper
allowStartIfComplete, enhance, getJobRepository, getName, getTransactionManager, isAllowStartIfComplete, listener, listener, repository, startLimit, transactionManager
-
Constructor Details
-
FlowStepBuilder
Create a new builder initialized with any properties in the parent. The parent is copied, so it can be re-used.- Parameters:
parent- a parent helper containing common step properties
-
-
Method Details
-
flow
Provide a flow to execute during the step.- Parameters:
flow- the flow to execute- Returns:
- this for fluent chaining
-
build
Build a step that executes the flow provided, normally composed of other steps. The flow is not executed in a transaction because the individual steps are supposed to manage their own transaction state.- Returns:
- a flow step
-