Bugzilla – Bug 4051
How to get StepExecution
Last modified: 2013-01-16 23:09:26 UTC
The JobOperator provides a method getStepExecution(jobExecutionId, stepExecutionId) but how do we get the stepExecutionId?
In fig.X under 1.2 Step, It is implied that a jobExecution has many stepExecutions, but how do we get all the steps executed for a given job execution?
Looks like we need to add a method for that.
Currently the spec does not have a way to get a StepExecution from the JobExecution it's related to. Do we want to fix this issue by correcting that instead or just adding a method to the JobOperator? Spring Batch handles it by allowing the user to get the StepExecutions from the JobExecution (http://static.springsource.org/spring-batch/apidocs/org/springframework/batch/core/JobExecution.html#getStepExecutions()).
The following method was added to JobOperator:
List<StepExecution> getStepExecutions(long executionId) throws NoSuchJobExecutionException;