Lets continue on the user list if needed. Response inline below.

On Wed, Sep 29, 2010 at 3:54 PM, Michael musset <mickamus...@gmail.com> wrote:
> Hi,
>
> i would like to do that :
>
>      <invoke targettype="x-protocol" srcexpr ="test">
>            <![CDATA[
>                   complicate data that it need to be parsed
>             ]]>
>        </invoke>
>
>
> and be able to get what's is inside the CDATA balise from this :
>
> public class protocol implements Invoker {
>
>    public void invoke(String source, Map params) throws InvokerException {
>
>    }
>
>
> it seems that params only works with that :
>
>        <invoke targettype="x-protocol" srcexpr ="test">
>            <param name="line1" expr="'test'" />
>            <param name="line2" expr="'foo'" />
>        </invoke>
>
> i have already try to add content balise, but i got that :
> ATTENTION: Ignoring element <content> in namespace
>
>
<snip/>

Yes, as the message indicates, <content> is not yet implemented. If
you want, you can open a JIRA [1] enhancement to track this.

You should be able to use <param> to similar effect as content by
defining the content in the invoke's parent state's datamodel. Along
these lines:

 <state ...>

  <datamodel>
   <data id="foo"><root xmlns="">
    <![CDATA[
        content as above
    ]]>
   </root></data>
  </datamodel>

  <invoke targettype="x-protocol" src="test">
    <param name="content" expr="foo" />
  </invoke>

 </state>

The value for the "content" key in the params map then will contain
the Node from which the CDATA content can be obtained.

Alternatively, you may also set datamodel variables programmatically
if that suits the application better.

-Rahul

[1] http://commons.apache.org/scxml/issue-tracking.html


>
>
> do you have an idea to get data from CDATA balise
>

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscr...@commons.apache.org
For additional commands, e-mail: dev-h...@commons.apache.org

Reply via email to