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] patterns for bridging
Date Thu, 20 Apr 2006 21:28:03 GMT
On 4/20/06, Nestor Urquiza <nestoru@yahoo.com> wrote:
> About the _eventdata the question is if given for
> example:
> <transition event="v3:HelloWorld2.done"
> condition="printed eq yes and disconnected eq true">
>      <!--
>          we use _eventdata to access data in the
> event we're processing
>          -->
>        <ccxml:disconnect
> connectionid="_eventdata.getConnectionId"/>
>      </transition>
>
> _eventdata.getConnectionId (getConnectionId is an
> event supported by the object represented by
> _eventdata variable) would be executed before the
> condition is tested.
>
> In the example I am assuming an internal communication
> to happen when _eventdata.getConnectionId set the
> variable disconnected = true.
>
> In any case I think I am answering my question and the
> answer is nope you cannot expect
> _eventdata.getConnectionId to set a variable that will
> in turn be checked in the condition just because the
> _eventdata assignment is a child of the transition
> node and so that particular transition node must be
> selected in order the method
> _eventdata.getConnectionId to be called.
<snip/>

This is correct, the executable content children of a <transition>
will only execute if the guard condition is satisfied.


> Am I missing
> something or seems like at the end the appropiate
> solution for me is to create Action States?
>
<snap/>

Yup, action states it is.

-Rahul


> Thanks,
> Nestor
>
>
<snip/>

---------------------------------------------------------------------
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