return jobExecution.getStepExecutions();
}
private long startJobExecution(final JobInstanceImpl jobInstance, final Properties jobParameters, final JobExecutionImpl originalToRestart) throws JobStartException, JobSecurityException {
final JobExecutionImpl jobExecution = repository.createJobExecution(jobInstance, jobParameters);
final JobContextImpl jobContext = new JobContextImpl(jobExecution, originalToRestart, artifactFactory, repository, batchEnvironment);
final JobExecutionRunner jobExecutionRunner = new JobExecutionRunner(jobContext);
final Future<?> result = jobContext.getBatchEnvironment().getExecutorService().submit(jobExecutionRunner);
final long jobExecutionId = jobExecution.getExecutionId();
return jobExecutionId;
}