You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@ode.apache.org by claudio cacciari <c....@cineca.it> on 2008/04/25 18:06:43 UTC

assign with one copy and multiple to

Hi All,

I have executed the bpel in attachment with ODE 1.1.1 deployed inside 
ServiceMix 3.1.
It works but, the assigns with multiple to:

                    <assign name="d3_template_filename">
                        <copy>
                            <from 
variable="ProcessInstantiation_data_out" part="body" 
xmlns:paam="http://www.a-ware.org/xsd/grid/applications/PAAM/2.0">
                                <query>paam:template[$counter0 + 1]</query>
                            </from>
                            <to 
xmlns:paam="http://www.a-ware.org/xsd/grid/applications/PAAM/2.0">$n0_PAAM_data_in.body/paam:template</to>
                            <to 
xmlns:icem="http://www.a-ware.org/xsd/grid/applications/ICEMCFD/2.0">$n1_IcemCFD_data_in.body/icem:template</to>
                            <to 
xmlns:mail="http://www.a-ware.org/xsd/grid/applications/MAILLATOOLS/2.0">$n4_maillatools_data_in.body/mail:template</to>
                            <to 
xmlns:anad="http://www.a-ware.org/xsd/grid/applications/ANADEL/2.0">$n2_ANADEL_data_in.body/anad:template</to>
                            <to 
xmlns:mov="http://www.a-ware.org/xsd/grid/applications/MOVE_D01/2.0">$n3_MOVE_D01_data_in.body/mov:template</to>
                        </copy>

In this case ODE performs a copy only to the first "to" 
($n0_PAAM_data_in) and ignores the others without any message or exception.
Is it correct ?
Did I write something wrong in the bpel code ?
I have tried also to modify it in that way:

<assign name="d3_template_filename">
                        <copy>
                            <from 
variable="ProcessInstantiation_data_out" part="body" 
xmlns:paam="http://www.a-ware.org/grid/applications/paam-2_0/xsd">
                                <query>paam:template[$counter0 + 1]</query>
                            </from>
                            <to 
xmlns:paam="http://www.a-ware.org/grid/applications/paam-2_0/xsd">$n0_PAAM_data_in.body/paam:template</to>
                        </copy>
                        <copy>
                            <from 
variable="ProcessInstantiation_data_out" part="body" 
xmlns:paam="http://www.a-ware.org/grid/applications/paam-2_0/xsd">
                                <query>paam:template[$counter0 + 1]</query>
                            </from>
                            <to 
xmlns:icem="http://www.a-ware.org/grid/applications/icemcfd-2_0/xsd">$n1_IcemCFD_data_in.body/icem:template</to>
                        </copy>
                        <copy>
                            <from 
variable="ProcessInstantiation_data_out" part="body" 
xmlns:paam="http://www.a-ware.org/grid/applications/paam-2_0/xsd">
                                <query>paam:template[$counter0 + 1]</query>
                            </from>
                            <to 
xmlns:mail="http://www.a-ware.org/grid/applications/maillatools-2_0/xsd">$n4_maillatools_data_in.body/mail:template</to>
                        </copy>
                        <copy>
                            <from 
variable="ProcessInstantiation_data_out" part="body" 
xmlns:paam="http://www.a-ware.org/grid/applications/paam-2_0/xsd">
                                <query>paam:template[$counter0 + 1]</query>
                            </from>
                            <to 
xmlns:anad="http://www.a-ware.org/grid/applications/anadel-2_0/xsd">$n2_ANADEL_data_in.body/anad:template</to>
                        </copy>
                        <copy>
                            <from 
variable="ProcessInstantiation_data_out" part="body" 
xmlns:paam="http://www.a-ware.org/grid/applications/paam-2_0/xsd">
                                <query>paam:template[$counter0 + 1]</query>
                            </from>
                            <to 
xmlns:mov="http://www.a-ware.org/grid/applications/move_d01-2_0/xsd">$n3_MOVE_D01_data_in.body/mov:template</to>
                        </copy>
                    </assign>

but with the same result.

Best Regards,
Claudio

-- 
----------------------------------------
Claudio Cacciari - c.cacciari@cineca.it
System and Technology Department
CINECA - http://www.cineca.it


Re: assign with one copy and multiple to

Posted by Alex Boisvert <bo...@intalio.com>.
Hi Claudio,

A <copy> can only have one <from> and one <to> element.   The Ode
parser/compiler should give out an error for this kind of input, but doesn't
at the moment.  (Validation is generally not very strong in the compiler).

