Author: lwaterman
Date: Sat Oct 28 22:24:57 2006
New Revision: 468835

URL: http://svn.apache.org/viewvc?view=rev&rev=468835
Log:
Add a couple more tests

Added:
    
incubator/ode/trunk/bpel-test/src/test/java/org/apache/ode/test/CompensationHandling20Tests.java
    
incubator/ode/trunk/bpel-test/src/test/resources/bpel/2.0/TestCorrelationOpaque/
    
incubator/ode/trunk/bpel-test/src/test/resources/bpel/2.0/TestCorrelationOpaque/TestCorrelationOpaque.bpel
    
incubator/ode/trunk/bpel-test/src/test/resources/bpel/2.0/TestCorrelationOpaque/TestCorrelationOpaque.wsdl
    
incubator/ode/trunk/bpel-test/src/test/resources/bpel/2.0/TestCorrelationOpaque/deploy.xml
    
incubator/ode/trunk/bpel-test/src/test/resources/bpel/2.0/TestCorrelationOpaque/test1.properties
    
incubator/ode/trunk/bpel-test/src/test/resources/bpel/2.0/TestCorrelationOpaque/test2.properties
    
incubator/ode/trunk/bpel-test/src/test/resources/bpel/2.0/TestImplicitFaultHandler/
    
incubator/ode/trunk/bpel-test/src/test/resources/bpel/2.0/TestImplicitFaultHandler/TestImplicitFaultHandler.bpel
    
incubator/ode/trunk/bpel-test/src/test/resources/bpel/2.0/TestImplicitFaultHandler/TestImplicitFaultHandler.wsdl
    
incubator/ode/trunk/bpel-test/src/test/resources/bpel/2.0/TestImplicitFaultHandler/data.txt
    
incubator/ode/trunk/bpel-test/src/test/resources/bpel/2.0/TestImplicitFaultHandler/deploy.xml
    
incubator/ode/trunk/bpel-test/src/test/resources/bpel/2.0/TestImplicitFaultHandler/test.properties
Modified:
    
incubator/ode/trunk/bpel-test/src/test/java/org/apache/ode/test/BPELTest.java
    
incubator/ode/trunk/bpel-test/src/test/java/org/apache/ode/test/BasicActivities20Tests.java

Modified: 
incubator/ode/trunk/bpel-test/src/test/java/org/apache/ode/test/BPELTest.java
URL: 
http://svn.apache.org/viewvc/incubator/ode/trunk/bpel-test/src/test/java/org/apache/ode/test/BPELTest.java?view=diff&rev=468835&r1=468834&r2=468835
==============================================================================
--- 
incubator/ode/trunk/bpel-test/src/test/java/org/apache/ode/test/BPELTest.java 
(original)
+++ 
incubator/ode/trunk/bpel-test/src/test/java/org/apache/ode/test/BPELTest.java 
Sat Oct 28 22:24:57 2006
@@ -223,13 +223,4 @@
                assertTrue(testValue);
        }
 
-       /** These tests compile however they fail at runtime */
-
-       // public void testCompensationHandlers() throws Exception {
-       // go("target/test-classes/bpel/2.0/TestCompensationHandlers");
-       // }
-       // public void testTimer() throws Exception {
-       // go("target/test-classes/bpel/2.0/TestTimer");
-       // }
-
 }

Modified: 
incubator/ode/trunk/bpel-test/src/test/java/org/apache/ode/test/BasicActivities20Tests.java
URL: 
http://svn.apache.org/viewvc/incubator/ode/trunk/bpel-test/src/test/java/org/apache/ode/test/BasicActivities20Tests.java?view=diff&rev=468835&r1=468834&r2=468835
==============================================================================
--- 
incubator/ode/trunk/bpel-test/src/test/java/org/apache/ode/test/BasicActivities20Tests.java
 (original)
+++ 
incubator/ode/trunk/bpel-test/src/test/java/org/apache/ode/test/BasicActivities20Tests.java
 Sat Oct 28 22:24:57 2006
@@ -17,5 +17,10 @@
 
                go("target/test-classes/bpel/2.0/NegativeTargetNSTest1");
        }
+       
+       public void testTimer() throws Exception {
+        go("target/test-classes/bpel/2.0/TestTimer");
+       }
+
 
 }

