You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@commons.apache.org by "Rahul Akolkar (JIRA)" <ji...@apache.org> on 2006/10/17 19:10:37 UTC

[jira] Resolved: (SCXML-21) Send an event by delay attribute, with the targettype attribute is absent

     [ http://issues.apache.org/jira/browse/SCXML-21?page=all ]

Rahul Akolkar resolved SCXML-21.
--------------------------------

    Resolution: Fixed
      Assignee: Rahul Akolkar

A new EventDispatcher implementation (SimpleScheduler) that provides the ability to deal with delayed events of the "scxml" <send> targettype has been added. Delay will be processed as expected in the comment above if this (extensible) EventDispatcher implementation is used.

The delay attribute now supports the following suffixes (ms-milliseconds, s-seconds, m-minutes; the default being milliseconds).


> Send an event by delay attribute, with the targettype attribute is absent
> -------------------------------------------------------------------------
>
>                 Key: SCXML-21
>                 URL: http://issues.apache.org/jira/browse/SCXML-21
>             Project: Commons SCXML
>          Issue Type: Bug
>    Affects Versions: 0.5
>         Environment: Windows XP Professional (Service Pack 2) - Version: Portuguese
> CPU: Pentium 4; 2,80 GHz; 512 MB
>            Reporter: Raimundo Santos Moura
>         Assigned To: Rahul Akolkar
>             Fix For: 0.6
>
>
> There is a bug, when one try to run the code below:
> Scenario: 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". The attribute <delay> doesn't work well (seemingly).
>  <?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>

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

---------------------------------------------------------------------
To unsubscribe, e-mail: commons-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: commons-dev-help@jakarta.apache.org