/** * Set the current state of this flow session. * @param state the state that is currently active in this flow session * @see FlowExecutionImpl#setCurrentState(State) * @see FlowExecutionImplStateRestorer */ void setState(State state) { Assert.notNull(state, "The state is required"); Assert.isTrue(flow == state.getOwner(), "The state does not belong to the flow associated with this flow session"); this.state = state; }
/** * Set the current state of this flow session. * @param state the state that is currently active in this flow session * @see FlowExecutionImpl#setCurrentState(State) * @see FlowExecutionImplStateRestorer */ void setState(State state) { Assert.notNull(state, "The state is required"); Assert.isTrue(flow == state.getOwner(), "The state does not belong to the flow associated with this flow session"); this.state = state; }
/** * Set the current state of this flow session. * @param state the state that is currently active in this flow session * @see FlowExecutionImpl#setCurrentState(State) * @see FlowExecutionImplStateRestorer */ void setState(State state) { Assert.notNull(state, "The state is required"); Assert.isTrue(flow == state.getOwner(), "The state does not belong to the flow associated with this flow session"); this.state = state; }
/** * Set the current state of this flow session. * @param state the state that is currently active in this flow session * @see FlowExecutionImpl#setCurrentState(State) * @see FlowExecutionImplStateRestorer */ void setState(State state) { Assert.notNull(state, "The state is required"); Assert.isTrue(flow == state.getOwner(), "The state does not belong to the flow associated with this flow session"); this.state = state; this.stateId = state.getId(); }