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