List of usage examples for org.springframework.batch.core.jsr JsrStepExecution JsrStepExecution
public JsrStepExecution(org.springframework.batch.core.StepExecution stepExecution)
From source file:org.springframework.batch.core.jsr.launch.JsrJobOperator.java
@Override public List<StepExecution> getStepExecutions(long executionId) throws NoSuchJobExecutionException, JobSecurityException { org.springframework.batch.core.JobExecution execution = jobExplorer.getJobExecution(executionId); if (execution == null) { throw new NoSuchJobException("JobExecution with the id " + executionId + " was not found"); }/*from w w w .j a v a 2 s. c o m*/ Collection<org.springframework.batch.core.StepExecution> executions = execution.getStepExecutions(); List<StepExecution> batchExecutions = new ArrayList<StepExecution>(); if (executions != null) { for (org.springframework.batch.core.StepExecution stepExecution : executions) { if (!stepExecution.getStepName().contains(":partition")) { batchExecutions.add( new JsrStepExecution(jobExplorer.getStepExecution(executionId, stepExecution.getId()))); } } } return batchExecutions; }