List of usage examples for org.springframework.statemachine StateContext getMessage
Message<E> getMessage();
From source file:org.springframework.statemachine.support.StateMachineObjectSupport.java
protected void notifyEventNotAccepted(StateContext<S, E> stateContext) { try {//w w w . jav a2 s . c o 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); } }