commons-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Raimundo Santos Moura" <>
Subject Send an event in 10s by attribute delay
Date Wed, 13 Sep 2006 14:15:04 GMT
  I tried to run the code below, but the attribute <delay> doesn't work well

  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?

Raimundo Moura

<?xml version="1.0"?>
<scxml xmlns="" version="1.0"

       <state id="Off">
            <transition event="ev1" target="On"/>
       <state id="On">
                 <log expr="'Inside On...'"/>
                 <send event="Timer" delay="10s"/>
             <transition event="Timer" target="Off"/>
                 <log expr="'Leaving On...'"/>

  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message