public class JsrFlowExecutor extends JobFlowExecutor
JobFlowExecutor
. Unlike the regular JobFlowExecutor
,
this extension does not promote an ExitStatus
from a step to the job level if
a custom exit status has been set on the job.exitStatus
Constructor and Description |
---|
JsrFlowExecutor(JobRepository jobRepository,
StepHandler stepHandler,
JobExecution execution) |
Modifier and Type | Method and Description |
---|---|
void |
addExitStatus(java.lang.String code) |
void |
updateJobExecutionStatus(FlowExecutionStatus status)
Handle any status changes that might be needed in the
JobExecution . |
abandonStepExecution, close, executeStep, findBatchStatus, getJobExecution, getStepExecution, isRestart
public JsrFlowExecutor(JobRepository jobRepository, StepHandler stepHandler, JobExecution execution)
public void addExitStatus(java.lang.String code)
addExitStatus
in interface FlowExecutor
addExitStatus
in class JobFlowExecutor
code
- the label for the exit status when a flow or sub-flow endspublic void updateJobExecutionStatus(FlowExecutionStatus status)
FlowExecutor
JobExecution
.updateJobExecutionStatus
in interface FlowExecutor
updateJobExecutionStatus
in class JobFlowExecutor
status
- status to update the JobExecution
to.