Example usage for org.springframework.statemachine.listener StateMachineListener transitionStarted

List of usage examples for org.springframework.statemachine.listener StateMachineListener transitionStarted

Introduction

In this page you can find the example usage for org.springframework.statemachine.listener StateMachineListener transitionStarted.

Prototype

void transitionStarted(Transition<S, E> transition);

Source Link

Document

Notified when transition started.

Usage

From source file:org.springframework.statemachine.listener.CompositeStateMachineListener.java

@Override
public void transitionStarted(Transition<S, E> transition) {
    for (Iterator<StateMachineListener<S, E>> iterator = getListeners().reverse(); iterator.hasNext();) {
        StateMachineListener<S, E> listener = iterator.next();
        try {/*  w w w .j ava  2 s. com*/
            listener.transitionStarted(transition);
        } catch (Throwable e) {
            log.warn("Error during transitionStarted", e);
        }
    }
}