/** * Constructor for a {@link FlowStep} that sets the flow and of the step * explicitly. * * @param flow the {@link Flow} instance to be associated with this step. */ public FlowStep(Flow flow) { super(flow.getName()); }
/** * Ensure that the flow is set. * @see AbstractStep#afterPropertiesSet() */ @Override public void afterPropertiesSet() throws Exception { Assert.state(flow != null, "A Flow must be provided"); if (getName()==null) { setName(flow.getName()); } super.afterPropertiesSet(); }
private State createState(Object input) { State result; if (input instanceof Step) { if (!states.containsKey(input)) { Step step = (Step) input; states.put(input, new StepState(prefix + step.getName(), step)); } result = states.get(input); } else if (input instanceof JobExecutionDecider) { if (!states.containsKey(input)) { states.put(input, new DecisionState((JobExecutionDecider) input, prefix + "decision" + (decisionCounter++))); } result = states.get(input); } else if (input instanceof Flow) { if (!states.containsKey(input)) { states.put(input, new FlowState((Flow) input, prefix + ((Flow) input).getName())); } result = states.get(input); } else { throw new FlowBuilderException("No state can be created for: " + input); } dirty = true; return result; }
throw new FlowExecutionException("TaskExecutor rejected task for flow=" + flow.getName());
/** * Constructor for a {@link FlowStep} that sets the flow and of the step * explicitly. */ public FlowStep(Flow flow) { super(flow.getName()); }
/** * Constructor for a {@link FlowStep} that sets the flow and of the step * explicitly. * * @param flow the {@link Flow} instance to be associated with this step. */ public FlowStep(Flow flow) { super(flow.getName()); }
/** * Constructor for a {@link FlowStep} that sets the flow and of the step * explicitly. * * @param flow the {@link Flow} instance to be associated with this step. */ public FlowStep(Flow flow) { super(flow.getName()); }
/** * Constructor for a {@link FlowStep} that sets the flow and of the step * explicitly. */ public FlowStep(Flow flow) { super(flow.getName()); }
/** * Ensure that the flow is set. * @see AbstractStep#afterPropertiesSet() */ @Override public void afterPropertiesSet() throws Exception { Assert.state(flow != null, "A Flow must be provided"); if (getName()==null) { setName(flow.getName()); } super.afterPropertiesSet(); }
/** * Ensure that the flow is set. * @see AbstractStep#afterPropertiesSet() */ @Override public void afterPropertiesSet() throws Exception { Assert.state(flow != null, "A Flow must be provided"); if (getName()==null) { setName(flow.getName()); } super.afterPropertiesSet(); }
/** * Ensure that the flow is set. * @see AbstractStep#afterPropertiesSet() */ @Override public void afterPropertiesSet() throws Exception { Assert.state(flow != null, "A Flow must be provided"); if (getName()==null) { setName(flow.getName()); } super.afterPropertiesSet(); }
private State createState(Object input) { State result; if (input instanceof Step) { if (!states.containsKey(input)) { Step step = (Step) input; states.put(input, new StepState(prefix + step.getName(), step)); } result = states.get(input); } else if (input instanceof JobExecutionDecider) { if (!states.containsKey(input)) { states.put(input, new DecisionState((JobExecutionDecider) input, prefix + "decision" + (decisionCounter++))); } result = states.get(input); } else if (input instanceof Flow) { if (!states.containsKey(input)) { states.put(input, new FlowState((Flow) input, prefix + ((Flow) input).getName())); } result = states.get(input); } else { throw new FlowBuilderException("No state can be created for: " + input); } dirty = true; return result; }
private State createState(Object input) { State result; if (input instanceof Step) { if (!states.containsKey(input)) { Step step = (Step) input; states.put(input, new StepState(prefix + step.getName(), step)); } result = states.get(input); } else if (input instanceof JobExecutionDecider) { if (!states.containsKey(input)) { states.put(input, new DecisionState((JobExecutionDecider) input, prefix + "decision" + (decisionCounter++))); } result = states.get(input); } else if (input instanceof Flow) { if (!states.containsKey(input)) { states.put(input, new FlowState((Flow) input, prefix + ((Flow) input).getName())); } result = states.get(input); } else { throw new FlowBuilderException("No state can be created for: " + input); } dirty = true; return result; }
private State createState(Object input) { State result; if (input instanceof Step) { if (!states.containsKey(input)) { Step step = (Step) input; states.put(input, new StepState(prefix + step.getName(), step)); } result = states.get(input); } else if (input instanceof JobExecutionDecider) { if (!states.containsKey(input)) { states.put(input, new DecisionState((JobExecutionDecider) input, prefix + "decision" + (decisionCounter++))); } result = states.get(input); } else if (input instanceof Flow) { if (!states.containsKey(input)) { states.put(input, new FlowState((Flow) input, prefix + ((Flow) input).getName())); } result = states.get(input); } else { throw new FlowBuilderException("No state can be created for: " + input); } dirty = true; return result; }
throw new FlowExecutionException("TaskExecutor rejected task for flow=" + flow.getName());
throw new FlowExecutionException("TaskExecutor rejected task for flow=" + flow.getName());
throw new FlowExecutionException("TaskExecutor rejected task for flow=" + flow.getName());
throw new FlowExecutionException("TaskExecutor rejected task for flow=" + flow.getName());