Added: 
incubator/ode/trunk/bpel-test/src/test/java/org/apache/ode/test/CompensationHandling20Tests.java
URL: 
http://svn.apache.org/viewvc/incubator/ode/trunk/bpel-test/src/test/java/org/apache/ode/test/CompensationHandling20Tests.java?view=auto&rev=468835
==============================================================================
--- 
incubator/ode/trunk/bpel-test/src/test/java/org/apache/ode/test/CompensationHandling20Tests.java
 (added)
+++ 
incubator/ode/trunk/bpel-test/src/test/java/org/apache/ode/test/CompensationHandling20Tests.java
 Sat Oct 28 22:24:57 2006
@@ -0,0 +1,13 @@
+package org.apache.ode.test;
+
+public class CompensationHandling20Tests extends BPELTest {
+
+       public void testCompensationHandlers() throws Exception {
+        go("target/test-classes/bpel/2.0/TestCompensationHandlers");
+       }
+       
+       public void testImplicitFaultHandler() throws Exception {
+               go("target/test-classes/bpel/2.0/TestImplicitFaultHandler");
+       }
+       
+}

Added: 
incubator/ode/trunk/bpel-test/src/test/resources/bpel/2.0/TestCorrelationOpaque/TestCorrelationOpaque.bpel
URL: 
http://svn.apache.org/viewvc/incubator/ode/trunk/bpel-test/src/test/resources/bpel/2.0/TestCorrelationOpaque/TestCorrelationOpaque.bpel?view=auto&rev=468835
==============================================================================
--- 
incubator/ode/trunk/bpel-test/src/test/resources/bpel/2.0/TestCorrelationOpaque/TestCorrelationOpaque.bpel
 (added)
+++ 
incubator/ode/trunk/bpel-test/src/test/resources/bpel/2.0/TestCorrelationOpaque/TestCorrelationOpaque.bpel
 Sat Oct 28 22:24:57 2006
@@ -0,0 +1,48 @@
+<!--
+  ~ 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.
+-->
+
+<bpel:process xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";
+  xsi:schemaLocation="http://schemas.xmlsoap.org/ws/2004/03/business-process/ 
../../../../../../../bpel-schemas/src/main/resources/wsbpel_main-draft-Apr-29-2006.xsd"
+  xmlns:tns="http://ode/bpel/unit-test/testCorrelationOpaque"; 
targetNamespace="http://ode/bpel/unit-test/testCorrelationOpaque"; 
xmlns:wns="http://ode/bpel/unit-test/testCorrelationOpaque.wsdl";
+  xmlns:ns0="http://www.w3schools.com"; 
xmlns:bpel="http://schemas.xmlsoap.org/ws/2004/03/business-process/"; 
name="TestCorrelationOpaque" 
queryLanguage="urn:oasis:names:tc:wsbpel:2.0:sublang:xpath2.0"
+  expressionLanguage="urn:oasis:names:tc:wsbpel:2.0:sublang:xpath2.0" 
suppressJoinFailure="yes">
+
+  <bpel:import location="testCorrelationOpaque.wsdl" 
namespace="http://ode/bpel/unit-test/testCorrelationOpaque.wsdl"; 
importType="http://schemas.xmlsoap.org/wsdl/"/>
+
+  <bpel:partnerLinks>
+    <bpel:partnerLink name="testCorrelationOpaquePL1" 
partnerLinkType="wns:testCorrelationOpaqueRequest1" 
myRole="testCorrelationOpaqueService1"/>
+    <bpel:partnerLink name="testCorrelationOpaquePL2" 
partnerLinkType="wns:testCorrelationOpaqueRequest2" 
myRole="testCorrelationOpaqueService2"/>
+  </bpel:partnerLinks>
+  <bpel:variables>
+    <bpel:variable messageType="wns:operation1Request" name="input1"/>
+    <bpel:variable messageType="wns:operation2Request" name="input2"/>
+    <bpel:variable messageType="wns:operation2Response" name="output"/>
+  </bpel:variables>
+  <bpel:sequence>
+    <bpel:receive name="receive1" createInstance="yes" operation="operation1" 
partnerLink="testCorrelationOpaquePL1" portType="wns:testCorrelationOpaquePT" 
variable="input1"/>
+    <bpel:assign>
+      <bpel:copy>
+        <bpel:from>$input1.newParameter1</bpel:from>
+        <bpel:to part="newParameter1" variable="output"/>
+      </bpel:copy>
+    </bpel:assign>
+    <bpel:receive name="receive2" createInstance="no" operation="operation2" 
partnerLink="testCorrelationOpaquePL2" portType="wns:testCorrelationOpaquePT" 
variable="input2"/>
+    <bpel:reply name="reply" operation="operation2" 
partnerLink="testCorrelationOpaquePL2" portType="wns:testCorrelationOpaquePT" 
variable="output"/>
+  </bpel:sequence>
+</bpel:process>

