Example usage for org.apache.commons.scxml.semantics ErrorConstants UNDEFINED_VARIABLE

List of usage examples for org.apache.commons.scxml.semantics ErrorConstants UNDEFINED_VARIABLE

Introduction

In this page you can find the example usage for org.apache.commons.scxml.semantics ErrorConstants UNDEFINED_VARIABLE.

Prototype

String UNDEFINED_VARIABLE

To view the source code for org.apache.commons.scxml.semantics ErrorConstants UNDEFINED_VARIABLE.

Click Source Link

Document

A variable referred to by assign name attribute is undefined.

Usage

From source file:alma.acs.nc.sm.generic.AcsScxmlDispatchingAction.java

public void execute(final EventDispatcher evtDispatcher, final ErrorReporter errRep,
        final SCInstance scInstance, final Log appLog, final Collection derivedEvents)
        throws ModelException, SCXMLExpressionException {

    try {//from  w w w. j av a 2s  .c o m
        getActionDispatcher(scInstance);
    } catch (Exception ex) {
        errRep.onError(ErrorConstants.UNDEFINED_VARIABLE,
                "Failed to get UserActionDispatcher object from root context.", ex);
    }

    if (disp != null && action != null) {
        // forward the action call to the dispatcher
        disp.execute(action, evtDispatcher, errRep, scInstance, derivedEvents);
    } else {
        errRep.onError(ErrorConstants.UNDEFINED_VARIABLE,
                "Failed to get UserActionDispatcher object from root context.", null);
    }
}