private StepExecution getLastStepExecution(Step last) { StepExecution lastStepExecution = null; List<StepExecution> stepExecs = persistenceService.getStepExecutionIDListQueryByJobID(jobExecutionImpl.getExecutionId()); for (StepExecution stepExecution : stepExecs) { if(last.getId().equals(stepExecution.getName())) { lastStepExecution = stepExecution; } } return lastStepExecution; }
private StepExecution getLastStepExecution(Step last) { StepExecution lastStepExecution = null; List<StepExecution> stepExecs = persistenceService.getStepExecutionIDListQueryByJobID(jobExecution.getExecutionId()); for (StepExecution stepExecution : stepExecs) { if(last.getId().equals(stepExecution.getName())) { lastStepExecution = stepExecution; } } return lastStepExecution; }