Added: 
incubator/ode/trunk/bpel-test/src/test/resources/bpel/2.0/TestCorrelationOpaque/TestCorrelationOpaque.wsdl
URL: 
http://svn.apache.org/viewvc/incubator/ode/trunk/bpel-test/src/test/resources/bpel/2.0/TestCorrelationOpaque/TestCorrelationOpaque.wsdl?view=auto&rev=468835
==============================================================================
--- 
incubator/ode/trunk/bpel-test/src/test/resources/bpel/2.0/TestCorrelationOpaque/TestCorrelationOpaque.wsdl
 (added)
+++ 
incubator/ode/trunk/bpel-test/src/test/resources/bpel/2.0/TestCorrelationOpaque/TestCorrelationOpaque.wsdl
 Sat Oct 28 22:24:57 2006
@@ -0,0 +1,63 @@
+<!--
+  ~ 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.
+-->
+
+<wsdl:definitions 
targetNamespace="http://ode/bpel/unit-test/testCorrelationOpaque.wsdl"; 
xmlns:tns="http://ode/bpel/unit-test/testCorrelationOpaque.wsdl";
+  xmlns="http://ode/bpel/unit-test/testCorrelationOpaque.wsdl"; 
xmlns:plnk="http://schemas.xmlsoap.org/ws/2004/03/partner-link/"; 
xmlns:xsd="http://www.w3.org/2001/XMLSchema";
+  xmlns:bpws="http://schemas.xmlsoap.org/ws/2004/03/business-process/"; 
xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/";>
+
+  <wsdl:message name="operation1Request">
+    <wsdl:part name="newParameter1" type="xsd:string"/>
+  </wsdl:message>
+  <wsdl:message name="operation2Request">
+    <wsdl:part name="newParameter1" type="xsd:string"/>
+  </wsdl:message>
+  <wsdl:message name="operation2Response">
+    <wsdl:part name="newParameter1" type="xsd:string"/>
+  </wsdl:message>
+  <wsdl:portType name="testCorrelationOpaquePT">
+    <wsdl:operation name="operation2">
+      <wsdl:input name="operation2Input" message="tns:operation2Request"/>
+      <wsdl:output name="operation2Output" message="tns:operation2Response"/>
+    </wsdl:operation>
+    <wsdl:operation name="operation1">
+      <wsdl:input name="operation1Input" message="tns:operation1Request"/>
+    </wsdl:operation>
+  </wsdl:portType>
+  <wsdl:binding name="testCorrelationOpaqueBinding" 
type="tns:testCorrelationOpaquePT">
+    <wsdl:operation name="operation2">
+      <wsdl:input name="operation2Input"> </wsdl:input>
+      <wsdl:output name="operation2Output"> </wsdl:output>
+    </wsdl:operation>
+    <wsdl:operation name="operation1">
+      <wsdl:input name="operation1Input"> </wsdl:input>
+    </wsdl:operation>
+  </wsdl:binding>
+  <wsdl:service name="testCorrelationOpaqueService">
+    <wsdl:port name="testCorrelationOpaquePort" 
binding="tns:testCorrelationOpaqueBinding"> </wsdl:port>
+  </wsdl:service>
+
+  <plnk:partnerLinkType name="testCorrelationOpaqueRequest1">
+    <plnk:role name="testCorrelationOpaqueService1" 
portType="testCorrelationOpaquePT"/>
+  </plnk:partnerLinkType>
+  <plnk:partnerLinkType name="testCorrelationOpaqueRequest2">
+    <plnk:role name="testCorrelationOpaqueService2" 
portType="testCorrelationOpaquePT"/>
+  </plnk:partnerLinkType>
+
+
+</wsdl:definitions>

