blob: 4e966fd7976a986d35a12c1a1f157695de7e2a3c [file] [log] [blame]
<!--
~ Licensed to the Apache Software Foundation (ASF) under one
~ or more contributor license agreements. See the NOTICE file
~ distributed with this work for additional information
~ regarding copyright ownership. The ASF licenses this file
~ to you under the Apache License, Version 2.0 (the
~ "License"); you may not use this file except in compliance
~ with the License. You may obtain a copy of the License at
~
~ http://www.apache.org/licenses/LICENSE-2.0
~
~ Unless required by applicable law or agreed to in writing,
~ software distributed under the License is distributed on an
~ "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
~ KIND, either express or implied. See the License for the
~ specific language governing permissions and limitations
~ under the License.
-->
<process
name="TestCorrelation1"
targetNamespace="http://ode/bpel/unit-test"
xmlns="http://docs.oasis-open.org/wsbpel/2.0/process/executable"
xmlns:tns="http://ode/bpel/unit-test"
xmlns:xsd="http://www.w3.org/2001/XMLSchema"
xmlns:test="http://ode/bpel/unit-test.wsdl"
xmlns:dummy="http://axis2.ode.apache.org"
queryLanguage="urn:oasis:names:tc:ws2.0:sublang:xpath2.0"
expressionLanguage="urn:oasis:names:tc:ws2.0:sublang:xpath2.0">
<import location="TestCorrelation1.wsdl"
namespace="http://ode/bpel/unit-test/testCorrelation1.wsdl"
importType="http://schemas.xmlsoap.org/wsdl/" />
<partnerLinks>
<partnerLink name="testCorrelation1PL" partnerLinkType="test:testCorrelation1Request" myRole="testCorrelation1Service"/>
</partnerLinks>
<scope name="scope1">
<variables>
<variable messageType="test:operation1Request" name="input1"/>
<variable messageType="test:operation2Request" name="input2"/>
<variable messageType="test:operation3Request" name="input3"/>
<variable messageType="test:operation3Response" name="output3"/>
</variables>
<correlationSets>
<correlationSet name="correlationSet1" properties="test:testCorrelation1Variable1"/>
</correlationSets>
<flow>
<sequence>
<receive name="receive1" createInstance="yes" operation="operation1" partnerLink="testCorrelation1PL" portType="test:testCorrelation1PT" variable="input1">
<correlations>
<correlation set="correlationSet1" initiate="yes"></correlation>
</correlations>
</receive>
<scope name="scope2">
<correlationSets>
<correlationSet name="correlationSet2" properties="test:testCorrelation1Variable1"/>
</correlationSets>
<flow>
<sequence>
<receive name="receive2" createInstance="no" operation="operation2" partnerLink="testCorrelation1PL" portType="test:testCorrelation1PT" variable="input2">
<correlations>
<correlation set="correlationSet1" initiate="no"></correlation>
<correlation initiate="yes" set="correlationSet2"/>
</correlations>
</receive>
<receive name="receive3" createInstance="no" operation="operation3" partnerLink="testCorrelation1PL" portType="test:testCorrelation1PT" variable="input3">
<correlations>
<correlation initiate="no" set="correlationSet2"/>
</correlations>
</receive>
<assign name="assign1">
<copy>
<from>$input2.newParameter1/ns0:from</from>
<to part="newParameter2" variable="output3"/>
</copy>
</assign>
<reply name="reply" operation="operation3" partnerLink="testCorrelation1PL" portType="test:testCorrelation1PT" variable="output3"/>
</sequence>
</flow>
</scope>
</sequence>
</flow>
</scope>
</process>