| <!-- ${processName} BPEL Process [Generated by the Eclipse BPEL Designer] --> |
| <!-- Date: ${date} --> |
| <bpel:process name="${processName}" |
| targetNamespace="${namespace}" |
| suppressJoinFailure="yes" |
| xmlns:tns="${namespace}" |
| xmlns:bpel="${bpelNamespace}" |
| > |
| |
| <!-- Import the client WSDL --> |
| <bpel:import location="${processName}Artifacts.wsdl" namespace="${namespace}" |
| 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:${processName}" |
| myRole="${processName}Provider" |
| /> |
| </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:${processName}RequestMessage"/> |
| |
| <!-- |
| Reference to the message that will be returned to the requester |
| --> |
| <bpel:variable name="output" |
| messageType="tns:${processName}ResponseMessage"/> |
| </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 ${processName}.wsdl |
| --> |
| <bpel:receive name="receiveInput" partnerLink="client" |
| portType="tns:${processName}" |
| operation="process" variable="input" |
| createInstance="yes"/> |
| <bpel:empty name="FIX_ME-Add_Business_Logic_Here"></bpel:empty> |
| <!-- Generate reply to synchronous request --> |
| <bpel:reply name="replyOutput" |
| partnerLink="client" |
| portType="tns:${processName}" |
| operation="process" |
| variable="output" |
| /> |
| </bpel:sequence> |
| </bpel:process> |
| |