Advertisement
eskalera

process.bpel

May 9th, 2013
144
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
XML 4.00 KB | None | 0 0
  1. <bpel:process xmlns:bpel="http://docs.oasis-open.org/wsbpel/2.0/process/executable" xmlns:mod2="http://tempuri.org/" xmlns:tns="http://artifacts" name="process" suppressJoinFailure="yes" targetNamespace="http://artifacts">
  2.     <bpel:import importType="http://schemas.xmlsoap.org/wsdl/" location="Artifacts.wsdl" namespace="http://artifacts"/>
  3.     <!--================================================================= -->
  4.     <!--PARTNERLINKS-->
  5.     <!--List of services participating in this BPEL process-->
  6.     <!--=================================================================-->
  7.     <bpel:partnerLinks>
  8.         <bpel:partnerLink myRole="ArtifactsRole" name="client" partnerLinkType="tns:ArtifactsPLT"/>
  9.         <bpel:partnerLink name="mod2PL" partnerLinkType="tns:mod2PLT" partnerRole="mod2Role"/>
  10.     </bpel:partnerLinks>
  11.     <!--================================================================= -->
  12.     <!--VARIABLES-->
  13.     <!--List of messages and XML documents used within this BPEL process-->
  14.     <!--=================================================================-->
  15.     <bpel:variables>
  16.         <bpel:variable messageType="tns:ArtifactsRequestMessage" name="input"/>
  17.         <bpel:variable messageType="tns:ArtifactsResponseMessage" name="output"/>
  18.         <bpel:variable messageType="mod2:Azure_mod2_InputMessage" name="mod2-1-1PLRequest"/>
  19.         <bpel:variable messageType="mod2:Azure_mod2_OutputMessage" name="mod2-1-1PLResponse"/>
  20.     </bpel:variables>
  21.     <!--================================================================= -->
  22.     <!--ORCHESTRATION LOGIC-->
  23.     <!--Set of activities coordinating the flow of messages across the services integrated within this business process-->
  24.     <!--=================================================================-->
  25.     <bpel:sequence name="main">
  26.         <bpel:receive createInstance="yes" name="receiveInput" operation="process" partnerLink="client" portType="tns:Artifacts" variable="input"/>
  27.         <bpel:assign name="Assign_Initializations" validate="no">
  28.             <bpel:copy>
  29.                 <bpel:from>
  30.                     <bpel:literal>
  31.                         <tns:mod2 xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:tns="http://tempuri.org/">
  32.                             <arg0>arg0</arg0>
  33.                         </tns:mod2>
  34.                     </bpel:literal>
  35.                 </bpel:from>
  36.                 <bpel:to part="parameters" variable="mod2-1-1PLRequest"/>
  37.             </bpel:copy>
  38.             <bpel:copy>
  39.                 <bpel:from>
  40.                     <bpel:literal>
  41.                         <tns:ArtifactsResponse xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
  42.                             <tns:result_mod2-1-1_mod2Result>tns:result_mod2-1-1_mod2Result</tns:result_mod2-1-1_mod2Result>
  43.                         </tns:ArtifactsResponse>
  44.                     </bpel:literal>
  45.                 </bpel:from>
  46.                 <bpel:to part="payload" variable="output"/>
  47.             </bpel:copy>
  48.         </bpel:assign>
  49.         <bpel:assign name="Assign_Receive" validate="no">
  50.             <bpel:copy>
  51.                 <bpel:from part="payload" variable="input">
  52.                     <bpel:query queryLanguage="urn:oasis:names:tc:wsbpel:2.0:sublang:xpath1.0">
  53.                         <![CDATA[tns:input_mod2-1-1_arg0]]>
  54.                     </bpel:query>
  55.                 </bpel:from>
  56.                 <bpel:to part="parameters" variable="mod2-1-1PLRequest">
  57.                     <bpel:query queryLanguage="urn:oasis:names:tc:wsbpel:2.0:sublang:xpath1.0">
  58.                         <![CDATA[arg0]]>
  59.                     </bpel:query>
  60.                 </bpel:to>
  61.             </bpel:copy>
  62.         </bpel:assign>
  63.         <bpel:sequence>
  64.             <bpel:invoke inputVariable="mod2-1-1PLRequest" name="mod2-1-1Invoke" operation="mod2" outputVariable="mod2-1-1PLResponse" partnerLink="mod2PL" portType="mod2:Azure"/>
  65.         </bpel:sequence>
  66.         <bpel:assign name="Assign_Reply" validate="no">
  67.             <bpel:copy>
  68.                 <bpel:from part="parameters" variable="mod2-1-1PLResponse">
  69.                     <bpel:query queryLanguage="urn:oasis:names:tc:wsbpel:2.0:sublang:xpath1.0">
  70.                         <![CDATA[mod2Result]]>
  71.                     </bpel:query>
  72.                 </bpel:from>
  73.                 <bpel:to part="payload" variable="output">
  74.                     <bpel:query queryLanguage="urn:oasis:names:tc:wsbpel:2.0:sublang:xpath1.0">
  75.                         <![CDATA[tns:result_mod2-1-1_mod2Result]]>
  76.                     </bpel:query>
  77.                 </bpel:to>
  78.             </bpel:copy>
  79.         </bpel:assign>
  80.         <bpel:reply name="replyOutput" operation="process" partnerLink="client" portType="tns:Artifacts" variable="output"/>
  81.     </bpel:sequence>
  82. </bpel:process>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement