Package org.apache.commons.scxml

Examples of org.apache.commons.scxml.TriggerEvent


            fail(e.getMessage());
        }     
    }

    private Set fireEvent(String name, SCXMLExecutor exec) {
        TriggerEvent[] evts = {new TriggerEvent(name,
                TriggerEvent.SIGNAL_EVENT, null)};
        try {
            exec.triggerEvents(evts);
        } catch (Exception e) {
            fail(e.getMessage());
View Full Code Here


    throws ModelException, SCXMLExpressionException {
        if (appLog.isInfoEnabled()) {
            appLog.info("Hello " + name);
        }
        // For derived events payload testing
        TriggerEvent event =
            new TriggerEvent("helloevent", TriggerEvent.SIGNAL_EVENT, name);
        derivedEvents.add(event);
        callbacks++;
    }
View Full Code Here

         
          /**** SUBSEQUENT TURNS OF DIALOG ****/
          // pass a handle to the current ctx (for evaluating binding exprs)
          updateEvaluator(context, outcome);
          // fire a "faces.outcome" event on the dialog's state machine
          TriggerEvent[] te = { new TriggerEvent("faces.outcome",
              TriggerEvent.SIGNAL_EVENT) };
          try {
            exec.triggerEvents(te);
          } catch (ModelException me) {
            log.error(me.getMessage(), me);
View Full Code Here

         
          /**** SUBSEQUENT TURNS OF DIALOG ****/
          // pass a handle to the current ctx (for evaluating binding exprs)
          updateEvaluator(context, outcome);
          // fire a "faces.outcome" event on the dialog's state machine
          TriggerEvent[] te = { new TriggerEvent("faces.outcome",
              TriggerEvent.SIGNAL_EVENT) };
          try {
            exec.triggerEvents(te);
          } catch (ModelException me) {
            log.error(me.getMessage(), me);
View Full Code Here

        ((ShaleDialogELEvaluator) executor.getEvaluator()).
                    setFacesContext(context);
        executor.getRootContext().setLocal(Globals.POSTBACK_OUTCOME, outcome);

        try {
            executor.triggerEvent(new TriggerEvent(Globals.POSTBACK_EVENT,
                                TriggerEvent.SIGNAL_EVENT));
        } catch (ModelException me) {
            fireOnException(me);
        }
View Full Code Here

TOP

Related Classes of org.apache.commons.scxml.TriggerEvent

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.