An alternative is to validate your process with the BPEL 2.0 schema, using a
validating parser.  We've talked about adding this to the compiler before,
it just hasn't been done yet.

Feel free to file a bug, we can add specific validation for this case for
future generations :)

alex



2008/4/25 claudio cacciari <c....@cineca.it>:

> Hi All,
>
> I have executed the bpel in attachment with ODE 1.1.1 deployed inside
> ServiceMix 3.1.
> It works but, the assigns with multiple to:
>
>                   <assign name="d3_template_filename">
>                       <copy>
>                           <from variable="ProcessInstantiation_data_out"
> part="body" xmlns:paam="
> http://www.a-ware.org/xsd/grid/applications/PAAM/2.0">
>                               <query>paam:template[$counter0 + 1]</query>
>                           </from>
>                           <to xmlns:paam="
> http://www.a-ware.org/xsd/grid/applications/PAAM/2.0
> ">$n0_PAAM_data_in.body/paam:template</to>
>                           <to xmlns:icem="
> http://www.a-ware.org/xsd/grid/applications/ICEMCFD/2.0
> ">$n1_IcemCFD_data_in.body/icem:template</to>
>                           <to xmlns:mail="
> http://www.a-ware.org/xsd/grid/applications/MAILLATOOLS/2.0
> ">$n4_maillatools_data_in.body/mail:template</to>
>                           <to xmlns:anad="
> http://www.a-ware.org/xsd/grid/applications/ANADEL/2.0
> ">$n2_ANADEL_data_in.body/anad:template</to>
>                           <to xmlns:mov="
> http://www.a-ware.org/xsd/grid/applications/MOVE_D01/2.0
> ">$n3_MOVE_D01_data_in.body/mov:template</to>
>                       </copy>
>
> In this case ODE performs a copy only to the first "to" ($n0_PAAM_data_in)
> and ignores the others without any message or exception.
> Is it correct ?
> Did I write something wrong in the bpel code ?
> I have tried also to modify it in that way:
>
> <assign name="d3_template_filename">
>                       <copy>
>                           <from variable="ProcessInstantiation_data_out"
> part="body" xmlns:paam="
> http://www.a-ware.org/grid/applications/paam-2_0/xsd">
>                               <query>paam:template[$counter0 + 1]</query>
>                           </from>
>                           <to xmlns:paam="
> http://www.a-ware.org/grid/applications/paam-2_0/xsd
> ">$n0_PAAM_data_in.body/paam:template</to>
>                       </copy>
>                       <copy>
>                           <from variable="ProcessInstantiation_data_out"
> part="body" xmlns:paam="
> http://www.a-ware.org/grid/applications/paam-2_0/xsd">
>                               <query>paam:template[$counter0 + 1]</query>
>                           </from>
>                           <to xmlns:icem="
> http://www.a-ware.org/grid/applications/icemcfd-2_0/xsd
> ">$n1_IcemCFD_data_in.body/icem:template</to>
>                       </copy>
>                       <copy>
>                           <from variable="ProcessInstantiation_data_out"
> part="body" xmlns:paam="
> http://www.a-ware.org/grid/applications/paam-2_0/xsd">
>                               <query>paam:template[$counter0 + 1]</query>
>                           </from>
>                           <to xmlns:mail="
> http://www.a-ware.org/grid/applications/maillatools-2_0/xsd
> ">$n4_maillatools_data_in.body/mail:template</to>
>                       </copy>
>                       <copy>
>                           <from variable="ProcessInstantiation_data_out"
> part="body" xmlns:paam="
> http://www.a-ware.org/grid/applications/paam-2_0/xsd">
>                               <query>paam:template[$counter0 + 1]</query>
>                           </from>
>                           <to xmlns:anad="
> http://www.a-ware.org/grid/applications/anadel-2_0/xsd
> ">$n2_ANADEL_data_in.body/anad:template</to>
>                       </copy>
>                       <copy>
>                           <from variable="ProcessInstantiation_data_out"
> part="body" xmlns:paam="
> http://www.a-ware.org/grid/applications/paam-2_0/xsd">
>                               <query>paam:template[$counter0 + 1]</query>
>                           </from>
>                           <to xmlns:mov="
> http://www.a-ware.org/grid/applications/move_d01-2_0/xsd
> ">$n3_MOVE_D01_data_in.body/mov:template</to>
>                       </copy>
>                   </assign>
>
> but with the same result.
>
> Best Regards,
> Claudio
>
> --
> ----------------------------------------
> Claudio Cacciari - c.cacciari@cineca.it
> System and Technology Department
> CINECA - http://www.cineca.it
>
>