Hi Rahul, I found it difficult to implement your suggestion. Events are asynchronous in my system, and having this approach of first triggering an event, and verifying that it resulted in a state transition (in an EntryListener.onTransition()) is error prone. What if an event didn't result in a state transition?
Can you please sned me a code snippet with your approach so I can really verify that it could be applicable for me? Ideally, I would have liked a onEvent() callback in the EntryListener. My other requirement is to prevent some events to effect a state transition if the user role doesn't have the right privileges. Thanks -- Raj --- Rahul Akolkar <[EMAIL PROTECTED]> wrote: > On 9/27/06, Madhwaraj Rao <[EMAIL PROTECTED]> > wrote: > > Hello, > > > > I tried sending an invalid event to the state > machine > > and didn't see any error being reported. By > invalid I > > mean this event was not expected in the current > state. > > > > Does the SCXMLSemanticsImpl report an error (via > the > > the ErrorReporter) when such an event is silently > > discarded? > > > <snip/> > > No, because the semantics treat it as simply an > inconsequential > trigger (causing no change to the state machine), > rather than an > error. > > One of the ways you could track this is to register > a SCXMLListener on > the executor and track onTransition() callbacks (if > you get none, the > trigger is "invalid" -- per your definition above). > > -Rahul > > > > Thanks > > -- > > Raj > > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: > [EMAIL PROTECTED] > For additional commands, e-mail: > [EMAIL PROTECTED] > > __________________________________________________ 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]