blob: e200b1d4d0139895e1f79ba48d937579a2365797 [file] [log] [blame]
<?xml version="1.0" encoding="UTF-8"?>
<!--
~ 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.
-->
<!--
14.4.?Correlation
After a correlation set is initiated, the values of the properties for a correlation set must be identical for all the messages in all the operations that carry the correlation set and occur within the corresponding scope until its completion. If at execution time this constraint is violated, the standard fault bpws:correlationViolation MUST be thrown by a compliant implementation. The same fault MUST be thrown if an activity with the initiate attribute set to no attempts to use a correlation set that has not been previously initiated.
This process is intended to FAIL by attempting to use a non-initialized correlation set.
-->
<bpws:process
xmlns:bpws="http://schemas.xmlsoap.org/ws/2003/03/business-process/"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:foo="http://test.ns"
targetNamespace="http://test.ns"
name="correlation2">
<bpws:partnerLinks>
<bpws:partnerLink name="harness"
partnerLinkType="foo:outcomePartnerType"
myRole="outcomeRole"/>
</bpws:partnerLinks>
<bpws:variables>
<bpws:variable name="OUTCOME" messageType="foo:stringWrapperMessage"/>
</bpws:variables>
<bpws:correlationSets>
<bpws:correlationSet properties="foo:y" name="initCorSet"/>
</bpws:correlationSets>
<bpws:sequence>
<bpws:receive partnerLink="harness"
portType="foo:testPort"
operation="testOperation"
variable="OUTCOME"
createInstance="yes">
<bpws:correlations>
<bpws:correlation set="initCorSet" initiate="yes"/>
</bpws:correlations>
</bpws:receive>
<bpws:receive partnerLink="harness"
portType="foo:testPort"
operation="oneWayOperation"
variable="OUTCOME">
<bpws:correlations>
<bpws:correlation set="initCorSet"/>
</bpws:correlations>
</bpws:receive>
<bpws:reply partnerLink="harness"
portType="foo:testPort"
operation="testOperation"
variable="OUTCOME"/>
</bpws:sequence>
</bpws:process>