Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <!-- forEachCompletion BPEL Process [Generated by the Eclipse BPEL Designer] -->
- <!-- Date: Mon Jun 25 10:30:45 CEST 2012 -->
- <bpel:process name="forEachCompletion"
- targetNamespace="http://fec.org"
- suppressJoinFailure="yes"
- xmlns:tns="http://fec.org"
- xmlns:bpel="http://docs.oasis-open.org/wsbpel/2.0/process/executable"
- >
- <!-- Import the client WSDL -->
- <bpel:import location="forEachCompletionArtifacts.wsdl" namespace="http://fec.org"
- 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:forEachCompletion"
- myRole="forEachCompletionProvider"
- />
- </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:forEachCompletionRequestMessage"/>
- <!--
- Reference to the message that will be returned to the requester
- -->
- <bpel:variable name="output"
- messageType="tns:forEachCompletionResponseMessage"/>
- </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 forEachCompletion.wsdl
- -->
- <bpel:receive name="receiveInput" partnerLink="client"
- portType="tns:forEachCompletion"
- operation="process" variable="input"
- createInstance="yes"/>
- <!-- Generate reply to synchronous request -->
- <bpel:assign validate="no" name="Assign">
- <bpel:copy>
- <bpel:from><bpel:literal><tns:forEachCompletionResponse xmlns:tns="http://fec.org" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
- <tns:result>tns:result</tns:result>
- </tns:forEachCompletionResponse>
- </bpel:literal></bpel:from>
- <bpel:to variable="output" part="payload"></bpel:to>
- </bpel:copy>
- <bpel:copy>
- <bpel:from>
- <![CDATA[string("")]]>
- </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:forEach parallel="no" counterName="Counter" name="ForEach">
- <bpel:startCounterValue>
- <![CDATA[1]]>
- </bpel:startCounterValue>
- <bpel:finalCounterValue><![CDATA[4]]></bpel:finalCounterValue>
- <bpel:completionCondition>
- <bpel:branches successfulBranchesOnly="no"><![CDATA[1]]></bpel:branches>
- </bpel:completionCondition>
- <bpel:scope>
- <bpel:sequence>
- <bpel:wait name="Wait">
- <bpel:for><![CDATA[concat('PT', $Counter, 'S')]]></bpel:for>
- </bpel:wait>
- <bpel:assign validate="no" name="Assign1">
- <bpel:copy>
- <bpel:from>
- <![CDATA[concat($output.payload/tns:result, $Counter)]]>
- </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:sequence>
- </bpel:scope>
- </bpel:forEach>
- <bpel:reply name="replyOutput"
- partnerLink="client"
- portType="tns:forEachCompletion"
- operation="process"
- variable="output"
- />
- </bpel:sequence>
- </bpel:process>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement