Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <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">
- <bpel:import importType="http://schemas.xmlsoap.org/wsdl/" location="Artifacts.wsdl" namespace="http://artifacts"/>
- <!--================================================================= -->
- <!--PARTNERLINKS-->
- <!--List of services participating in this BPEL process-->
- <!--=================================================================-->
- <bpel:partnerLinks>
- <bpel:partnerLink myRole="ArtifactsRole" name="client" partnerLinkType="tns:ArtifactsPLT"/>
- <bpel:partnerLink name="mod2PL" partnerLinkType="tns:mod2PLT" partnerRole="mod2Role"/>
- </bpel:partnerLinks>
- <!--================================================================= -->
- <!--VARIABLES-->
- <!--List of messages and XML documents used within this BPEL process-->
- <!--=================================================================-->
- <bpel:variables>
- <bpel:variable messageType="tns:ArtifactsRequestMessage" name="input"/>
- <bpel:variable messageType="tns:ArtifactsResponseMessage" name="output"/>
- <bpel:variable messageType="mod2:Azure_mod2_InputMessage" name="mod2-1-1PLRequest"/>
- <bpel:variable messageType="mod2:Azure_mod2_OutputMessage" name="mod2-1-1PLResponse"/>
- </bpel:variables>
- <!--================================================================= -->
- <!--ORCHESTRATION LOGIC-->
- <!--Set of activities coordinating the flow of messages across the services integrated within this business process-->
- <!--=================================================================-->
- <bpel:sequence name="main">
- <bpel:receive createInstance="yes" name="receiveInput" operation="process" partnerLink="client" portType="tns:Artifacts" variable="input"/>
- <bpel:assign name="Assign_Initializations" validate="no">
- <bpel:copy>
- <bpel:from>
- <bpel:literal>
- <tns:mod2 xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:tns="http://tempuri.org/">
- <arg0>arg0</arg0>
- </tns:mod2>
- </bpel:literal>
- </bpel:from>
- <bpel:to part="parameters" variable="mod2-1-1PLRequest"/>
- </bpel:copy>
- <bpel:copy>
- <bpel:from>
- <bpel:literal>
- <tns:ArtifactsResponse xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
- <tns:result_mod2-1-1_mod2Result>tns:result_mod2-1-1_mod2Result</tns:result_mod2-1-1_mod2Result>
- </tns:ArtifactsResponse>
- </bpel:literal>
- </bpel:from>
- <bpel:to part="payload" variable="output"/>
- </bpel:copy>
- </bpel:assign>
- <bpel:assign name="Assign_Receive" validate="no">
- <bpel:copy>
- <bpel:from part="payload" variable="input">
- <bpel:query queryLanguage="urn:oasis:names:tc:wsbpel:2.0:sublang:xpath1.0">
- <![CDATA[tns:input_mod2-1-1_arg0]]>
- </bpel:query>
- </bpel:from>
- <bpel:to part="parameters" variable="mod2-1-1PLRequest">
- <bpel:query queryLanguage="urn:oasis:names:tc:wsbpel:2.0:sublang:xpath1.0">
- <![CDATA[arg0]]>
- </bpel:query>
- </bpel:to>
- </bpel:copy>
- </bpel:assign>
- <bpel:sequence>
- <bpel:invoke inputVariable="mod2-1-1PLRequest" name="mod2-1-1Invoke" operation="mod2" outputVariable="mod2-1-1PLResponse" partnerLink="mod2PL" portType="mod2:Azure"/>
- </bpel:sequence>
- <bpel:assign name="Assign_Reply" validate="no">
- <bpel:copy>
- <bpel:from part="parameters" variable="mod2-1-1PLResponse">
- <bpel:query queryLanguage="urn:oasis:names:tc:wsbpel:2.0:sublang:xpath1.0">
- <![CDATA[mod2Result]]>
- </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_mod2-1-1_mod2Result]]>
- </bpel:query>
- </bpel:to>
- </bpel:copy>
- </bpel:assign>
- <bpel:reply name="replyOutput" operation="process" partnerLink="client" portType="tns:Artifacts" variable="output"/>
- </bpel:sequence>
- </bpel:process>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement