spring-batch (java-config) identifying and executing step using JobExecutionDecider
问题 I have 3 steps A, B, C which should execute in the sequence A->B->C where B is optional. I've to execute step B only based on some condition. I'm using JobExecutionDecider to decide as follows: @Bean(name = "decider") JobExecutionDecider isStepRequired { return new JobExecutionDecider() { @Override public FlowExecutionStatus decide(final JobExecution jobExecution, final StepExecution stepExecution) { if (condition not satisfied) { // return status to skip step B and go to step C return