public class FlowJobBuilder extends JobBuilderHelper<FlowJobBuilder>
FlowJob instances. A flow job delegates processing to a nested flow composed of steps and
conditional transitions between steps.JobBuilderHelper.CommonJobPropertieslogger| Constructor and Description |
|---|
FlowJobBuilder(JobBuilderHelper<?> parent)
Create a new builder initialized with any properties in the parent.
|
| Modifier and Type | Method and Description |
|---|---|
Job |
build()
Build a job that executes the flow provided, normally composed of other steps.
|
protected FlowJobBuilder |
flow(Flow flow)
Provide a single flow to execute as the job.
|
JobFlowBuilder |
start(Flow flow)
Start a job with this flow, but expect to transition from there to other flows or steps.
|
JobFlowBuilder |
start(Step step)
Start a job with this step, but expect to transition from there to other flows or steps.
|
enhance, getJobRepository, getName, incrementer, isRestartable, listener, preventRestart, repository, validatorpublic FlowJobBuilder(JobBuilderHelper<?> parent)
parent - a parent helper containing common job propertiespublic JobFlowBuilder start(Flow flow)
flow - the flow to start withpublic JobFlowBuilder start(Step step)
step - the step to start withprotected FlowJobBuilder flow(Flow flow)
flow - the flow to executepublic Job build()