Hi,
I tried to run the code below, but the attribute <delay> doesn't work well
(seemingly).
What do i want to do?
In state "Off", by trigger of the event <ev1>, i need to wait 10s in
state "On"; after this time, i should return to state "Off".
Is there any error?
Thanks,
Raimundo Moura
<?xml version="1.0"?>
<scxml xmlns="http://www.w3.org/2005/07/SCXML" version="1.0"
initialstate="Off">
<state id="Off">
<transition event="ev1" target="On"/>
</state>
<state id="On">
<onentry>
<log expr="'Inside On...'"/>
<send event="Timer" delay="10s"/>
</onentry>
<transition event="Timer" target="Off"/>
<onexit>
<log expr="'Leaving On...'"/>
</onexit>
</state>
</scxml>