commons-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Apache Wiki <wikidi...@apache.org>
Subject [Jakarta-commons Wiki] Update of "SCXML/FrequentlyAskedQuestions" by RahulAkolkar
Date Tue, 14 Feb 2006 21:44:46 GMT
Dear Wiki user,

You have subscribed to a wiki page or wiki category on "Jakarta-commons Wiki" for change notification.

The following page has been changed by RahulAkolkar:
http://wiki.apache.org/jakarta-commons/SCXML/FrequentlyAskedQuestions

The comment on the change is:
Update FAQ entry for command line testing

------------------------------------------------------------------------------
  
  ==== How do I try out the sample SCXML documents? ====
  
- The SCXML distribution provides a utility class {{{org.apache.commons.scxml.env.jsp.Standalone}}}
which provides a ''mock environment'' allowing users to try out samples. The core dependencies
for Commons SCXML are Commons Digester (which introduces a transitive dependency on Commons
Bean``````Utils, at the least) and Commons Logging. In addition, an environment specific expression
language is used in SCXML documents. The {{{Standalone}}} class anticipates expressions in
the JSP 2.0 Expression Language, and hence requires commons-el.jar and jsp-api.jar. View the
[http://jakarta.apache.org/commons/sandbox/scxml/dependencies.html dependencies page] for
the recommended version numbers. It may be possible to use lower version numbers for the Commons
dependencies. So that amounts to (use the correct local paths and filenames to the {{{jar}}}
files and the {{{XML}}} / SCXML document, without the line breaks):
+ The SCXML distribution provides utility classes that offer mock command line environments
allowing users to try out samples. The core dependencies for Commons SCXML are Commons Digester
(which introduces a transitive dependency on Commons !BeanUtils, at the least) and Commons
Logging. View the [http://jakarta.apache.org/commons/sandbox/scxml/dependencies.html dependencies
page] for the recommended version numbers. It may be possible to use lower version numbers
for the Commons dependencies.
+ 
+ An environment specific expression language is used in SCXML documents. Commons SCXML currently
supports the use of JEXL or JSP 2.0 EL in SCXML documents.
+ 
+ ''-- Using JEXL in SCXML documents --''
+ 
+ The JEXL Standalone class anticipates expressions in JEXL and hence requires commons-jexl.jar.
+ 
+ So that amounts to (use the correct local paths and filenames to the {{{jar}}} files and
the SCXML document, without the line breaks):
  
  {{{
  java -classpath
  
  commons-digester-1.7.jar;commons-beanutils-1.7.0.jar;
  commons-logging-1.0.4.jar;commons-scxml-1.0-SNAPSHOT.jar;
- commons-el-1.0.jar;jsp-api-2.0.jar 
+ commons-jexl-1.0.jar
  
+ org.apache.commons.scxml.test.StandaloneJexlExpressions
+ 
+ microwave01.xml
+ }}}
+ 
+ ''-- Using JSP 2.0 EL in SCXML documents --''
+ 
+ The JSP Standalone class anticipates expressions in the JSP 2.0 Expression Language, and
hence requires commons-el.jar and jsp-api.jar
+ 
+ And that amounts to (use the correct local paths and filenames to the {{{jar}}} files and
the SCXML document, without the line breaks):
+ 
+ {{{
+ java -classpath
+ 
+ commons-digester-1.7.jar;commons-beanutils-1.7.0.jar;
+ commons-logging-1.0.4.jar;commons-scxml-1.0-SNAPSHOT.jar;
+ commons-el-1.0.jar;jsp-api-2.0.jar
+ 
- org.apache.commons.scxml.env.jsp.Standalone 
+ org.apache.commons.scxml.test.StandaloneElExpressions
  
  microwave01.xml
  }}}
  
  You could set up something more elegant (a script, an ant task etc.), but that is what it
boils down to. If the document is a well-formed SCXML document, you will be able to type {{{?}}}
or {{{help}}} at the console and you can follow the directions thereafter (to simulate events,
set variable values, reset the state machine or quit).
  
- A few examples are available as part of the [http://svn.apache.org/repos/asf/jakarta/commons/sandbox/scxml/trunk/src/test/java/org/apache/commons/scxml/
Commons SCXML test suite]. Enjoy, and feedback is always welcome.
+ A few examples are available as part of the [http://svn.apache.org/repos/asf/jakarta/commons/sandbox/scxml/trunk/src/test/java/org/apache/commons/scxml/
Commons SCXML test suite] (look in env packages as well). Enjoy, and feedback is always welcome.
  
  ==== How do I enable / control the logging within the Commons SCXML package? ====
  

---------------------------------------------------------------------
To unsubscribe, e-mail: commons-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: commons-dev-help@jakarta.apache.org


Mime
View raw message