Advertisement
Guest User

onEventProcess.bpel

a guest
Feb 1st, 2011
254
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
XML 3.46 KB | None | 0 0
  1. <bpel:process name="onEventProcess" targetNamespace="http://example.org/onEventProcess"
  2.     suppressJoinFailure="yes"
  3.     xmlns:tns="http://example.org/onEventProcess"
  4.     xmlns:wsdl="http://example.org/onEventProcess/wsdl"
  5.     xmlns:bpel="http://docs.oasis-open.org/wsbpel/2.0/process/executable">
  6.     <!-- Import the client WSDL -->
  7.     <bpel:import location="onEventProcessArtifacts.wsdl"
  8.         namespace="http://example.org/onEventProcess/wsdl" importType="http://schemas.xmlsoap.org/wsdl/" />
  9.  
  10.     <!--
  11.         =================================================================
  12.     -->
  13.     <!--
  14.         PARTNERLINKS
  15.     -->
  16.     <!--
  17.         List of services participating in this BPEL process
  18.     -->
  19.     <!--
  20.         =================================================================
  21.     -->
  22.     <bpel:partnerLinks>
  23.         <!--
  24.             The 'client' role represents the requester of this service. It is
  25.             used for callback. The location and correlation information
  26.             associated with the client role are automatically set using
  27.             WS-Addressing.
  28.         -->
  29.         <bpel:partnerLink name="client" partnerLinkType="wsdl:onEventProcess"
  30.             myRole="onEventProcessProvider" partnerRole="onEventProcessRequester" />
  31.     </bpel:partnerLinks>
  32.  
  33.     <!--
  34.         =================================================================
  35.     -->
  36.     <!--
  37.         VARIABLES
  38.     -->
  39.     <!--
  40.         List of messages and XML documents used within this BPEL process
  41.     -->
  42.     <!--
  43.         =================================================================
  44.     -->
  45.     <bpel:variables>
  46.         <!-- Reference to the message passed as input during initiation -->
  47.        
  48.                  
  49.         <!-- Reference to the message that will be sent back to the
  50.             requester during callback
  51.             -->
  52.         <bpel:variable name="output"
  53.             messageType="wsdl:onEventProcessResponseMessage"/>
  54.         <bpel:variable name="clientRequest"
  55.              element="wsdl:onEventProcessRequest"/>
  56.        
  57.        
  58.     </bpel:variables>
  59.  
  60.     <!--
  61.         =================================================================
  62.     -->
  63.     <!--
  64.         ORCHESTRATION LOGIC
  65.     -->
  66.     <!--
  67.         Set of activities coordinating the flow of messages across the
  68.     -->
  69.     <!--
  70.         services integrated within this business process
  71.     -->
  72.     <!--
  73.         =================================================================
  74.     -->
  75.     <bpel:sequence name="main">
  76.  
  77.         <!--
  78.             Receive input from requestor. Note: This maps to operation defined in
  79.             onEventProcess.wsdl
  80.         -->
  81.         <bpel:receive name="receiveInput" partnerLink="client"
  82.             portType="tns:onEventProcess" operation="initiate" variable="input"
  83.             createInstance="yes" />
  84.         <bpel:empty name="FIX_ME-Add_Business_Logic_Here"></bpel:empty>
  85.         <!--
  86.             Asynchronous callback to the requester. Note: the callback location
  87.             and correlation id is transparently handled using WS-addressing.
  88.         -->
  89.         <bpel:invoke name="callbackClient" partnerLink="client"
  90.             portType="tns:onEventProcessCallback" operation="onResult"
  91.             inputVariable="output" />
  92.     </bpel:sequence>
  93.    
  94.     <bpel:eventHandlers>
  95.         <bpel:onEvent partnerLink="client" operation="wsdl:initiate" portType="wsdl:onEventProcess"
  96.              variable="clientVar" element="wsdl:onEventProcessRequest" messageType="wsdl:onEventProcessRequestMessage">
  97.             <!--
  98.             <bpel:fromParts>
  99.                 <bpel:fromPart part="" toVariable=""/>
  100.             </bpel:fromParts>
  101.             -->
  102.             <bpel:scope>
  103.                 <bpel:variables>
  104.                     <bpel:variable name="scopeVar" messageType="wsdl:onEventProcessRequestMessage"/>
  105.                 </bpel:variables>
  106.             </bpel:scope>
  107.         </bpel:onEvent>
  108.     </bpel:eventHandlers>
  109. </bpel:process>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement