接口 JobExecutionDecider
- 所有已知实现类:
LimitDecider
public interface JobExecutionDecider
Interface allowing for programmatic access to the decision on what the status of a flow should be. For example, if some condition that's stored in the database indicates that the job should stop for a manual check, a decider implementation could check that value to determine the status of the flow.- 从以下版本开始:
- 2.0
- 作者:
- Dave Syer, Mahmoud Ben Hassine
方法概要
所有方法 实例方法 抽象方法 修饰符和类型 方法 说明 FlowExecutionStatus
decide(JobExecution jobExecution, StepExecution stepExecution)
Strategy for branching an execution based on the state of an ongoingJobExecution
.
方法详细资料
decide
FlowExecutionStatus decide(JobExecution jobExecution, @Nullable StepExecution stepExecution)
Strategy for branching an execution based on the state of an ongoingJobExecution
. The return value will be used as a status to determine the next step in the job.- 参数:
jobExecution
- a job executionstepExecution
- the latest step execution (may benull
)- 返回:
- the exit status code