commons-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Christopher Giblin <>
Subject Re: [SCXML] <send> _eventdata?
Date Thu, 27 Sep 2007 07:49:39 GMT

Hi Rahul,

> This could be related to SCXML-54 [1], though its hard to say without
> further details.

As far as I see, SCXML-54 is not related.

Your suggestion below however indeed solves my problem. I had actually
tried that once and it failed, hence the post. Obviously I had made a
mistake, perhaps omitting it from the namelist.

Thanks very much for setting me straight!


> Note that depending on how long you want the _eventdata to persist
> (beyond the processing cycle for the current event) you may need to
> persist it via the <datamodel>. However, it is not necessary to do a
> "field-by-field" copy since a <data> is not enforced to be an XML
> tree. Ofcourse, if it isn't, its no longer possible to use XPath to
> identify pieces of the <data>.

> The following snippet illustrates how the entire payload of the event
> "foo.done" is used in a subsequent <send>'s namelist.

>     <!-- Root or composite state datamodel -->
>     <datamodel>
>         <data name="payload"/>
>     </datamodel>
>    <state id="foo">
>         <transition event="foo.done" target="bar">
>             <assign name="payload" expr="_eventdata" />
>         </transition>
>     </state>
>     <state id="bar">
>         <transition event="bar.done" target="baz">
>             <send ... namelist="payload etc"/>
>         </transition>
>     </state>
>     ...
> -Rahul

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message