Project: springxd
Issue XD-1390: Investigate missing stepExecutions in JobRepository.getLastJobExecution() 
When the job is run with its jobParameters by SimpleJobLauncher, its lastJobExecution's stepExecutions are checked for UNKNOWN status to throw JobRestartException. It looks like the stepExecutions for the lastJobExecution are never set and the collection 'stepExecutions' is not fetched from job repository. Hence, not sure if the following condition in SimpleJobLauncher's run(final Job job, final JobParameters jobParameters) would ever get executed: for (StepExecution execution : lastExecution.getStepExecutions()) {	if (execution.getStatus() == BatchStatus.UNKNOWN) {	//throw	throw new JobRestartException("Step [" + execution.getStepName() + "] is of status UNKNOWN");	}//end if	}//end for
Story points: 3