commons-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Rahul Akolkar" <rahul.akol...@gmail.com>
Subject Re: [scxml] is there a way to allow an event in all states and just keep in the state?
Date Mon, 08 May 2006 22:13:07 GMT
On 5/8/06, Fasih <fasihullah.askiri@baypackets.com> wrote:
> :)
> By the way, there is a difference between ignoring the event and
>
> >  <state id="child1">
> >    <transition event="menu.main" target="child1"/>
> >    ...
> >  </state>
>
> This will cause the execution of onentry of the state, and ignoring will
> not.
>
> :)
>
<snip/>

There is one intermediate step between ignoring and a "self
transition", its called a "stay transition".

 * Self transition: Execute onexit actions, then ontransition, finally
followed by onentry (example above).

 * Stay transition: Simply execute ontransition actions. This is done
by not specifying a target attribute on the transition element.

 * Ignore (not specified) event: Nothing happens, trigger/event is
said to be "inconsequential".

-Rahul


> +Fasih
>

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


Mime
View raw message