Added: 
incubator/ode/trunk/bpel-test/src/test/resources/bpel/2.0/TestCorrelationOpaque/deploy.xml
URL: 
http://svn.apache.org/viewvc/incubator/ode/trunk/bpel-test/src/test/resources/bpel/2.0/TestCorrelationOpaque/deploy.xml?view=auto&rev=468835
==============================================================================
--- 
incubator/ode/trunk/bpel-test/src/test/resources/bpel/2.0/TestCorrelationOpaque/deploy.xml
 (added)
+++ 
incubator/ode/trunk/bpel-test/src/test/resources/bpel/2.0/TestCorrelationOpaque/deploy.xml
 Sat Oct 28 22:24:57 2006
@@ -0,0 +1,34 @@
+<!--
+       ~ 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.
+-->
+
+<deploy xmlns="http://ode.fivesight.com/schemas/2006/06/27/dd"; 
+       xmlns:pns="http://ode/bpel/unit-test/testCorrelationOpaque"; 
+       xmlns:wns="http://ode/bpel/unit-test/testCorrelationOpaque.wsdl";>
+
+
+       <process name="pns:TestCorrelationOpaque">
+               <active>true</active>
+               <provide partnerLink="testCorrelationOpaquePL1">
+                       <service name="wns:testCorrelationOpaqueService" 
port="wns:testCorrelationOpaquePort"/>
+               </provide>
+               <provide partnerLink="testCorrelationOpaquePL2">
+                       <service name="wns:testCorrelationOpaqueService" 
port="wns:testCorrelationOpaquePort"/>
+               </provide>
+       </process>
+</deploy>

Added: 
incubator/ode/trunk/bpel-test/src/test/resources/bpel/2.0/TestCorrelationOpaque/test1.properties
URL: 
http://svn.apache.org/viewvc/incubator/ode/trunk/bpel-test/src/test/resources/bpel/2.0/TestCorrelationOpaque/test1.properties?view=auto&rev=468835
==============================================================================
--- 
incubator/ode/trunk/bpel-test/src/test/resources/bpel/2.0/TestCorrelationOpaque/test1.properties
 (added)
+++ 
incubator/ode/trunk/bpel-test/src/test/resources/bpel/2.0/TestCorrelationOpaque/test1.properties
 Sat Oct 28 22:24:57 2006
@@ -0,0 +1,5 @@
+namespace=http://ode/bpel/unit-test/testCorrelationOpaque.wsdl
+service=testCorrelationOpaqueService
+operation=operation1
+request1=<message><newParameter1>Receive One</newParameter1></message>
+response1=ASYNC
\ No newline at end of file

Added: 
incubator/ode/trunk/bpel-test/src/test/resources/bpel/2.0/TestCorrelationOpaque/test2.properties
URL: 
http://svn.apache.org/viewvc/incubator/ode/trunk/bpel-test/src/test/resources/bpel/2.0/TestCorrelationOpaque/test2.properties?view=auto&rev=468835
==============================================================================
--- 
incubator/ode/trunk/bpel-test/src/test/resources/bpel/2.0/TestCorrelationOpaque/test2.properties
 (added)
+++ 
incubator/ode/trunk/bpel-test/src/test/resources/bpel/2.0/TestCorrelationOpaque/test2.properties
 Sat Oct 28 22:24:57 2006
@@ -0,0 +1,5 @@
+namespace=http://ode/bpel/unit-test/testCorrelationOpaque.wsdl
+service=testCorrelationOpaqueService
+operation=operation2
+request1=<message><newParameter1>Receive Two</newParameter1></message>
+response1=.*Receive One.*
\ No newline at end of file

Added: 
incubator/ode/trunk/bpel-test/src/test/resources/bpel/2.0/TestImplicitFaultHandler/TestImplicitFaultHandler.bpel
URL: 
http://svn.apache.org/viewvc/incubator/ode/trunk/bpel-test/src/test/resources/bpel/2.0/TestImplicitFaultHandler/TestImplicitFaultHandler.bpel?view=auto&rev=468835
==============================================================================
--- 
incubator/ode/trunk/bpel-test/src/test/resources/bpel/2.0/TestImplicitFaultHandler/TestImplicitFaultHandler.bpel
 (added)
