org.apache.commons.scxml.test
Class StandaloneUtils

java.lang.Object
  extended by org.apache.commons.scxml.test.StandaloneUtils

public final class StandaloneUtils
extends Object

Utility methods used by command line SCXML execution, useful for debugging. The following expression languages are supported in SCXML documents:

  1. JEXL - Using Commons JEXL
  2. EL - Using Commons EL

See Also:
org.apache.commons.scxml.env.jexl, org.apache.commons.scxml.env.jsp

Method Summary
static void execute(String uri, Evaluator evaluator)
          Command line utility method for executing the state machine defined using the SCXML document described by the specified URI and using the specified expression evaluator.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

execute

public static void execute(String uri,
                           Evaluator evaluator)
Command line utility method for executing the state machine defined using the SCXML document described by the specified URI and using the specified expression evaluator.

Parameters:
uri - The URI or filename of the SCXML document
evaluator - The expression evaluator for the expression language used in the specified SCXML document

RUNNING:

  • Enter a space-separated list of "events"
  • To quit, enter "quit"
  • To populate a variable in the current context, type "name=value"
  • To reset state machine, enter "reset"


Copyright © 2005-2008 The Apache Software Foundation. All Rights Reserved.