I haven't used SCXML Commons for this, but it seems like the SCXML specification would lead you to something like the following (untested) code:
<?xml version="1.0" encoding="UTF-8"?> <scxml xmlns="http://www.w3.org/2005/07/scxml" version="1.0" exmode="lax"> <datamodel> <data id="oneValue" expr="0"></data> </datamodel> <state id="one"> <transition event="alfa" cond= "oneValue === 0" target="two"> <assign location="oneValue" expr="_event.data.oneValue" /> </transition> </state> <state id="two"/> </scxml> Jake On Mon, May 21, 2012 at 12:25 PM, Alessandro Scarozza <[email protected]> wrote: > I explain better my problem, actually we use scxml like this: > > <?xml version="1.0" encoding="UTF-8"?> > <scxml xmlns="http://www.w3.org/2005/07/scxml" version="1.0" > exmode="lax" initialstate="initialstate"> > <datamodel> > <data id="one$value">0</data> > </datamodel> > <state id="one"> > <transition event="alfa" cond= "_eventdata.getone$value() == 0" target="two"> > <assign location="one$value" expr="_eventdata.setone$value(1)" /> > </transition> > </state> > </scxml> > > there is a way to access to "one$value" directly? without call java > method?? EL?? if yes, anyone can give me help?? > > thz > > 2012/5/20 Alessandro Scarozza <[email protected]>: >> hi to all, >> >> i need a full working example for SCXML, in particular with evalutator >> online i just find stopwatch, but i need a more complex example (xml and java) >> >> anyone can help me? >> >> >> thz >> >> >> >> -- >> Alessandro Scarozza >> http://www.google.com/profiles/xan.scale > > > > -- > Alessandro Scarozza > http://www.google.com/profiles/xan.scale > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [email protected] > For additional commands, e-mail: [email protected] >
