commons-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Alessandro Scarozza <xan.sc...@gmail.com>
Subject Re: [scxml] there is a working example?
Date Mon, 21 May 2012 17:17:55 GMT
YES i need this

to make this code working i need to integrate EL? o not? if yes, how i
can do it?
if i use that code in my java application, it doesent works!!

thzzzzzzzz


2012/5/21 Jacob Beard <jbeard4@cs.mcgill.ca>:
> 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 <xan.scale@gmail.com>
> 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 <xan.scale@gmail.com>:
>>> 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: user-unsubscribe@commons.apache.org
>> For additional commands, e-mail: user-help@commons.apache.org
>>



-- 
Alessandro Scarozza
http://www.google.com/profiles/xan.scale

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


Mime
View raw message