i found, but is too strong to set up all the variables in this way:

     <copy>
                <from>
                    <literal>
                        <HelloOut>
                            <ns0:Name/>
                            <ns0:Id/>
                        </HelloOut>
                    </literal>
                </from>
                <to part="part1" variable="HelloOut"/>
            </copy>

there's a simple way to initialize it?

another thing, i have an array, how can initialize it?

this is the new bpel with the array: http://bako.interfree.it/src.zip

this is the new fault:
<ns:name xmlns:exec="
http://docs.oasis-open.org/wsbpel/2.0/process/executable
">exec:selectionFailure</ns:name>
<ns:explanation>R-Value expression "{OXPath10Expression
$GetLocationOut.parameters/yahooloc:return}" returned multiple
nodes.</ns:explanation>
<ns:line-number>115</ns:line-number>
<ns:aiid>108</ns:aiid>

On Mon, Oct 26, 2009 at 09:30, Stefano Tranquillini <
[email protected]> wrote:

> hi
> i think the initialization is not the solution, i fix the bpel in this way:
>
>
> <?xml version="1.0" encoding="UTF-8"?>
> <process
>     name="Prova"
>     targetNamespace="
> http://enterprise.netbeans.org/bpel/TestBPELSemplice/Prova";
>     xmlns="http://docs.oasis-open.org/wsbpel/2.0/process/executable";
>     xmlns:xsd="http://www.w3.org/2001/XMLSchema";
>     xmlns:sxt="
> http://www.sun.com/wsbpel/2.0/process/executable/SUNExtension/Trace";
>     xmlns:sxed="
> http://www.sun.com/wsbpel/2.0/process/executable/SUNExtension/Editor";
>     xmlns:tns="http://enterprise.netbeans.org/bpel/TestBPELSemplice/Prova";
> xmlns:ns0="http://xml.netbeans.org/schema/Data";>
>     <import namespace="http://j2ee.netbeans.org/wsdl/BPELWsdl";
> location="BPELWsdl.wsdl" importType="http://schemas.xmlsoap.org/wsdl/"/>
>     <partnerLinks>
>         <partnerLink name="PartnerLink1" xmlns:tns="
> http://j2ee.netbeans.org/wsdl/BPELWsdl";
> partnerLinkType="tns:partnerlinktype1" myRole="role1"/>
>     </partnerLinks>
>     <variables>
>         <variable name="HelloIn" xmlns:tns="
> http://j2ee.netbeans.org/wsdl/BPELWsdl"; messageType="tns:HelloIn"/>
>         <variable name="HelloOut" xmlns:tns="
> http://j2ee.netbeans.org/wsdl/BPELWsdl"; messageType="tns:HelloOut"/>
>     </variables>
>     <sequence>
>         <receive name="Receive1" createInstance="yes"
> partnerLink="PartnerLink1" operation="Hello" xmlns:tns="
> http://j2ee.netbeans.org/wsdl/BPELWsdl"; portType="tns:portType1"
> variable="HelloIn"/>
>          <assign name="Init">
>             <copy>
>                 <from>''</from>
>                 <to>$HelloOut.part1/ns0:Id</to>
>             </copy>
>             <copy>
>                 <from>''</from>
>
>                 <to>$HelloOut.part1/ns0:Name</to>
>             </copy>
>         </assign>
>         <assign name="Assign1">
>             <copy>
>                 <from>concat('Hello ', $HelloIn.part1/ns0:Name)</from>
>                 <to>$HelloOut.part1/ns0:Name</to>
>             </copy>
>         </assign>
>         <reply name="Reply1" partnerLink="PartnerLink1" operation="Hello"
> xmlns:tns="http://j2ee.netbeans.org/wsdl/BPELWsdl";
> portType="tns:portType1" variable="HelloOut"/>
>     </sequence>
> </process>
>
> this is the fault in ode:
>
> <ns:name xmlns:exec="
> http://docs.oasis-open.org/wsbpel/2.0/process/executable
> ">exec:selectionFailure</ns:name>
> <ns:explanation>No results for expression: {OXPath10Expression
> $HelloOut.part1/ns0:Id}</ns:explanation>
> <ns:line-number>21</ns:line-number>
> <ns:aiid>18</ns:aiid>
>
> the problem is on this line:
> <from>''</from>
> <to>$HelloOut.part1/ns0:Id</to>
>
> what i've to do?
>
>
> On Sun, Oct 25, 2009 at 02:23, Milinda Pathirage <
> [email protected]> wrote:
>
>> You have to initialize HelloOut variable first. Netbeans BPEL editor is
>> not
>> generating this automatically because OpenESB somehow initialize variable
>> for us. But ODE doesn't support automatically initializing empty
>> variables.
>> There are some questions regarding variable initialization on this list.
>> Please search in the archives if you need more information.
>>
>> Thanks
>> Milinda
>>
>> On Sat, Oct 24, 2009 at 9:10 PM, Stefano Tranquillini <
>> [email protected]> wrote:
>>
>> > Hi all.
>> > how u developed the BPEL? i'm using NETBEANS but the syntax of netebans
>> > seems diffrent that the syntaxs that ode wants.
>> >
>> > someone of u has experience?
>> >
>> > string like this:
>> > <copy>
>> >  <from>concat('Hello ', $HelloIn.part1/ns0:Name)</from>
>> >  <to>$HelloOut.part1/ns0:Name</to>
>> > </copy>
>> > are not undestanded in ode:
>> >
>> > No results for expression: {OXPath10Expression $HelloOut.part1/ns0:Name}
>> >
>> >
>> > i put all the code here.
>> >
>> > this is the data.xsd
>> > <?xml version="1.0" encoding="UTF-8"?>
>> >
>> > <xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema";
>> >    targetNamespace="http://xml.netbeans.org/schema/Data";
>> >    xmlns:tns="http://xml.netbeans.org/schema/Data";
>> >    elementFormDefault="qualified">
>> >    <xsd:element name="MessageIn">
>> >        <xsd:complexType>
>> >            <xsd:sequence>
>> >                <xsd:element name="Name" type="xsd:string"></xsd:element>
>> >                <xsd:element name="Id" type="xsd:string"></xsd:element>
>> >            </xsd:sequence>
>> >        </xsd:complexType>
>> >    </xsd:element>
>> >    <xsd:element name="MessageOut">
>> >        <xsd:complexType>
>> >            <xsd:sequence>
>> >                <xsd:element name="Name" type="xsd:string"></xsd:element>
>> >                <xsd:element name="Id" type="xsd:string"></xsd:element>
>> >            </xsd:sequence>
>> >        </xsd:complexType>
>> >    </xsd:element>
>> > </xsd:schema>
>> >
>> > this is the wsdl of the bpel
>> >
>> > <?xml version="1.0" encoding="UTF-8"?>
>> > <definitions name="BPELWsdl" targetNamespace="
>> > http://j2ee.netbeans.org/wsdl/BPELWsdl";
>> >    xmlns="http://schemas.xmlsoap.org/wsdl/";
>> >    xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/";
>> >    xmlns:xsd="http://www.w3.org/2001/XMLSchema"; xmlns:tns="
>> > http://j2ee.netbeans.org/wsdl/BPELWsdl"; xmlns:plnk="
>> > http://docs.oasis-open.org/wsbpel/2.0/plnktype"; xmlns:ns="
>> > http://xml.netbeans.org/schema/Data"; xmlns:soap="
>> > http://schemas.xmlsoap.org/wsdl/soap/";>
>> >    <types>
>> >        <xsd:schema targetNamespace="
>> http://j2ee.netbeans.org/wsdl/BPELWsdl
>> > ">
>> >            <xsd:import namespace="http://xml.netbeans.org/schema/Data";
>> > schemaLocation="Data.xsd"/>
>> >        </xsd:schema>
>> >    </types>
>> >    <message name="HelloIn">
>> >        <part name="part1" element="ns:MessageIn"/>
>> >    </message>
>> >    <message name="HelloOut">
>> >        <part name="part1" element="ns:MessageOut"/>
>> >    </message>
>> >    <portType name="portType1">
>> >        <operation name="Hello">
>> >            <input name="input1" message="tns:HelloIn"/>
>> >            <output name="output1" message="tns:HelloOut"/>
>> >        </operation>
>> >    </portType>
>> >    <binding name="portType1Binding" type="tns:portType1">
>> >        <soap:binding style="document" transport="
>> > http://schemas.xmlsoap.org/soap/http"/>
>> >        <operation name="Hello">
>> >            <soap:operation/>
>> >            <input name="input1">
>> >                <soap:body use="literal"/>
>> >            </input>
>> >            <output name="output1">
>> >                <soap:body use="literal"/>
>> >            </output>
>> >        </operation>
>> >    </binding>
>> >    <service name="BPELTestSimpleService">
>> >        <port name="BPELTestSimplePort" binding="tns:portType1Binding">
>> >            <soap:address location="
>> > http://localhost:8080/ode/processes/BPELWsdl"/>
>> >        </port>
>> >    </service>
>> >    <plnk:partnerLinkType name="partnerlinktype1">
>> >        <plnk:role name="role1" portType="tns:portType1"/>
>> >    </plnk:partnerLinkType>
>> > </definitions>
>> >
>> >
>> > this is the bpel
>> > <?xml version="1.0" encoding="UTF-8"?>
>> > <process
>> >    name="Prova"
>> >    targetNamespace="
>> > http://enterprise.netbeans.org/bpel/TestBPELSemplice/Prova";
>> >    xmlns="http://docs.oasis-open.org/wsbpel/2.0/process/executable";
>> >    xmlns:xsd="http://www.w3.org/2001/XMLSchema";
>> >    xmlns:sxt="
>> > http://www.sun.com/wsbpel/2.0/process/executable/SUNExtension/Trace";
>> >    xmlns:sxed="
>> > http://www.sun.com/wsbpel/2.0/process/executable/SUNExtension/Editor";
>> >    xmlns:tns="
>> http://enterprise.netbeans.org/bpel/TestBPELSemplice/Prova";
>> > xmlns:ns0="http://xml.netbeans.org/schema/Data";>
>> >    <import namespace="http://j2ee.netbeans.org/wsdl/BPELWsdl";
>> > location="BPELWsdl.wsdl" importType="http://schemas.xmlsoap.org/wsdl/
>> "/>
>> >    <partnerLinks>
>> >        <partnerLink name="PartnerLink1" xmlns:tns="
>> > http://j2ee.netbeans.org/wsdl/BPELWsdl";
>> > partnerLinkType="tns:partnerlinktype1" myRole="role1"/>
>> >    </partnerLinks>
>> >    <variables>
>> >        <variable name="HelloIn" xmlns:tns="
>> > http://j2ee.netbeans.org/wsdl/BPELWsdl"; messageType="tns:HelloIn"/>
>> >        <variable name="HelloOut" xmlns:tns="
>> > http://j2ee.netbeans.org/wsdl/BPELWsdl"; messageType="tns:HelloOut"/>
>> >    </variables>
>> >    <sequence>
>> >        <receive name="Receive1" createInstance="yes"
>> > partnerLink="PartnerLink1" operation="Hello" xmlns:tns="
>> > http://j2ee.netbeans.org/wsdl/BPELWsdl"; portType="tns:portType1"
>> > variable="HelloIn"/>
>> >        <assign name="Assign1">
>> >            <copy>
>> >                <from>concat('Hello ', $HelloIn.part1/ns0:Name)</from>
>> >                <to>$HelloOut.part1/ns0:Name</to>
>> >            </copy>
>> >        </assign>
>> >        <reply name="Reply1" partnerLink="PartnerLink1" operation="Hello"
>> > xmlns:tns="http://j2ee.netbeans.org/wsdl/BPELWsdl";
>> > portType="tns:portType1"
>> > variable="HelloOut"/>
>> >    </sequence>
>> > </process>
>> >
>> >
>> > this is the deploy.xml
>> >
>> > <deploy xmlns="http://www.apache.org/ode/schemas/dd/2007/03";
>> >    xmlns:pns="
>> http://enterprise.netbeans.org/bpel/TestBPELSemplice/Prova";
>> >        xmlns:wns="http://j2ee.netbeans.org/wsdl/BPELWsdl";>
>> >    <process name="pns:Prova">
>> >        <active>true</active>
>> >        <provide partnerLink="PartnerLink1">
>> >            <service name="wns:BPELTestSimpleService"
>> > port="BPELTestSimplePort"/>
>> >        </provide>
>> >    </process>
>> > </deploy>
>> >
>> >
>> > --
>> > Stefano
>> >
>>
>>
>>
>> --
>> Milinda Pathirage
>> Senior Software Engineer & Product Manager WSO2 BPS; http://wso2.org/bps
>> WSO2 <http://wso2.org/bps%0AWSO2> Inc.; http://wso2.com
>> E-mail: [email protected], [email protected]
>> Web: http://mpathirage.com
>> Blog: http://blog.mpathirage.com
>>
>
>
>
> --
> Stefano
>



-- 
Stefano

Reply via email to