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 <[EMAIL PROTECTED]>: > 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 - [EMAIL PROTECTED] > System and Technology Department > CINECA - http://www.cineca.it > >
