List of usage examples for org.springframework.statemachine.event StateMachineEventPublisher publishTransitionStart
void publishTransitionStart(Object source, Transition<?, ?> transition);
From source file:org.springframework.statemachine.support.StateMachineObjectSupport.java
protected void notifyTransitionStart(StateContext<S, E> stateContext) { try {/*from w w w . j a va2 s . co m*/ stateMachineHandlerCallHelper.callOnTransitionStart(getBeanName(), stateContext); stateListener.transitionStarted(stateContext.getTransition()); stateListener.stateContext(stateContext); if (contextEventsEnabled) { StateMachineEventPublisher eventPublisher = getStateMachineEventPublisher(); if (eventPublisher != null) { eventPublisher.publishTransitionStart(this, stateContext.getTransition()); } } } catch (Throwable e) { log.warn("Error during notifyTransitionStart", e); } }