Hi,

Which version of SCXML are you using? If you used a version older than
2.0-SNAPSHOT (sorry, 2.0 is still not released yet), could you try
with 2.0-SNAPSHOT by building locally by yourself from [1]?
Also, I wonder if you had a chance to follow Rahul's advice in the old
thread? I think he already gave good pointers.

Regards,

Woonsan

[1] https://github.com/apache/commons-scxml

On Thu, Sep 3, 2015 at 7:47 PM, giangttpham <giangttp...@gmail.com> wrote:
> I know this topic has been solved a long time ago but if anyone out there is
> listening, please help me. This is the scxml I have but the Timer delay
> doesn't work. I have the same problem as the person who started this post,
> after the send, the program just stops, it never goes to the next state.
>
> <scxml xmlns="http://www.w3.org/2005/07/scxml";
>               version="1.0"
>               initial="player">
>
>         <datamodel>
>                 <data id="segment" expr="0"/>
>                 <data id="segments" expr="10"/>
>         </datamodel>
>
>      <final id="stopped">
>       <onentry>
>        <log expr="'PLAYER_STOPPED'" />
>       </onentry>
>      </final>
>
>         <state id="player" initial="closed">
>
>             <state id="closed">
>                 <transition target="opened"/>
>                         <onexit><log expr="'Opening app...'"/></onexit>
>                 </state>
>
>             <state id="opened">
>                 <onentry>
>                                 <send event="'Timer'" delay="'2s'"/>
>                         </onentry>
>                         <transition event="Timer" target="playing" />
>                         <onexit>
>                                 <log expr="'Attempting to play...'"/>
>                                 <cancel sendid="delay"/>
>                         </onexit>
>             </state>
>
>             <state id="playing">
>                     <onentry><log expr="'STATE_PLAYING: ' + 
> segment"/></onentry>
>                         <onexit>
>                                 <assign location="segment" expr="segment+1" />
>                         </onexit>
>                     <transition target="stopped" cond="segment == segments" />
>                     <transition target="playing"/>
>             </state>
>         </state>
> </scxml>
>
>
>
> --
> View this message in context: 
> http://apache-commons.680414.n4.nabble.com/SCXML-Timers-in-SCXML-tp746934p4678456.html
> Sent from the Commons - User mailing list archive at Nabble.com.
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscr...@commons.apache.org
> For additional commands, e-mail: user-h...@commons.apache.org
>

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

Reply via email to