public class FlowJob extends AbstractJob
Job interface that allows for complex flows of
steps, rather than requiring sequential execution. In general, this job
implementation was designed to be used behind a parser, allowing for a
namespace to abstract away details.logger| Constructor and Description |
|---|
FlowJob()
Create a
FlowJob with null name and no flow (invalid state). |
FlowJob(String name)
Create a
FlowJob with provided name and no flow (invalid state). |
| Modifier and Type | Method and Description |
|---|---|
protected void |
doExecute(JobExecution execution)
Extension point for subclasses allowing them to concentrate on processing
logic and ignore listeners and repository calls.
|
Step |
getStep(String stepName)
Retrieve the step with the given name.
|
Collection<String> |
getStepNames()
Retrieve the step names.
|
void |
setFlow(Flow flow)
Public setter for the flow.
|
afterPropertiesSet, execute, getJobParametersIncrementer, getJobParametersValidator, getJobRepository, getName, handleStep, isRestartable, registerJobExecutionListener, setBeanName, setJobExecutionListeners, setJobParametersIncrementer, setJobParametersValidator, setJobRepository, setName, setRestartable, toStringpublic FlowJob()
FlowJob with null name and no flow (invalid state).public void setFlow(Flow flow)
flow - the flow to setpublic Step getStep(String stepName)
getStep in interface StepLocatorgetStep in class AbstractJobpublic Collection<String> getStepNames()
getStepNames in interface StepLocatorgetStepNames in class AbstractJobprotected void doExecute(JobExecution execution) throws JobExecutionException
AbstractJobAbstractJob.handleStep(Step, JobExecution).doExecute in class AbstractJobexecution - the current JobExecutionJobExecutionException - to signal a fatal batch framework error (not a business or
validation exception)AbstractJob.doExecute(JobExecution)Copyright © 2013. All rights reserved.