Re: [scxml] Questions on Multiple Instances

2010-10-25 Thread Fabrizio Morbini
Hi Chris, i'm not sure if it helps, but you can avoid parsing the same file multiple times. You can parse the scxml network once and save the SCXML object. Then you can create many instances of SCXMLExecutor and set the network of each of them to be the pre-parsed SCXML object (using the setStateMa

[scxml] double evaluation of expr in assignments

2010-08-12 Thread Fabrizio Morbini
Hi, problem: i would like to assign to a variable, v1, the value of another variable, v2, but the name "v2" is the result of an expression. For example, assume you have an inspect event that should assign to a predetermined variable the value of the variable whose name is passed as payload to the

Re: [scxml] Calling methods through scxml

2010-07-30 Thread Fabrizio Morbini
other two alternatives may be: 1) use the expr attribute of the log element. 2) create a custom action, e.g. "eval" that does just what you are asking. On Fri, Jul 30, 2010 at 15:08, Christopher Dragert wrote: > Hello, > > I'm trying to find an elegant way to call a method from an object using >

[scxml] send and param children

2010-07-23 Thread Fabrizio Morbini
Hi, is the param child of the send element supported? i added the following in the onentry of a node but got no parser debug messages while loading the scxml file and the parameter doesn't seem to be added to the params argument of the dispatcher's send method (though the event is sent correctly).

[scxml] visual editor

2010-07-14 Thread Fabrizio Morbini
Hi, we got the approval the release our visual editor i mentioned a few weeks back. If you are interested in using/testing/contributing_to it, it is available at: http://code.google.com/p/scxmlgui/ thanks, fabrizio. - To unsubscr

[scxml] templates, url and parameters

2010-06-21 Thread Fabrizio Morbini
Hi, concerning the wiki page: http://wiki.apache.org/commons/SCXML/Tutorials/Templating There the src attribute is given the value: "accept-connection.scxml?call-id=incoming-line". How is the parameter call-id used/accessed? Would the same be possible also with xinclude? thanks, fabrizio. -

[scxml] templates

2010-06-21 Thread Fabrizio Morbini
Hi, i would appreciate if somebody could clarify the working of templates as exemplified here: http://wiki.apache.org/commons/SCXML/Tutorials/Templating i tried the following scenario: ===file a.scxml: http://www.w3.org/2005/07/scxml";> =

Re: [scxml] src and parser invocation

2010-06-02 Thread Fabrizio Morbini
problems caused by reusing the result of the parser. thanks, fabrizio. On Wed, Jun 2, 2010 at 17:18, Rahul Akolkar wrote: > On Wed, Jun 2, 2010 at 8:08 PM, Fabrizio Morbini wrote: >> Hi, if we have the following case: >>  2 scxml files: a.scxml and b.scxml >>  in a

[scxml] src and parser invocation

2010-06-02 Thread Fabrizio Morbini
Hi, if we have the following case: 2 scxml files: a.scxml and b.scxml in a.scxml, 2 different nodes use the src attribute to source the content from other 2 different nodes defined in b.scxml (using the syntax src="b.scxml#node_i"). is the file b.scxml completely parsed for every instance of src

[scxml] src and relative url

2010-06-01 Thread Fabrizio Morbini
Hi, i'm using the src attribute to include external content (i haven't yet spent time in figuring our how to use xinclude). I load the initial scxml file using a url like "file:C:/path/file.scxml". Inside file.scxml some node uses the src attribute set to (for example) src="include1.scxml#node34".

[scxml] call external actions

2010-05-12 Thread Fabrizio Morbini
Hi, i need to associate some executable action to each scxml state. These executable actions need to access objects available at the moment the scxml executor is started. I looked at the following options: 1) event (btw, i haven't found this in the scxml standard, why is it in Apache commons scxml?

Re: [scxml] templating/src/xinclude and returning a value(through datamodel/donedata)

2010-05-06 Thread Fabrizio Morbini
tamap = {s1.entry=null} >> DEBUG 10:14:23.135 [Thread-1       ] [SCXMLExecutor            ] >> Current States: [s5] >> >> here are the modified files: >> =file a.scxml= >> >> http://www.w3.org/2005/07/scxml"; >>               xmlns:cs="http://commons.apache.org/scxml"; >>        version="1.0" >>    

Re: [scxml] templating/src/xinclude and returning a value(through datamodel/donedata)

2010-05-06 Thread Fabrizio Morbini
On Thu, May 6, 2010 at 10:37, Rahul Akolkar wrote: > Ah, too much cut and paste. Since this assignment isn't necessarily > using a location expression, use: > >   > > For details, see: > >  http://commons.apache.org/scxml/guide/datamodel.html#assign > > Alternatively, the could be made to store X

Re: [scxml] templating/src/xinclude and returning a value(through datamodel/donedata)

2010-05-06 Thread Fabrizio Morbini
=end of file b.scxml========== thanks, fabrizio. On Thu, May 6, 2010 at 09:52, Rahul Akolkar wrote: > On Thu, May 6, 2010 at 11:34 AM, Fabrizio Morbini wrote: >> Hi, i'm experimenting with the src attribu

[scxml] templating/src/xinclude and returning a value(through datamodel/donedata)

2010-05-06 Thread Fabrizio Morbini
Hi, i'm experimenting with the src attribute to reuse fsm. I'm having some trouble with returning a value from an included fsm to the calling state. I'm using this description at http://shale.apache.org/shale-dialog-scxml/index.html, in particular the section about subdialogs from which it seems p