You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@ode.apache.org by Michele <ia...@gmail.com> on 2010/02/19 09:55:48 UTC

How compile expression in Copy

Hello, I have a problem. I'm developing a BPEL parser and I need to manage
copies inside an assign Activity.
I don't know how extract the variabibles (ex. Search) from an expression
like :

<![CDATA[concat("Stai cercando: ",$Search.SearchPart/what, "
",$Search.SearchPart/where)]]>

from the following snippet:

   <bpel:copy>
                <bpel:from>
                    <![CDATA[concat("Stai cercando:
",$Search.SearchPart/what, " ",$Search.SearchPart/where)]]>
                </bpel:from>
                <bpel:to part="UpdatePart" variable="Update">
                    <bpel:query
queryLanguage="urn:oasis:names:tc:wsbpel:2.0:sublang:xpath1.0"><![CDATA[resultXML]]></bpel:query>
                </bpel:to>
            </bpel:copy>

I know I have to compile the expression and obtain a "OProcess"., but I
don't know how to do that.
thank

Re: How compile expression in Copy

Posted by Rafal Rusin <ra...@gmail.com>.
You can check out ode-validator
http://top.touk.pl/git?p=ode/ode-validator/.git;a=summary. This plugs
into ODE compiler for extracting expressions.
Inside code, it's possible to resolve variables using ODE compiler api.

On 19 February 2010 09:55, Michele <ia...@gmail.com> wrote:
> Hello, I have a problem. I'm developing a BPEL parser and I need to manage
> copies inside an assign Activity.
> I don't know how extract the variabibles (ex. Search) from an expression
> like :
>
> <![CDATA[concat("Stai cercando: ",$Search.SearchPart/what, "
> ",$Search.SearchPart/where)]]>
>
> from the following snippet:
>
>   <bpel:copy>
>                <bpel:from>
>                    <![CDATA[concat("Stai cercando:
> ",$Search.SearchPart/what, " ",$Search.SearchPart/where)]]>
>                </bpel:from>
>                <bpel:to part="UpdatePart" variable="Update">
>                    <bpel:query
> queryLanguage="urn:oasis:names:tc:wsbpel:2.0:sublang:xpath1.0"><![CDATA[resultXML]]></bpel:query>
>                </bpel:to>
>            </bpel:copy>
>
> I know I have to compile the expression and obtain a "OProcess"., but I
> don't know how to do that.
> thank
>


Regards,
-- 
Rafał Rusin
http://rrusin.blogspot.com
http://www.touk.pl
http://top.touk.pl