List of usage examples for org.springframework.statemachine.event StateMachineEventPublisher publishEventNotAccepted
void publishEventNotAccepted(Object source, Message<?> event);
From source file:org.springframework.statemachine.support.StateMachineObjectSupport.java
protected void notifyEventNotAccepted(StateContext<S, E> stateContext) { try {/*from w ww .j ava2 s .co m*/ stateMachineHandlerCallHelper.callOnEventNotAccepted(getBeanName(), stateContext); stateListener.eventNotAccepted(stateContext.getMessage()); stateListener.stateContext(stateContext); if (contextEventsEnabled) { StateMachineEventPublisher eventPublisher = getStateMachineEventPublisher(); if (eventPublisher != null) { eventPublisher.publishEventNotAccepted(this, stateContext.getMessage()); } } } catch (Throwable e) { log.warn("Error during notifyEventNotAccepted", e); } }