commons-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From giangttpham <>
Subject Re: [SCXML] Timers in SCXML
Date Thu, 03 Sep 2015 23:47:38 GMT
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=""

		<data id="segment" expr="0"/>
		<data id="segments" expr="10"/>
     <final id="stopped">
       <log expr="'PLAYER_STOPPED'" />

	<state id="player" initial="closed">
	    <state id="closed">
	    	<transition target="opened"/>
			<onexit><log expr="'Opening app...'"/></onexit>
	    <state id="opened">
				<send event="'Timer'" delay="'2s'"/>				
			<transition event="Timer" target="playing" />
				<log expr="'Attempting to play...'"/>
				<cancel sendid="delay"/>
	    <state id="playing">
		    <onentry><log expr="'STATE_PLAYING: ' + segment"/></onentry>
				<assign location="segment" expr="segment+1" />
		    <transition target="stopped" cond="segment == segments" />
		    <transition target="playing"/>

View this message in context:
Sent from the Commons - User mailing list archive at

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message