On Wed, Aug 5, 2009 at 8:37 AM, Renaud, Martin<[email protected]> wrote:
> Hi,
>
> I would like to know if it's possible, using a built-in feature of
> apache commons scxml, to use property place holder in the xml file that
> defines the state machine ? The reason is to avoid duplication of event
> names in the sm definition and in the java code ?
>
<snip/>

Not sure which duplication is being refered to, please elaborate.


>
>
> Basically, I would like to do something like this and have a property
> file defining eventA and eventB.
>
<snap/>

Pre-processing of any sort can be done to the SCXML document before
being handed to the library ofcourse. It seems something like XML
entities may help you here (but I'll need help understanding the
question first).

-Rahul


>
>
> <scxml xmlns="http://www.w3.org/2005/07/scxml";
>       version="1.0"
>       initialstate="reset">
>
>    <state id="MyState">
>        <transition event="${eventA}"   target="MySecondState"/>
>    </state>
>
>    <state id="MySecondState">
>        <transition event="${eventB}"    target="MyState"/>
>    </state>
> </scxml>
>
>
> Thanks,
>
> Martin
>
>

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to