commons-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Mike Sparr - www.goomzee.com" <m...@goomzee.com>
Subject Re: [SCXML] migration from old source to current - digest, exec, context handling
Date Sun, 18 Jun 2006 21:39:20 GMT
Rahul,

I found the changes.

- The SCXMLDigester was moved to the .io package
- #digest() signature dropped Context and Evaluator references
- No longer have addListener as part of SCXML (moved to SCXMLExecutor)
- No longer have getRootContext "" (moved to SCXMLExecutor)

===

I got the build to work and will test to see if application still works.
I'm curious why you moved those into the Executor?  In addition, when I
instantiated it I used the setSuperStep and setStateMachine methods before.
I assume I remove those and just use #go?

======

In the docs you mentioned you added a 'bridge' component at 'glue'.  My
implementation leverages a custom bridge (HashMap) so I'm unsure how to
retro the code to work with new base.

======

As you see, I'm replacing ELEvaluator references with JexlEvaluator.  My
assumption is this will enable the functions we discussed earlier (like
subStringAfter, etc.) for more text parsing capabilities that the CommonsEL
package?

======

Thanks,


Mike




On 6/18/06 2:34 PM, "Mike Sparr - www.goomzee.com" <mike@goomzee.com> wrote:

> Rahul,
> 
> I pulled down the latest and attempting to migrate to new scxml baseline.
> The following errors occurred with our implementation as they were based on
> earlier version.  Only 5 errors referencing deprecated classes but curious
> the best way to digest, etc. with current?  Errors are below.
> 
> Also, I used the following in console and source checked out and built just
> fine.  Check out and build latest source (from console or DOS prompt -
> assuming Subversion is installed):
> ============
> 
> cd /some/desired/directory
> svn co http://svn.apache.org/repos/asf/jakarta/commons/proper/scxml/trunk
> scxml
> cd scxml
> ant 
> 
> -------------
> 
> Errors based on deprecated class references:
> ==========
> 
> demo_jar:
>     [mkdir] Created dir:
> /Users/mike/Documents/dev/app/demoWorkspace/bin/demo
>     [javac] Compiling 21 source files to
> /Users/mike/Documents/dev/app/demoWorkspace/bin/demo
>     [javac] 
> /Users/mike/Documents/dev/app/demoWorkspace/src/com/demo/app/scxml/AppScxmlC
> ontroller.java:15: cannot find symbol
>     [javac] symbol  : class SCXMLDigester
>     [javac] location: package org.apache.commons.scxml
>     [javac] import org.apache.commons.scxml.SCXMLDigester;
>     [javac]                                 ^
>     [javac] 
> /Users/mike/Documents/dev/app/demoWorkspace/src/com/demo/app/scxml/AppScxmlC
> ontroller.java:87: cannot find symbol
>     [javac] symbol  : method getRootContext()
>     [javac] location: class org.apache.commons.scxml.model.SCXML
>     [javac]             getExec(cb.getClientIdentifier()).getStateMachine()
>     [javac]                    ^
>     [javac] 
> /Users/mike/Documents/dev/app/demoWorkspace/src/com/demo/app/scxml/AppScxmlC
> ontroller.java:170: cannot find symbol
>     [javac] symbol  : variable SCXMLDigester
>     [javac] location: class com.demo.app.scxml.AppScxmlController
>     [javac]                 scxml = SCXMLDigester.digest(scxml_url, new
> DefaultHandler(),
>     [javac]                         ^
>     [javac] 
> /Users/mike/Documents/dev/app/demoWorkspace/src/com/demo/app/scxml/AppScxmlC
> ontroller.java:181: cannot find symbol
>     [javac] symbol  : method
> addListener(com.demo.app.scxml.AppScxmlListener)
>     [javac] location: class org.apache.commons.scxml.model.SCXML
>     [javac]             scxml.addListener(new AppScxmlListener());
>     [javac]                  ^
>     [javac] 
> /Users/mike/Documents/dev/app/demoWorkspace/src/com/demo/app/scxml/AppScxmlD
> ispatcher.java:141: cannot find symbol
>     [javac] symbol  : method getRootContext()
>     [javac] location: class org.apache.commons.scxml.model.SCXML
>     [javac]      
> exec.getStateMachine().getRootContext(),
>     [javac]                                                     ^
>     [javac] Note: Some input files use unchecked or unsafe operations.
>     [javac] Note: Recompile with -Xlint:unchecked for details.
>     [javac] 5 errors
> 
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: commons-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: commons-user-help@jakarta.apache.org



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


Mime
View raw message