title: How to get the name and status of all steps in a spring batch job?
body: <p>Is there any way to get the name and status of all steps in a <a href="http://docs.spring.io/spring-batch/trunk/apidocs/org/springframework/batch/core/Job.html" rel="nofollow noreferrer">Job</a> from a <a href="http://docs.spring.io/spring-batch/trunk/apidocs/org/springframework/batch/core/JobExecution.html" rel="nofollow noreferrer">JobExecution</a> instance? Something similar to <a href="http://docs.spring.io/spring-batch/trunk/apidocs/org/springframework/batch/core/JobExecution.html#getStepExecutions--" rel="nofollow noreferrer">JobExecution#getStepExecutions()</a>, but that method only returns the completed steps when I call it.</p>
  
  <p>I need to know if a certain step is going to be part of a job or not and if it has completed. I need to know this in for example <a href="http://docs.spring.io/spring-batch/trunk/apidocs/org/springframework/batch/core/JobExecutionListener.html#beforeJob-org.springframework.batch.core.JobExecution-" rel="nofollow noreferrer">JobExecutionListener#beforeJob</a>.</p>