Example usage for org.springframework.batch.core.jsr JsrJobParametersConverter JOB_RUN_ID

List of usage examples for org.springframework.batch.core.jsr JsrJobParametersConverter JOB_RUN_ID

Introduction

In this page you can find the example usage for org.springframework.batch.core.jsr JsrJobParametersConverter JOB_RUN_ID.

Prototype

String JOB_RUN_ID

To view the source code for org.springframework.batch.core.jsr JsrJobParametersConverter JOB_RUN_ID.

Click Source Link

Usage

From source file:org.springframework.batch.core.jsr.launch.JsrJobOperator.java

@Override
public Properties getParameters(long executionId) throws NoSuchJobExecutionException, JobSecurityException {
    org.springframework.batch.core.JobExecution execution = jobExplorer.getJobExecution(executionId);

    if (execution == null) {
        throw new NoSuchJobExecutionException("Unable to find the JobExecution for id " + executionId);
    }/*from   ww w  .ja v  a 2 s .  c o  m*/

    Properties properties = jobParametersConverter.getProperties(execution.getJobParameters());
    properties.remove(JsrJobParametersConverter.JOB_RUN_ID);

    return properties;
}