+++ 
incubator/ode/trunk/bpel-test/src/test/resources/bpel/2.0/TestImplicitFaultHandler/TestImplicitFaultHandler.bpel
 Sat Oct 28 22:24:57 2006
@@ -0,0 +1,112 @@
+<!--
+       ~ 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 xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";
+       
xsi:schemaLocation="http://schemas.xmlsoap.org/ws/2004/03/business-process/ 
../../../../../../../bpel-schemas/src/main/resources/wsbpel_main-draft-Apr-29-2006.xsd"
+       xmlns:bpws="http://schemas.xmlsoap.org/ws/2004/03/business-process/"; 
xmlns:tns="http://ode/bpel/unit-test/testImplicitFaultHandler"; 
xmlns:flt="http://ode/bpel/unit-test/FaultService.wsdl";
+       xmlns:prb="http://ode/bpel/unit-test/ProbeService.wsdl"; 
xmlns:wns="http://ode/bpel/unit-test/testImplicitFaultHandler.wsdl"; 
xmlns="http://schemas.xmlsoap.org/ws/2004/03/business-process/";
+       targetNamespace="http://ode/bpel/unit-test/testImplicitFaultHandler"; 
name="testImplicitFaultHandler" suppressJoinFailure="yes" 
queryLanguage="urn:oasis:names:tc:wsbpel:2.0:sublang:xpath2.0"
+       expressionLanguage="urn:oasis:names:tc:wsbpel:2.0:sublang:xpath2.0">
+
+       <!-- test embeded fault and comp handlers in invokes -->
+       <!-- the first no op invoke will install a comp handler -->
+       <!-- the second invoke will generated an error and handle it -->
+       <!-- the error hanndling will throw and error which is not handled -->
+       <!-- this will cause implicit compensation on the installed comp 
handler -->
+       <!-- that comp handler will throw an error out of the process -->
+
+       <import location="TestImplicitFaultHandler.wsdl" 
namespace="http://ode/bpel/unit-test/testImplicitFaultHandler.wsdl"; 
importType="http://schemas.xmlsoap.org/wsdl/"/>
+       <import location="../ProbeService/probeService.wsdl" 
namespace="http://ode/bpel/unit-test/ProbeService.wsdl"; 
importType="http://schemas.xmlsoap.org/wsdl/"/>
+       <import location="../FaultService/faultService.wsdl" 
namespace="http://ode/bpel/unit-test/FaultService.wsdl"; 
importType="http://schemas.xmlsoap.org/wsdl/"/>
+
+       <partnerLinks>
+               <partnerLink name="request" 
partnerLinkType="wns:testImplicitFaultHandlerRequest" 
myRole="testImplicitFaultHandlerService"/>
+               <partnerLink name="probe" partnerLinkType="wns:probeRequest" 
partnerRole="probeService" initializePartnerRole="yes"/>
+               <partnerLink name="fault" partnerLinkType="wns:faultRequest" 
partnerRole="faultService" initializePartnerRole="yes"/>
+       </partnerLinks>
+
+       <variables>
+               <variable name="request" messageType="wns:requestMessage"/>
+               <variable name="reply1" messageType="wns:replyMessage"/>
+               <variable name="reply2" messageType="wns:replyMessage"/>
+               <variable name="fault" messageType="flt:faultMessage"/>
+               <variable name="faultResponse" messageType="flt:faultMessage"/>
+               <variable name="probeInput" messageType="prb:probeMessage"/>
+       </variables>
+       <faultHandlers>
+               <catch faultName="tns:fault">
+                       <compensate/>
+               </catch>
+       </faultHandlers>
+       <sequence>
+               <receive name="receive1" partnerLink="request" 
portType="wns:testImplicitFaultHandlerPT" operation="request" 
variable="request" createInstance="yes"> </receive>
+               <assign>
+                       <copy>
+                               <from variable="request" part="requestID"/>
+                               <to variable="probeInput" part="probeName"/>
+                       </copy>
+                       <copy>
+                               <from variable="request" part="requestText"/>
+                               <to variable="probeInput" part="probeData"/>
+                       </copy>
+               </assign>
+               <invoke name="probe" partnerLink="probe" 
portType="prb:probeMessagePT" operation="probe" inputVariable="probeInput" 
outputVariable="probeInput">
+                       <compensationHandler>
+                               <sequence>
+                                       <throw 
faultName="tns:faultFromCompensationHandlerInInvoke"/>
+                               </sequence>
+                       </compensationHandler>
+               </invoke>
+
+               <assign>
+                       <copy>
+                               <from>$request.requestID</from>
+                               <to variable="fault" part="faultName"/>
+                       </copy>
+                       <copy>
+                               <from>$request.requestText</from>
+                               <to variable="fault" part="faultData"/>
+                       </copy>
+                       <copy>
+                               <from>$request.faultIndicator1</from>
+                               <to>$fault.faultIndicator1</to>
+                       </copy>
+                       <copy>
+                               <from>$request.faultIndicator2</from>
+                               <to>$fault.faultIndicator2</to>
+                       </copy>
+               </assign>
+
+               <invoke name="throwTestFault" partnerLink="fault" 
portType="flt:faultMessagePT" operation="throwFault" inputVariable="fault" 
outputVariable="faultResponse">
+                       <catch faultName="flt:FaultMessage1" 
faultVariable="testError" faultMessageType="flt:errorMessage">
+                               <sequence>
+                                       <assign>
+                                               <copy>
+                                                       <from>'caught 
FaultMessage1'</from>
+                                                       <to variable="reply2" 
part="replyText"/>
+                                               </copy>
+                                       </assign>
+                                       <throw faultName="tns:fault"/>
+                               </sequence>
+                       </catch>
+               </invoke>
+               <reply name="reply" partnerLink="request" 
portType="wns:testImplicitFaultHandlerPT" operation="request" 
variable="reply2"> </reply>
+       </sequence>
+
+</process>

