Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <!-- CompraOnline-restfull BPEL Process [Generated by the Eclipse BPEL Designer] -->
- <!-- Date: Thu Oct 18 09:36:13 CLST 2012 -->
- <bpel:process name="CompraOnline-restfull"
- targetNamespace="bpel.rest.compraonline"
- suppressJoinFailure="yes"
- xmlns:tns="bpel.rest.compraonline"
- xmlns:bpel="http://docs.oasis-open.org/wsbpel/2.0/process/executable"
- xmlns:ns="http://cliente.tiendaonline.restws">
- <!-- Import the client WSDL -->
- <bpel:import location="CompraOnline-restfullArtifacts.wsdl" namespace="bpel.rest.compraonline"
- importType="http://schemas.xmlsoap.org/wsdl/" />
- <!-- ================================================================= -->
- <!-- PARTNERLINKS -->
- <!-- List of services participating in this BPEL process -->
- <!-- ================================================================= -->
- <bpel:partnerLinks>
- <!-- The 'client' role represents the requester of this service. -->
- <bpel:partnerLink name="client"
- partnerLinkType="tns:CompraOnline-restfull"
- myRole="CompraOnline-restfullProvider"
- />
- <bpel:partnerLink name="RWS_ClientePL" partnerLinkType="tns:RWS_ClientePLT" partnerRole="RWS_ClientePLRole"></bpel:partnerLink>
- </bpel:partnerLinks>
- <!-- ================================================================= -->
- <!-- VARIABLES -->
- <!-- List of messages and XML documents used within this BPEL process -->
- <!-- ================================================================= -->
- <bpel:variables>
- <!-- Reference to the message passed as input during initiation -->
- <bpel:variable name="input"
- messageType="tns:CompraOnline-restfullRequestMessage"/>
- <!--
- Reference to the message that will be returned to the requester
- -->
- <bpel:variable name="output"
- messageType="tns:CompraOnline-restfullResponseMessage"/>
- <bpel:variable name="RWS_ClientePLResponse" messageType="ns:clienteResponse"></bpel:variable>
- <bpel:variable name="RWS_ClientePLRequest" messageType="ns:clienteInput"></bpel:variable>
- </bpel:variables>
- <!-- ================================================================= -->
- <!-- ORCHESTRATION LOGIC -->
- <!-- Set of activities coordinating the flow of messages across the -->
- <!-- services integrated within this business process -->
- <!-- ================================================================= -->
- <bpel:sequence name="main">
- <!-- Receive input from requester.
- Note: This maps to operation defined in CompraOnline-restfull.wsdl
- -->
- <bpel:receive name="receiveInput" partnerLink="client"
- portType="tns:CompraOnline-restfull"
- operation="process" variable="input"
- createInstance="yes"/>
- <!-- Generate reply to synchronous request -->
- <bpel:assign validate="no" name="Assign_cID-RWS">
- <bpel:copy>
- <bpel:from>
- <bpel:literal>
- <tns:cid xmlns:tns="http://cliente.tiendaonline.restws" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
- tns:cid
- </tns:cid>
- </bpel:literal>
- </bpel:from>
- <bpel:to variable="RWS_ClientePLRequest" part="cid"></bpel:to>
- </bpel:copy>
- <bpel:copy>
- <bpel:from part="payload" variable="input">
- <bpel:query queryLanguage="urn:oasis:names:tc:wsbpel:2.0:sublang:xpath1.0"><![CDATA[tns:input]]></bpel:query>
- </bpel:from>
- <bpel:to part="cid" variable="RWS_ClientePLRequest"></bpel:to>
- </bpel:copy>
- </bpel:assign>
- <bpel:invoke name="Invoke" partnerLink="RWS_ClientePL" operation="doGET" portType="ns:RWSCliente_portType" inputVariable="RWS_ClientePLRequest" outputVariable="RWS_ClientePLResponse"></bpel:invoke>
- <bpel:assign validate="no" name="Assign_RWS-Output">
- <bpel:copy>
- <bpel:from>
- <bpel:literal>
- <tns:CompraOnline-restfullResponse xmlns:tns="bpel.rest.compraonline" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"><tns:result>0.0</tns:result>
- </tns:CompraOnline-restfullResponse>
- </bpel:literal>
- </bpel:from>
- <bpel:to variable="output" part="payload"></bpel:to>
- </bpel:copy>
- <bpel:copy>
- <bpel:from part="CLIENTE" variable="RWS_ClientePLResponse">
- <bpel:query queryLanguage="urn:oasis:names:tc:wsbpel:2.0:sublang:xpath1.0"><![CDATA[descuento]]></bpel:query>
- </bpel:from>
- <bpel:to part="payload" variable="output">
- <bpel:query queryLanguage="urn:oasis:names:tc:wsbpel:2.0:sublang:xpath1.0"><![CDATA[tns:result]]></bpel:query>
- </bpel:to>
- </bpel:copy>
- </bpel:assign>
- <bpel:reply name="replyOutput"
- partnerLink="client"
- portType="tns:CompraOnline-restfull"
- operation="process"
- variable="output"
- />
- </bpel:sequence>
- </bpel:process>
Add Comment
Please, Sign In to add comment