Package org.springframework.batch.core

Examples of org.springframework.batch.core.JobParametersBuilder.addParameter()


    JobParametersBuilder builder = new JobParametersBuilder();
    Map<String, JobParameter> jobParameters = stepExecution.getJobParameters().getParameters();
    ExecutionContext executionContext = stepExecution.getExecutionContext();
    if (useAllParentParameters) {
      for (String key : jobParameters.keySet()) {
        builder.addParameter(key, jobParameters.get(key));
      }
    }
    for (String key : keys) {
      if (key.endsWith("(long)")) {
        key = key.replace("(long)", "");
View Full Code Here


    final JobParametersBuilder jobParametersBuilder = new JobParametersBuilder();

    for (Map.Entry<String, JobParameter> entry : jobParameters.getParameters().entrySet()) {
      if (!IS_RESTART_JOB_PARAMETER_KEY.equalsIgnoreCase(entry.getKey())) {
        jobParametersBuilder.addParameter(entry.getKey(), entry.getValue());
      }
    }

    return jobParametersBuilder.toJobParameters();
  }
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.