Added: 
incubator/ode/trunk/bpel-test/src/test/resources/bpel/2.0/TestImplicitFaultHandler/TestImplicitFaultHandler.wsdl
URL: 
http://svn.apache.org/viewvc/incubator/ode/trunk/bpel-test/src/test/resources/bpel/2.0/TestImplicitFaultHandler/TestImplicitFaultHandler.wsdl?view=auto&rev=468835
==============================================================================
--- 
incubator/ode/trunk/bpel-test/src/test/resources/bpel/2.0/TestImplicitFaultHandler/TestImplicitFaultHandler.wsdl
 (added)
+++ 
incubator/ode/trunk/bpel-test/src/test/resources/bpel/2.0/TestImplicitFaultHandler/TestImplicitFaultHandler.wsdl
 Sat Oct 28 22:24:57 2006
@@ -0,0 +1,61 @@
+<!--
+  ~ 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.
+-->
+
+<wsdl:definitions 
+  targetNamespace="http://ode/bpel/unit-test/testImplicitFaultHandler.wsdl";
+  xmlns:tns="http://ode/bpel/unit-test/testImplicitFaultHandler.wsdl";
+  xmlns:prb="http://ode/bpel/unit-test/ProbeService.wsdl";
+  xmlns:flt="http://ode/bpel/unit-test/FaultService.wsdl";
+  xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/";
+  xmlns:plnk="http://schemas.xmlsoap.org/ws/2004/03/partner-link/";      
+  xmlns:xsd="http://www.w3.org/2001/XMLSchema";
+  xmlns:bpws="http://schemas.xmlsoap.org/ws/2004/03/business-process/";>
+
+  
+  <wsdl:message name="requestMessage">
+    <wsdl:part name="requestID" type="xsd:string"/>
+    <wsdl:part name="requestText" type="xsd:string"/>
+    <wsdl:part name="faultIndicator1" type="xsd:string"/>
+    <wsdl:part name="faultIndicator2" type="xsd:string"/>
+  </wsdl:message>
+   
+  <wsdl:message name="replyMessage">
+    <wsdl:part name="replyText" type="xsd:string"/>
+  </wsdl:message>
+
+  <wsdl:portType name="testImplicitFaultHandlerPT">
+    <wsdl:operation name="request">
+      <wsdl:input message="tns:requestMessage"/>
+      <wsdl:output message="tns:replyMessage"></wsdl:output>
+    </wsdl:operation>
+  </wsdl:portType>
+
+  <plnk:partnerLinkType name="testImplicitFaultHandlerRequest">
+    <plnk:role name="testImplicitFaultHandlerService" 
portType="tns:testImplicitFaultHandlerPT"/>
+  </plnk:partnerLinkType>
+  
+  <plnk:partnerLinkType name="probeRequest">
+    <plnk:role name="probeService" portType="prb:probeMessagePT"/>
+  </plnk:partnerLinkType>
+  
+  <plnk:partnerLinkType name="faultRequest">
+    <plnk:role name="faultService" portType="flt:faultMessagePT"/>
+  </plnk:partnerLinkType>
+
+</wsdl:definitions>

