Example usage for org.apache.commons.scxml TriggerEvent getName

List of usage examples for org.apache.commons.scxml TriggerEvent getName

Introduction

In this page you can find the example usage for org.apache.commons.scxml TriggerEvent getName.

Prototype

public String getName() 

Source Link

Usage

From source file:com.headstrong.fusion.statemachine.SCXMLStateMachine.java

public void triggerEvent(Event event) throws StateEventException {
    TriggerEvent triggerEvent = new TriggerEvent(event.getName(), TriggerEvent.SIGNAL_EVENT);
    // send the event
    try {//from  ww  w . j  av a  2  s.  c  o  m
        scxmlExecutor.triggerEvent(triggerEvent);
    } catch (ModelException e) {
        logger.error(
                "Error sending trigger Event" + triggerEvent.getName() + " to state machine " + this.getId());
        throw new StateEventException("Error sending trigger Event to the state machine", e);
    }
}