This content has been marked as final.
Show 1 reply
-
1. Re: Get a list of StepExecution in the JobListener.afterJob method
cfang Sep 29, 2016 3:06 PM (in response to richardmoore)You can try something like:
@Named
public class JobListener1 ... {
@Inject
JobContext jobContext;
private JobOperator jobOperator = BatchRuntime.getJobOperator();
public void afterJob() {
long jobExecutionId = jobContext.getExecutionId();
jobOperator.getStepExecutions(jobExecutionId);
}