Added: 
incubator/ode/trunk/bpel-test/src/test/resources/bpel/2.0/TestImplicitFaultHandler/data.txt
URL: 
http://svn.apache.org/viewvc/incubator/ode/trunk/bpel-test/src/test/resources/bpel/2.0/TestImplicitFaultHandler/data.txt?view=auto&rev=468835
==============================================================================
--- 
incubator/ode/trunk/bpel-test/src/test/resources/bpel/2.0/TestImplicitFaultHandler/data.txt
 (added)
+++ 
incubator/ode/trunk/bpel-test/src/test/resources/bpel/2.0/TestImplicitFaultHandler/data.txt
 Sat Oct 28 22:24:57 2006
@@ -0,0 +1,7 @@
+target.name.space=urn:sybase:bpel:faultCompHandlerInInvokeProcessing
+port.type=faultCompHandlerInInvokePT
+operation=request
+
+part1=xml.requestMessageData
+
+xml.requestMessageData=<testMessage><wait>PT7S</wait><onAlarm>PT3S</onAlarm></testMessage>

Added: 
incubator/ode/trunk/bpel-test/src/test/resources/bpel/2.0/TestImplicitFaultHandler/deploy.xml
URL: 
http://svn.apache.org/viewvc/incubator/ode/trunk/bpel-test/src/test/resources/bpel/2.0/TestImplicitFaultHandler/deploy.xml?view=auto&rev=468835
==============================================================================
--- 
incubator/ode/trunk/bpel-test/src/test/resources/bpel/2.0/TestImplicitFaultHandler/deploy.xml
 (added)
+++ 
incubator/ode/trunk/bpel-test/src/test/resources/bpel/2.0/TestImplicitFaultHandler/deploy.xml
 Sat Oct 28 22:24:57 2006
@@ -0,0 +1,31 @@
+
+<!--
+       ~ 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.
+-->
+<deploy xmlns="http://ode.fivesight.com/schemas/2006/06/27/dd"; 
+       xmlns:pns="http://ode/bpel/unit-test/testImplicitFaultHandler"; 
+       xmlns:wns="http://ode/bpel/unit-test/testImplicitFaultHandler.wsdl";>
+
+
+       <process name="pns:testImplicitFaultHandler">
+               <active>true</active>
+               <provide partnerLink="request">
+                       <service name="wns:testImplicitFaultHandlerService" 
port="wns:testImplicitFaultHandlerPort"/>
+               </provide>
+       </process>
+</deploy>

Added: 
incubator/ode/trunk/bpel-test/src/test/resources/bpel/2.0/TestImplicitFaultHandler/test.properties
URL: 
http://svn.apache.org/viewvc/incubator/ode/trunk/bpel-test/src/test/resources/bpel/2.0/TestImplicitFaultHandler/test.properties?view=auto&rev=468835
==============================================================================
--- 
incubator/ode/trunk/bpel-test/src/test/resources/bpel/2.0/TestImplicitFaultHandler/test.properties
 (added)
+++ 
incubator/ode/trunk/bpel-test/src/test/resources/bpel/2.0/TestImplicitFaultHandler/test.properties
 Sat Oct 28 22:24:57 2006
@@ -0,0 +1,5 @@
+namespace=http://ode/bpel/unit-test/testImplicitFaultHandler.wsdl
+service=testImplicitFaultHandlerService
+operation=request
+request1=<message><requestID>Start 
TestImplicitFaultHandler</requestID><requestText>Event 
TestImplicitFaultHandler</requestText><faultIndicator1>yes</faultIndicator1><faultIndicator2>no</faultIndicator2></message>
+response1=.*Event TestFaultWithVariable1 -&gt; caught FaultMessage1 -&gt; 
Event TestFaultWithVariable1 -&gt; process complete.*


Reply via email to