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.| Modifier and Type | Field and Description |
|---|---|
protected Flow |
flow |
logger| Constructor and Description |
|---|
FlowJob()
Create a
FlowJob with null name and no flow (invalid state). |
FlowJob(java.lang.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(java.lang.String stepName)
Retrieve the step with the given name.
|
java.util.Collection<java.lang.String> |
getStepNames()
Retrieve the step names.
|
void |
setFlow(Flow flow)
Public setter for the flow.
|
afterPropertiesSet, execute, getDefaultExitStatusForFailure, getJobParametersIncrementer, getJobParametersValidator, getJobRepository, getName, handleStep, isRestartable, registerJobExecutionListener, setBeanName, setJobExecutionListeners, setJobParametersIncrementer, setJobParametersValidator, setJobRepository, setName, setRestartable, toStringprotected Flow flow
public FlowJob()
FlowJob with null name and no flow (invalid state).public FlowJob(java.lang.String name)
FlowJob with provided name and no flow (invalid state).name - the name to be associated with the FlowJob.public void setFlow(Flow flow)
flow - the flow to setpublic Step getStep(java.lang.String stepName)
getStep in interface StepLocatorgetStep in class AbstractJobstepName - name of the steppublic java.util.Collection<java.lang.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)