:)
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.

:)

+Fasih
----- Original Message ----- From: "Nestor Urquiza" <[EMAIL PROTECTED]>
To: "Jakarta Commons Users List" <[email protected]>
Sent: Monday, May 08, 2006 4:33 PM
Subject: Re: [scxml] is there a way to allow an event in all states and just keep in the state?


In fact guys I kind of was really tired ;-)

My question was about having (using the same snip as
rahul posted with a little modification ;-):

<state id="parent">
 <state id="child1">
   <transition event="menu.main" target="child1"/>
   ...
 </state>
 <state id="child2">
   <transition event="menu.main" target="child2"/>
   ...
 </state>
</state>

Which means I wanted just to be able to trigger the
event and the result to be "stay in the state you are"
which of course is what the SCXML Engine would do in
any case if a not recognized transition comes.

Since I built System/Bridge/SCXML Engine Architecture
for this usecase the code to be executed can be
inserted in the bridge before calling the scxml engine
(thing that I do always thru an init() method). Then
the SCXML engine will not recognize the event and will
stay where it was.

Thanks a lot and I apologize for taking your time on
this,
Nestor

__________________________________________________
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around
http://mail.yahoo.com

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]





---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to