Alternative: refer - http://ode.apache.org/flexible-assigns.html

Thanks,
Waruna



-- 
-----------------------------------------------------
Regards,
Waruna Ranasinghe
BLOG: http://warunapw.blogspot.com

2009/10/24 Stefano Tranquillini <[email protected]>

> 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
>

Reply via email to