Examples of JobStep


Examples of com.ontology2.haruhi.flows.JobStep

    Map<String, Object> local;
   
    private void runStep(MavenManagedJar jar, List<String> flowArgs, FlowStep that) throws Exception {
        if(that instanceof JobStep) {
            JobStep jobStep=(JobStep) that;
            this.runJob(jar, jobStep.getStepArgs(local,flowArgs));
        } else if(that instanceof AssignmentStep) {
            AssignmentStep ass=(AssignmentStep) that;
            local=ass.process(local, flowArgs);
        } else {
            throw new RuntimeException("Could not process step of type "+that.getClass());
View Full Code Here

Examples of org.springframework.batch.core.step.job.JobStep

   *
   * @return a new job step
   */
  public Step build() {

    JobStep step = new JobStep();
    step.setName(getName());
    super.enhance(step);
    if (job != null) {
      step.setJob(job);
    }
    if (jobParametersExtractor != null) {
      step.setJobParametersExtractor(jobParametersExtractor);
    }
    if (jobLauncher == null) {
      SimpleJobLauncher jobLauncher = new SimpleJobLauncher();
      jobLauncher.setJobRepository(getJobRepository());
      try {
        jobLauncher.afterPropertiesSet();
      }
      catch (Exception e) {
        throw new StepBuilderException(e);
      }
      this.jobLauncher = jobLauncher;
    }
    step.setJobLauncher(jobLauncher);
    try {
      step.afterPropertiesSet();
    }
    catch (Exception e) {
      throw new StepBuilderException(e);
    }
    return step;
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.