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] State machine not making transition as expected
Date Tue, 04 Dec 2007 14:07:46 GMT
Please use [SCXML] prefix to the email subjects (I've added it here)
since this list is shared by many Commons components.

On 12/4/07, Swamy, Suraj (Suraj) <sswamy@avaya.com> wrote:
> Hi All,
>
>           I'm facing a weird error wherein my state machine does not
> seem to be transitioning as expected. Here is a snapshot of the state
> machine
>
>                     <state id="sendMessage">
>
>                   <transition event="incomingmessage"
> target="verifyMessage" />
>
>             </state>
>
>
>
>             <state id="verifyMessage">
>
>                   <transition event="valid" taget="responseComplete"/>
>
<snip/>

Typo (taget --> target). We need a validating parser, hopefully the
next draft will contain a usable schema.

-Rahul


>                   <transition event="invalid" taget="invalidResponse"/>
>
>             </state>
>
>
>
>             <state id="invalidResponse">
>
>                   <transition event="incomingmessage"
> target="verifyMessage" />
>
>             </state>
>
>
>
>
>
>             <state id="responseComplete" final="true">
>
>
>
>             </state>
>
>       The problem occurs when I'm in state verifyMessage. I fire the
> event as follows
>
> executor.triggerEvent(new
> TriggerEvent("valid",TriggerEvent.SIGNAL_EVENT));
>
> but the state machine does not move to the target which is
> responseComplete. It remains in verifyMessage. I fail to understand this
> error. I shall be really thankful if you could shed some light on this
> behavior. I'm using release 0.6.
>
> Thanks,
>
> Suraj
>
>
>
>
>
>

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


Mime
View raw message