protected Step createFlowStep() { FlowStepBuilder builder = new StepBuilder(name).flow(flow); enhanceCommonStep(builder); return builder.build(); }
/** * Create a new step builder that will execute a flow. * * @param flow a flow to execute * @return a {@link FlowStepBuilder} */ public FlowStepBuilder flow(Flow flow) { return new FlowStepBuilder(this).flow(flow); }
/** * Build a step that executes the flow provided, normally composed of other steps. The flow is not executed in a * transaction because the individual steps are supposed to manage their own transaction state. * * @return a flow step */ public Step build() { FlowStep step = new FlowStep(); step.setName(getName()); step.setFlow(flow); super.enhance(step); try { step.afterPropertiesSet(); } catch (Exception e) { throw new StepBuilderException(e); } return step; }
/** * Create a new step builder that will execute a flow. * * @param flow a flow to execute * @return a {@link FlowStepBuilder} */ public FlowStepBuilder flow(Flow flow) { return new FlowStepBuilder(this).flow(flow); }
@Bean public Step flowStep() throws Exception { return steps.get("flowStep").flow(simpleFlow()).build(); }
/** * Build a step that executes the flow provided, normally composed of other steps. The flow is not executed in a * transaction because the individual steps are supposed to manage their own transaction state. * * @return a flow step */ public Step build() { FlowStep step = new FlowStep(); step.setName(getName()); step.setFlow(flow); super.enhance(step); try { step.afterPropertiesSet(); } catch (Exception e) { throw new StepBuilderException(e); } return step; }
/** * Create a new step builder that will execute a flow. * * @param flow a flow to execute * @return a {@link FlowStepBuilder} */ public FlowStepBuilder flow(Flow flow) { return new FlowStepBuilder(this).flow(flow); }
@Bean public Job concurrentJob() { Flow splitFlow = new FlowBuilder<Flow>("splitflow").split(new SimpleAsyncTaskExecutor()).add(flow(), flow(), flow(), flow(), flow(), flow(), flow()).build(); return jobBuilderFactory.get("concurrentJob") .start(firstStep()) .next(stepBuilderFactory.get("splitFlowStep") .flow(splitFlow) .build()) .next(lastStep()) .build(); }
/** * Build a step that executes the flow provided, normally composed of other steps. The flow is not executed in a * transaction because the individual steps are supposed to manage their own transaction state. * * @return a flow step */ public Step build() { FlowStep step = new FlowStep(); step.setName(getName()); step.setFlow(flow); super.enhance(step); try { step.afterPropertiesSet(); } catch (Exception e) { throw new StepBuilderException(e); } return step; }
/** * Create a new step builder that will execute a flow. * * @param flow a flow to execute * @return a {@link FlowStepBuilder} */ public FlowStepBuilder flow(Flow flow) { return new FlowStepBuilder(this).flow(flow); }
protected Step createFlowStep() { FlowStepBuilder builder = new StepBuilder(name).flow(flow); enhanceCommonStep(builder); return builder.build(); }
/** * Build a step that executes the flow provided, normally composed of other steps. The flow is not executed in a * transaction because the individual steps are supposed to manage their own transaction state. * * @return a flow step */ public Step build() { FlowStep step = new FlowStep(); step.setName(getName()); step.setFlow(flow); super.enhance(step); try { step.afterPropertiesSet(); } catch (Exception e) { throw new StepBuilderException(e); } return step; }
protected Step createFlowStep() { FlowStepBuilder builder = new StepBuilder(name).flow(flow); enhanceCommonStep(builder); return builder.build(); }
protected Step createFlowStep() { FlowStepBuilder builder = new StepBuilder(name).flow(flow); enhanceCommonStep(builder); return builder.build(); }