/** * If a flow should start with a subflow use this as the first state. * * @param flow the flow to start from * @return a builder to enable chaining */ public FlowBuilder<Q> start(Flow flow) { doStart(flow); return this; }
/** * Start a flow. If some steps are already registered, just a synonym for {@link #from(Step)}. * * @param step the step to start with * @return this to enable chaining */ public FlowBuilder<Q> start(Step step) { doStart(step); return this; }
/** * If a flow should start with a decision use this as the first state. * * @param decider the to start from * @return a builder to enable chaining */ public UnterminatedFlowBuilder<Q> start(JobExecutionDecider decider) { doStart(decider); return new UnterminatedFlowBuilder<>(this); }
private void doFrom(Object input) { if (currentState == null) { doStart(input); } State state = createState(input); tos.put(currentState.getName(), currentState); this.currentState = state; }
private void doNext(Object input) { if (this.currentState == null) { doStart(input); } State next = createState(input); addTransition("COMPLETED", next); addTransition("*", failedState); this.currentState = next; }
/** * If a flow should start with a subflow use this as the first state. * * @param flow the flow to start from * @return a builder to enable chaining */ public FlowBuilder<Q> start(Flow flow) { doStart(flow); return this; }
/** * Start a flow. If some steps are already registered, just a synonym for {@link #from(Step)}. * * @param step the step to start with * @return this to enable chaining */ public FlowBuilder<Q> start(Step step) { doStart(step); return this; }
/** * If a flow should start with a subflow use this as the first state. * * @param flow the flow to start from * @return a builder to enable chaining */ public FlowBuilder<Q> start(Flow flow) { doStart(flow); return this; }
/** * Start a flow. If some steps are already registered, just a synonym for {@link #from(Step)}. * * @param step the step to start with * @return this to enable chaining */ public FlowBuilder<Q> start(Step step) { doStart(step); return this; }
/** * If a flow should start with a subflow use this as the first state. * * @param flow the flow to start from * @return a builder to enable chaining */ public FlowBuilder<Q> start(Flow flow) { doStart(flow); return this; }
/** * Start a flow. If some steps are already registered, just a synonym for {@link #from(Step)}. * * @param step the step to start with * @return this to enable chaining */ public FlowBuilder<Q> start(Step step) { doStart(step); return this; }
/** * If a flow should start with a decision use this as the first state. * * @param decider the to start from * @return a builder to enable chaining */ public UnterminatedFlowBuilder<Q> start(JobExecutionDecider decider) { doStart(decider); return new UnterminatedFlowBuilder<Q>(this); }
/** * If a flow should start with a decision use this as the first state. * * @param decider the to start from * @return a builder to enable chaining */ public UnterminatedFlowBuilder<Q> start(JobExecutionDecider decider) { doStart(decider); return new UnterminatedFlowBuilder<Q>(this); }
/** * If a flow should start with a decision use this as the first state. * * @param decider the to start from * @return a builder to enable chaining */ public UnterminatedFlowBuilder<Q> start(JobExecutionDecider decider) { doStart(decider); return new UnterminatedFlowBuilder<Q>(this); }
private void doFrom(Object input) { if (currentState == null) { doStart(input); } State state = createState(input); tos.put(currentState.getName(), currentState); this.currentState = state; }
private void doFrom(Object input) { if (currentState == null) { doStart(input); } State state = createState(input); tos.put(currentState.getName(), currentState); this.currentState = state; }
private void doFrom(Object input) { if (currentState == null) { doStart(input); } State state = createState(input); tos.put(currentState.getName(), currentState); this.currentState = state; }
private void doNext(Object input) { if (this.currentState == null) { doStart(input); } State next = createState(input); addTransition("COMPLETED", next); addTransition("*", failedState); this.currentState = next; }
private void doNext(Object input) { if (this.currentState == null) { doStart(input); } State next = createState(input); addTransition("COMPLETED", next); addTransition("*", failedState); this.currentState = next; }
private void doNext(Object input) { if (this.currentState == null) { doStart(input); } State next = createState(input); addTransition("COMPLETED", next); addTransition("*", failedState); this.currentState = next; }