Author: lwaterman
Date: Wed Sep 20 22:02:05 2006
New Revision: 448461

URL: http://svn.apache.org/viewvc?view=rev&rev=448461
Log:
Add Tests

Added:
    
incubator/ode/trunk/bpel-test/src/test/resources/bpel/2.0/TestCompensationHandlers/
    
incubator/ode/trunk/bpel-test/src/test/resources/bpel/2.0/TestCompensationHandlers/deploy.xml
    
incubator/ode/trunk/bpel-test/src/test/resources/bpel/2.0/TestCompensationHandlers/test.properties
    
incubator/ode/trunk/bpel-test/src/test/resources/bpel/2.0/TestCompensationHandlers/testCompensationHandlers.bpel
    
incubator/ode/trunk/bpel-test/src/test/resources/bpel/2.0/TestCompensationHandlers/testCompensationHandlers.wsdl
    incubator/ode/trunk/bpel-test/src/test/resources/bpel/2.0/TestCorrelation/
    
incubator/ode/trunk/bpel-test/src/test/resources/bpel/2.0/TestCorrelation/data5_1_1.txt
    
incubator/ode/trunk/bpel-test/src/test/resources/bpel/2.0/TestCorrelation/data5_1_2.txt
    
incubator/ode/trunk/bpel-test/src/test/resources/bpel/2.0/TestCorrelation/deploy.xml
    
incubator/ode/trunk/bpel-test/src/test/resources/bpel/2.0/TestCorrelation/test.properties
    
incubator/ode/trunk/bpel-test/src/test/resources/bpel/2.0/TestCorrelation/testCorrelation.bpel
    
incubator/ode/trunk/bpel-test/src/test/resources/bpel/2.0/TestCorrelation/testCorrelation.wsdl
    incubator/ode/trunk/bpel-test/src/test/resources/bpel/2.0/TestTimer/
    
incubator/ode/trunk/bpel-test/src/test/resources/bpel/2.0/TestTimer/TestTimer.bpel
    
incubator/ode/trunk/bpel-test/src/test/resources/bpel/2.0/TestTimer/TestTimer.wsdl
    
incubator/ode/trunk/bpel-test/src/test/resources/bpel/2.0/TestTimer/deploy.xml
    
incubator/ode/trunk/bpel-test/src/test/resources/bpel/2.0/TestTimer/test.properties
Modified:
    
incubator/ode/trunk/bpel-test/src/test/resources/bpel/2.0/TestFlowActivity/TestActivityFlow.wsdl

Added: 
incubator/ode/trunk/bpel-test/src/test/resources/bpel/2.0/TestCompensationHandlers/deploy.xml
URL: 
http://svn.apache.org/viewvc/incubator/ode/trunk/bpel-test/src/test/resources/bpel/2.0/TestCompensationHandlers/deploy.xml?view=auto&rev=448461
==============================================================================
--- 
incubator/ode/trunk/bpel-test/src/test/resources/bpel/2.0/TestCompensationHandlers/deploy.xml
 (added)
+++ 
incubator/ode/trunk/bpel-test/src/test/resources/bpel/2.0/TestCompensationHandlers/deploy.xml
 Wed Sep 20 22:02:05 2006
@@ -0,0 +1,12 @@
+<deploy xmlns="http://ode.fivesight.com/schemas/2006/06/27/dd"; 
+       xmlns:pns="http://ode/bpel/unit-test/testCompensationHandlers"; 
+       xmlns:wns="http://ode/bpel/unit-test/testCompensationHandlers.wsdl";>
+
+
+       <process name="pns:TestCompensationHandlersProcess">
+               <active>true</active>
+               <provide partnerLink="request">
+                       <service name="wns:testCompensationHandlersService" 
port="wns:testCompensationHandlersPort"/>
+               </provide>
+       </process>
+</deploy>

Added: 
incubator/ode/trunk/bpel-test/src/test/resources/bpel/2.0/TestCompensationHandlers/test.properties
URL: 
http://svn.apache.org/viewvc/incubator/ode/trunk/bpel-test/src/test/resources/bpel/2.0/TestCompensationHandlers/test.properties?view=auto&rev=448461
==============================================================================
--- 
incubator/ode/trunk/bpel-test/src/test/resources/bpel/2.0/TestCompensationHandlers/test.properties
 (added)
+++ 
incubator/ode/trunk/bpel-test/src/test/resources/bpel/2.0/TestCompensationHandlers/test.properties
 Wed Sep 20 22:02:05 2006
@@ -0,0 +1,7 @@
+namespace=http://ode/bpel/unit-test/testCompensationHandlers.wsdl
+service=testCompensationHandlersService
+operation=request
+request1=<message><requestID>Start Test3.1</requestID><requestText>Event Start 
Test3.1</requestText><faultIndicator1>yes</faultIndicator1><faultIndicator2>no</faultIndicator2></message>
+response1=.*Event Start Test3.1 -&gt; throw testFault -&gt; caught testFault 
-&gt; process complete.*
+request2=<message><requestID>Start Test3.2</requestID><requestText>Event Start 
Test3.2</requestText><faultIndicator1>no</faultIndicator1><faultIndicator2>yes</faultIndicator2></message>
+response2=.*Event Start Test2.2 -&gt; throw unknown fault -&gt; caught fault 
with catchAll.*

Added: 
incubator/ode/trunk/bpel-test/src/test/resources/bpel/2.0/TestCompensationHandlers/testCompensationHandlers.bpel
URL: 
http://svn.apache.org/viewvc/incubator/ode/trunk/bpel-test/src/test/resources/bpel/2.0/TestCompensationHandlers/testCompensationHandlers.bpel?view=auto&rev=448461
==============================================================================
--- 
incubator/ode/trunk/bpel-test/src/test/resources/bpel/2.0/TestCompensationHandlers/testCompensationHandlers.bpel
 (added)
+++ 
incubator/ode/trunk/bpel-test/src/test/resources/bpel/2.0/TestCompensationHandlers/testCompensationHandlers.bpel
 Wed Sep 20 22:02:05 2006
@@ -0,0 +1,229 @@
+<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/testCompensationHandlers";
+ xmlns:prb="http://ode/bpel/unit-test/ProbeService.wsdl";
+ xmlns:wns="http://ode/bpel/unit-test/testCompensationHandlers.wsdl";
+ xmlns="http://schemas.xmlsoap.org/ws/2004/03/business-process/";
+ name="TestCompensationProcess"
+ targetNamespace="http://ode/bpel/unit-test/testCompensationHandlers";
+ queryLanguage="urn:oasis:names:tc:wsbpel:2.0:sublang:xpath2.0"
+ expressionLanguage="urn:oasis:names:tc:wsbpel:2.0:sublang:xpath2.0"
+ suppressJoinFailure="yes">
+ 
+       <import location="testCompensationHandlers.wsdl"
+               
namespace="http://ode/bpel/unit-test/testCompensationHandlers.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/"/>

+

+<!-- Unit test compensation handlers   -->

+<!--   compensate                                              -->

+<!--   compensationHandler                     -->

+<!--   scope                                                   -->

+

+  <partnerLinks>

+       <partnerLink name="request" 
partnerLinkType="wns:testCompensationHandlersRequest" 
myRole="testCompensationHandlersService"/>

+       <partnerLink name="probe" partnerLinkType="wns:probeRequest" 
partnerRole="probeService" initializePartnerRole="yes"/>

+  </partnerLinks>

+

+  <variables>

+    <variable name="probeInput" 

+               messageType="prb:probeMessage"/>

+    <variable name="reply" 

+               messageType="wns:replyMessage"/>

+  </variables>

+

+  <sequence>

+

+       <scope name="ScopeOne">

+

+       <variables>

+               <variable name="request" 

+               messageType="wns:requestMessage"/>

+       </variables>

+

+       <faultHandlers>

+               <catch faultName="tns:testFault">

+                       <sequence>

+                                         <assign>

+                                       <copy>
+                                               <from>
+                                                       
<literal><![CDATA[caught testFault]]></literal>
+                                               </from>

+                                               <to variable="probeInput" 
part="probeName"/>

+                                       </copy>

+                                         </assign> 

+                                       <invoke name="testFaultProbe" 
partnerLink="probe" 

+                                       portType="prb:probeMessagePT" 

+                                       operation="probe"

+                                       inputVariable="probeInput"  

+                                       outputVariable="probeInput">

+                                       </invoke>

+                       </sequence>

+               </catch>

+
+

+               <catchAll>

+                       <compensate scope="tns:ScopeTwo"/>
+               </catchAll>

+
+               

+

+       </faultHandlers>

+

+        <sequence>

+         <scope name="ScopeTwo">

+

+         <compensationHandler>

+                       <sequence>

+                                         <assign>

+                                       <copy>
+                                               <from>
+                                                       <literal><![CDATA[fire 
compenstation handler]]></literal>
+                                               </from>

+                                               <to variable="probeInput" 
part="probeName"/>

+                                       </copy>

+                                         </assign> 

+                                       <invoke name="compProbe" 
partnerLink="probe" 

+                                       portType="prb:probeMessagePT" 

+                                       operation="probe"

+                                       inputVariable="probeInput"  

+                                       outputVariable="probeInput">

+                                       </invoke>

+    

+

+               <!-- Note: variables within a compensation handler are only 
visible to the handler. To validate -->

+               <!-- the comp handler set logger 
com.sybase.bpe.action.external.ProbeAction.level = FINE -->

+               <!-- Expected log msg: ""-->

+

+          </sequence>

+         </compensationHandler>

+

+         <sequence>        

+           <receive name="receive1" partnerLink="request"

+               portType="wns:testCompensationHandlersPT" 

+                    operation="request" variable="request"

+                    createInstance="yes">

+           </receive>

+       

+               <!-- Copy input variables to internal accumulators -->

+        

+           <assign name="assign1">

+             <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>   

+       

+

+         </sequence>

+      </scope>

+

+               <!-- Note: the probeInput variable is updated after scope one 
has closed -->

+               <!-- therefore it should not show up in the log message for the 
compensation probe -->

+               <assign>

+               <copy>
+                       <from>
+                               <literal><![CDATA[begin fault test]]></literal>
+                       </from>

+                       <to variable="probeInput" part="probeName"/>

+               </copy>

+               </assign> 

+

+           <invoke name="probe2" partnerLink="probe"

+                   portType="prb:probeMessagePT" 

+                   operation="probe"

+                   inputVariable="probeInput"  

+                   outputVariable="probeInput">

+           </invoke>

+

+         <if>
+               <condition>$request.faultIndictor1 = 'yes'</condition>

+               <then>

+                       <sequence>

+                               <assign>

+                                       <copy>
+                                               <from>
+                                                       <literal><![CDATA[throw 
testFault]]></literal>
+                                               </from>

+                                               <to variable="probeInput" 
part="probeName"/>

+                                       </copy>

+                               </assign> 

+                       <invoke name="probe1" partnerLink="probe" 

+                                       portType="prb:probeMessagePT" 

+                                       operation="probe"

+                                       inputVariable="probeInput"  

+                                       outputVariable="probeInput">

+                       </invoke>

+                               <throw faultName="tns:testFault"/>

+                       </sequence>

+               </then>
+               <elseif>
+                       <condition>$request.faultIndicator2 = 'yes'</condition>
+                       <sequence>
+                               <assign>
+                                       <copy>
+                                               <from>
+                                                       <literal><![CDATA[throw 
unknown fault]]></literal>
+                                               </from>
+                                               <to variable="probeInput" 
part="probeName"/>
+                                       </copy>
+                               </assign> 
+                               <invoke name="probe1" partnerLink="probe" 
+                                       portType="prb:probeMessagePT" 
+                                       operation="probe"
+                                       inputVariable="probeInput"  
+                                       outputVariable="probeInput">
+                               </invoke>
+                               
+                               <throw faultName="tns:unknownFault"/>
+                       </sequence>
+               </elseif>

+       </if>

+

+

+       </sequence>

+       </scope>

+

+                               <assign>

+                                       <copy>
+                                               <from>
+                                                       
<literal><![CDATA[process complete]]></literal>
+                                               </from>

+                                               <to variable="probeInput" 
part="probeName"/>

+                                       </copy>

+                               </assign> 

+

+       <invoke name="probe2" partnerLink="probe"

+                   portType="prb:probeMessagePT" 

+                   operation="probe"

+                   inputVariable="probeInput"  

+                   outputVariable="probeInput">

+       </invoke>

+

+

+         <!-- copy internal accumulators to the reply message -->

+

+         <assign name="assign2">

+             <copy>

+               <from variable="probeInput" part="probeName"/>

+               <to variable="reply" part="replyID"/>

+             </copy>

+             <copy>

+               <from variable="probeInput" part="probeData"/>

+               <to variable="reply" part="replyText"/>

+             </copy>

+         </assign> 

+           

+       <reply name="reply" partnerLink="request" 
portType="wns:testCompensationHandlersPT" 

+                  operation="request" variable="reply"> 

+         </reply>

+

+  

+  </sequence>

+</process>


Added: 
incubator/ode/trunk/bpel-test/src/test/resources/bpel/2.0/TestCompensationHandlers/testCompensationHandlers.wsdl
URL: 
http://svn.apache.org/viewvc/incubator/ode/trunk/bpel-test/src/test/resources/bpel/2.0/TestCompensationHandlers/testCompensationHandlers.wsdl?view=auto&rev=448461
==============================================================================
--- 
incubator/ode/trunk/bpel-test/src/test/resources/bpel/2.0/TestCompensationHandlers/testCompensationHandlers.wsdl
 (added)
+++ 
incubator/ode/trunk/bpel-test/src/test/resources/bpel/2.0/TestCompensationHandlers/testCompensationHandlers.wsdl
 Wed Sep 20 22:02:05 2006
@@ -0,0 +1,50 @@
+<!-- The public service interface for test3.bpel -->

+

+<wsdl:definitions 

+   targetNamespace="http://ode/bpel/unit-test/testCompensationHandlers.wsdl";

+   xmlns="http://ode/bpel/unit-test/testCompensationHandlers.wsdl";

+   xmlns:tns="http://ode/bpel/unit-test/testCompensationHandlers.wsdl";

+   xmlns:plnk="http://schemas.xmlsoap.org/ws/2004/03/partner-link/";      

+      xmlns:xsd="http://www.w3.org/2001/XMLSchema";

+   xmlns:prb="http://ode/bpel/unit-test/ProbeService.wsdl";

+   xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/";>

+

+   <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="replyID" type="xsd:string"/>

+      <wsdl:part name="replyText" type="xsd:string"/>

+   </wsdl:message>

+

+   <!-- portType supported by the test2 process -->

+

+   <wsdl:portType name="testCompensationHandlersPT">

+      <wsdl:operation name="request">

+         <wsdl:input message="requestMessage"/>

+         <wsdl:output message="replyMessage"/>

+         </wsdl:operation>

+   </wsdl:portType>

+   

+   <wsdl:binding name="testCompensationHandlersBinding" 
type="tns:testCompensationHandlersPT">

+      <wsdl:operation name="request">

+      </wsdl:operation>

+   </wsdl:binding>

+   <wsdl:service name="testCompensationHandlersService">

+      <wsdl:port name="testCompensationHandlersPort" 
binding="tns:testCompensationHandlersBinding">

+      </wsdl:port>

+   </wsdl:service>

+

+   <plnk:partnerLinkType name="testCompensationHandlersRequest">

+      <plnk:role name="testCompensationHandlersService" 
portType="testCompensationHandlersPT"/>

+   </plnk:partnerLinkType>

+

+   <plnk:partnerLinkType name="probeRequest">

+      <plnk:role name="probeService" portType="prb:probeMessagePT"/>

+   </plnk:partnerLinkType>

+

+</wsdl:definitions>


Added: 
incubator/ode/trunk/bpel-test/src/test/resources/bpel/2.0/TestCorrelation/data5_1_1.txt
URL: 
http://svn.apache.org/viewvc/incubator/ode/trunk/bpel-test/src/test/resources/bpel/2.0/TestCorrelation/data5_1_1.txt?view=auto&rev=448461
==============================================================================
--- 
incubator/ode/trunk/bpel-test/src/test/resources/bpel/2.0/TestCorrelation/data5_1_1.txt
 (added)
+++ 
incubator/ode/trunk/bpel-test/src/test/resources/bpel/2.0/TestCorrelation/data5_1_1.txt
 Wed Sep 20 22:02:05 2006
@@ -0,0 +1,15 @@
+# Test BPEL correlated receive

+# Message one starts the process and message two will cause the process to 
complete.

+# Message one and Message two will be the same data file.

+# Expected result = 

+

+# Note the prefix on the part name identifies the message type ( xml = xml 
data; str = string data )

+

+target.name.space=urn:sybase:bpel:test5Processing

+port.type=test5PT

+operation=request

+

+part1=xml.requestMessageData

+

+xml.requestMessageData=<testMessage><requestID>Start 
Test5.1</requestID><requestText>Event Start 
Test5.1</requestText><requestEnd>no</requestEnd></testMessage>

+


Added: 
incubator/ode/trunk/bpel-test/src/test/resources/bpel/2.0/TestCorrelation/data5_1_2.txt
URL: 
http://svn.apache.org/viewvc/incubator/ode/trunk/bpel-test/src/test/resources/bpel/2.0/TestCorrelation/data5_1_2.txt?view=auto&rev=448461
==============================================================================
--- 
incubator/ode/trunk/bpel-test/src/test/resources/bpel/2.0/TestCorrelation/data5_1_2.txt
 (added)
+++ 
incubator/ode/trunk/bpel-test/src/test/resources/bpel/2.0/TestCorrelation/data5_1_2.txt
 Wed Sep 20 22:02:05 2006
@@ -0,0 +1,13 @@
+# Test BPEL correlated receive

+# Message one starts the process and message two will cause the process to 
complete.

+# Message one and Message two will be the same data file.

+# Expected result = Event Start Test5.1 -> loop on receive until message 
includes requestEnd = yes -> received message -> received message -> process 
complete

+

+target.name.space=urn:sybase:bpel:test5Processing

+port.type=test5PT

+operation=request

+

+part1=xml.requestMessageData

+

+xml.requestMessageData=<testMessage><requestID>Start 
Test5.1</requestID><requestText>Event Start 
Test5.2.1</requestText><requestEnd>yes</requestEnd></testMessage>

+


Added: 
incubator/ode/trunk/bpel-test/src/test/resources/bpel/2.0/TestCorrelation/deploy.xml
URL: 
http://svn.apache.org/viewvc/incubator/ode/trunk/bpel-test/src/test/resources/bpel/2.0/TestCorrelation/deploy.xml?view=auto&rev=448461
==============================================================================
--- 
incubator/ode/trunk/bpel-test/src/test/resources/bpel/2.0/TestCorrelation/deploy.xml
 (added)
+++ 
incubator/ode/trunk/bpel-test/src/test/resources/bpel/2.0/TestCorrelation/deploy.xml
 Wed Sep 20 22:02:05 2006
@@ -0,0 +1,12 @@
+<deploy xmlns="http://ode.fivesight.com/schemas/2006/06/27/dd"; 
+       xmlns:pns="http://ode/bpel/unit-test/testCorrelation"; 
+       xmlns:wns="http://ode/bpel/unit-test/testCorrelation.wsdl";>
+
+
+       <process name="pns:TestCorrelationProcess">
+               <active>true</active>
+               <provide partnerLink="request">
+                       <service name="wns:testCorrelationService" 
port="wns:testCorrelationPort"/>
+               </provide>
+       </process>
+</deploy>

Added: 
incubator/ode/trunk/bpel-test/src/test/resources/bpel/2.0/TestCorrelation/test.properties
URL: 
http://svn.apache.org/viewvc/incubator/ode/trunk/bpel-test/src/test/resources/bpel/2.0/TestCorrelation/test.properties?view=auto&rev=448461
==============================================================================
--- 
incubator/ode/trunk/bpel-test/src/test/resources/bpel/2.0/TestCorrelation/test.properties
 (added)
+++ 
incubator/ode/trunk/bpel-test/src/test/resources/bpel/2.0/TestCorrelation/test.properties
 Wed Sep 20 22:02:05 2006
@@ -0,0 +1,7 @@
+namespace=http://ode/bpel/unit-test/testCorrelation.wsdl
+service=testCorrelationService
+operation=request
+request1=<message><requestMessageData><testMessage><requestID>Start 
Test5.1</requestID><requestText>Event Start 
Test5.1</requestText><requestEnd>no</requestEnd></testMessage></requestMessageData></message>
+response1=.*test.*
+request2=<message><requestMessageData><testMessage><requestID>Start 
Test5.1</requestID><requestText>Event Start 
Test5.2.1</requestText><requestEnd>yes</requestEnd></testMessage></requestMessageData></message>
+response2=.*test.*

Added: 
incubator/ode/trunk/bpel-test/src/test/resources/bpel/2.0/TestCorrelation/testCorrelation.bpel
URL: 
http://svn.apache.org/viewvc/incubator/ode/trunk/bpel-test/src/test/resources/bpel/2.0/TestCorrelation/testCorrelation.bpel?view=auto&rev=448461
==============================================================================
--- 
incubator/ode/trunk/bpel-test/src/test/resources/bpel/2.0/TestCorrelation/testCorrelation.bpel
 (added)
+++ 
incubator/ode/trunk/bpel-test/src/test/resources/bpel/2.0/TestCorrelation/testCorrelation.bpel
 Wed Sep 20 22:02:05 2006
@@ -0,0 +1,98 @@
+<process xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"; 
xsi:schemaLocation="http://schemas.xmlsoap.org/ws/2004/03/business-process/ 
../xsd/wsbpel_main-2005-12-22.xsd"
+       xmlns:tns="http://ode/bpel/unit-test/testCorrelation";
+       xmlns:wns="http://ode/bpel/unit-test/testCorrelation.wsdl";
+       xmlns:prb="http://ode/bpel/unit-test/ProbeService.wsdl";
+       xmlns="http://schemas.xmlsoap.org/ws/2004/03/business-process/";
+       name="TestCorrelationProcess"
+       targetNamespace="http://ode/bpel/unit-test/testCorrelation";
+       queryLanguage="urn:oasis:names:tc:wsbpel:2.0:sublang:xpath2.0"
+       expressionLanguage="urn:oasis:names:tc:wsbpel:2.0:sublang:xpath2.0"
+       suppressJoinFailure="yes">
+       
+       <import location="testCorrelation.wsdl"
+               namespace="http://ode/bpel/unit-test/testCorrelation.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/"/>
+       
+       <!-- test correlated receive -->
+       <partnerLinks>
+               <partnerLink name="request" 
partnerLinkType="wns:testCorrelationRequest" myRole="testCorrelationService"/>
+               <partnerLink name="probe" partnerLinkType="wns:probeRequest" 
partnerRole="probeService" initializePartnerRole="yes"/>
+       </partnerLinks>
+       <variables>
+               <variable name="request" messageType="wns:requestMessage"/>
+               <variable name="probeInput" messageType="prb:probeMessage"/>
+               <variable name="reply" messageType="wns:replyMessage"/>
+       </variables>
+       <correlationSets>
+               <correlationSet name="testCorr1" properties="wns:testProbeID"/>
+       </correlationSets>
+       <sequence>
+               <receive name="receive1" partnerLink="request" 
portType="wns:testCorrelationPT" operation="request" variable="request" 
createInstance="yes">
+                       <correlations>
+                               <correlation set="testCorr1" initiate="yes"/>
+                       </correlations>
+               </receive>
+               <!-- Copy input variables to internal accumulators -->
+               <assign name="assign1">
+                       <copy>
+                               <from variable="request" 
property="wns:testProbeID"/>
+                               <to variable="probeInput" part="probeName"/>
+                       </copy>
+                       <copy>
+                               <from variable="request" 
property="wns:testProbeData"/>
+                               <to variable="probeInput" part="probeData"/>
+                       </copy>
+               </assign>
+               <assign>
+                       <copy>
+                               <from>
+                                       <literal><![CDATA[loop on receive until 
message includes requestEnd = yes]]></literal>
+                               </from>
+                               <to variable="probeInput" part="probeName"/>
+                       </copy>
+               </assign>
+               <invoke name="probe" partnerLink="probe" 
portType="prb:probeMessagePT" operation="probe" inputVariable="probeInput" 
outputVariable="probeInput"> </invoke>
+               <while>
+                       <condition>$request.requestMessageData/requestEnd = 
'no'</condition>
+                       <sequence>
+                               <receive name="receive2" partnerLink="request" 
portType="wns:testCorrelationPT" operation="continue" variable="request">
+                                       <correlations>
+                                               <correlation set="testCorr1"/>
+                                       </correlations>
+                               </receive>
+                               <assign>
+                                       <copy>
+                                               <from>
+                                                       
<literal><![CDATA[received message]]></literal>
+                                               </from>
+                                               <to variable="probeInput" 
part="probeName"/>
+                                       </copy>
+                               </assign>
+                               <invoke name="probe" partnerLink="probe" 
portType="prb:probeMessagePT" operation="probe" inputVariable="probeInput" 
outputVariable="probeInput"> </invoke>
+                       </sequence>
+               </while>
+               <assign>
+                       <copy>
+                               <from>
+                                       <literal><![CDATA[process 
complete]]></literal>
+                               </from>
+                               <to variable="probeInput" part="probeName"/>
+                       </copy>
+               </assign>
+               <invoke name="probe" partnerLink="probe" 
portType="prb:probeMessagePT" operation="probe" inputVariable="probeInput" 
outputVariable="probeInput"> </invoke>
+               <assign name="assign2">
+                       <copy>
+                               <from variable="probeInput" part="probeName"/>
+                               <to variable="reply" part="replyID"/>
+                       </copy>
+                       <copy>
+                               <from variable="probeInput" part="probeData"/>
+                               <to variable="reply" part="replyText"/>
+                       </copy>
+               </assign>
+               <reply name="reply" partnerLink="request" 
portType="wns:testCorrelationPT" operation="request" variable="reply"> </reply>
+       </sequence>
+</process>


Added: 
incubator/ode/trunk/bpel-test/src/test/resources/bpel/2.0/TestCorrelation/testCorrelation.wsdl
URL: 
http://svn.apache.org/viewvc/incubator/ode/trunk/bpel-test/src/test/resources/bpel/2.0/TestCorrelation/testCorrelation.wsdl?view=auto&rev=448461
==============================================================================
--- 
incubator/ode/trunk/bpel-test/src/test/resources/bpel/2.0/TestCorrelation/testCorrelation.wsdl
 (added)
+++ 
incubator/ode/trunk/bpel-test/src/test/resources/bpel/2.0/TestCorrelation/testCorrelation.wsdl
 Wed Sep 20 22:02:05 2006
@@ -0,0 +1,86 @@
+

+<wsdl:definitions 

+  targetNamespace="http://ode/bpel/unit-test/testCorrelation.wsdl";

+  xmlns:tns="http://ode/bpel/unit-test/testCorrelation.wsdl";

+  xmlns:typens="http://ode/bpel/unit-test/testCorrelation.wsdl.types";

+  xmlns="http://ode/bpel/unit-test/testCorrelation.wsdl";

+  xmlns:plnk="http://schemas.xmlsoap.org/ws/2004/03/partner-link/";      

+  xmlns:xsd="http://www.w3.org/2001/XMLSchema";

+  xmlns:prb="http://ode/bpel/unit-test/ProbeService.wsdl";

+  xmlns:bpws="http://schemas.xmlsoap.org/ws/2004/03/business-process/";

+  xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/";>

+    

+

+  <!-- type defs -->

+  <wsdl:types>

+    <xsd:schema

+      targetNamespace="http://ode/bpel/unit-test/testCorrelation.wsdl.types";

+                xmlns:xsd="http://www.w3.org/2001/XMLSchema";>

+

+      <xsd:complexType name="testMessage">

+        <xsd:sequence>

+          <xsd:element name="requestID" type="xsd:string"/>

+          <xsd:element name="requestText" type="xsd:string"/>

+           <xsd:element name="requestEnd" type="xsd:string"/>

+        </xsd:sequence>

+      </xsd:complexType>

+   </xsd:schema>

+  </wsdl:types>

+

+

+  <wsdl:message name="requestMessage">

+    <wsdl:part name="requestMessageData" type="typens:testMessage"/>

+  </wsdl:message>

+   

+  <wsdl:message name="replyMessage">

+    <wsdl:part name="replyID" type="xsd:string"/>

+    <wsdl:part name="replyText" type="xsd:string"/>

+  </wsdl:message>

+

+   <!-- portType supported by the test2 process -->

+

+  <wsdl:portType name="testCorrelationPT">

+    <wsdl:operation name="request">

+      <wsdl:input message="requestMessage"/>

+      <wsdl:output message="replyMessage"/>

+    </wsdl:operation>

+    <wsdl:operation name="continue">

+      <wsdl:input message="requestMessage"/>

+      <wsdl:output message="replyMessage"/>

+    </wsdl:operation>

+  </wsdl:portType>

+  

+  <wsdl:binding name="TestCorrelationBinding" type="tns:testCorrelationPT">

+    <wsdl:operation name="request">

+    </wsdl:operation>

+    <wsdl:operation name="continue">

+    </wsdl:operation>

+  </wsdl:binding>

+  <wsdl:service name="TestCorrelationService">

+    <wsdl:port name="TestCorrelationPort" binding="tns:TestCorrelationBinding">

+    </wsdl:port>

+  </wsdl:service>

+

+   <plnk:partnerLinkType name="testCorrelationRequest">

+       <plnk:role name="testCorrelationService" portType="testCorrelationPT"/>

+   </plnk:partnerLinkType>

+

+   <plnk:partnerLinkType name="probeRequest">

+       <plnk:role name="probeService" portType="prb:probeMessagePT"/>

+   </plnk:partnerLinkType>

+

+  <bpws:property name="testProbeID" type="xsd:string"/>

+  <bpws:propertyAlias propertyName="tns:testProbeID" 
messageType="tns:requestMessage" part="requestMessageData">
+    <bpws:query queryLanguage="urn:oasis:names:tc:wsbpel:2.0:sublang:xpath2.0">

+      testMessage/requestID

+    </bpws:query>
+  </bpws:propertyAlias>

+  

+  <bpws:property name="testProbeData" type="xsd:string"/>

+  <bpws:propertyAlias propertyName="tns:testProbeData" 
messageType="tns:requestMessage" part="requestMessageData">
+    <bpws:query queryLanguage="urn:oasis:names:tc:wsbpel:2.0:sublang:xpath2.0">

+      testMessage/requestText

+    </bpws:query>    
+  </bpws:propertyAlias>

+

+</wsdl:definitions>


Modified: 
incubator/ode/trunk/bpel-test/src/test/resources/bpel/2.0/TestFlowActivity/TestActivityFlow.wsdl
URL: 
http://svn.apache.org/viewvc/incubator/ode/trunk/bpel-test/src/test/resources/bpel/2.0/TestFlowActivity/TestActivityFlow.wsdl?view=diff&rev=448461&r1=448460&r2=448461
==============================================================================
--- 
incubator/ode/trunk/bpel-test/src/test/resources/bpel/2.0/TestFlowActivity/TestActivityFlow.wsdl
 (original)
+++ 
incubator/ode/trunk/bpel-test/src/test/resources/bpel/2.0/TestFlowActivity/TestActivityFlow.wsdl
 Wed Sep 20 22:02:05 2006
@@ -79,7 +79,7 @@
     <bpws:query queryLanguage="urn:oasis:names:tc:wsbpel:2.0:sublang:xpath2.0">

       testMessage/requestText

     </bpws:query>

-  </bpws:propertyAlias>/>

+  </bpws:propertyAlias>

   

   <bpws:property name="testFlow1" type="xsd:boolean"/>

   <bpws:propertyAlias propertyName="tns:testFlow1" 
messageType="tns:requestMessage" part="requestMessageData">

Added: 
incubator/ode/trunk/bpel-test/src/test/resources/bpel/2.0/TestTimer/TestTimer.bpel
URL: 
http://svn.apache.org/viewvc/incubator/ode/trunk/bpel-test/src/test/resources/bpel/2.0/TestTimer/TestTimer.bpel?view=auto&rev=448461
==============================================================================
--- 
incubator/ode/trunk/bpel-test/src/test/resources/bpel/2.0/TestTimer/TestTimer.bpel
 (added)
+++ 
incubator/ode/trunk/bpel-test/src/test/resources/bpel/2.0/TestTimer/TestTimer.bpel
 Wed Sep 20 22:02:05 2006
@@ -0,0 +1,81 @@
+<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/testTimer";
+       xmlns:wns="http://ode/bpel/unit-test/testTimer.wsdl";
+       xmlns:prb="http://ode/bpel/unit-test/ProbeService.wsdl";
+ xmlns="http://schemas.xmlsoap.org/ws/2004/03/business-process/";
+ name="TestTimerProcess"
+       targetNamespace="http://ode/bpel/unit-test/testTimer";
+       queryLanguage="urn:oasis:names:tc:wsbpel:2.0:sublang:xpath2.0"
+       expressionLanguage="urn:oasis:names:tc:wsbpel:2.0:sublang:xpath2.0"
+ suppressJoinFailure="yes">
+ 
+       <import location="TestTimer.wsdl"
+               namespace="http://ode/bpel/unit-test/testTimer.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/"/> 
+ 

+       <!-- Unit test Timer Service Test -->

+       <partnerLinks>

+               <partnerLink name="request" 
partnerLinkType="wns:testTimerRequest" myRole="testTimerService"/>
+               <partnerLink name="probe" partnerLinkType="wns:probeRequest" 
partnerRole="probeService" initializePartnerRole="yes"/>

+       </partnerLinks>
+       

+       <variables>

+               <variable name="request" messageType="wns:requestMessage"/>

+               <variable name="probeInput" messageType="prb:probeMessage"/>

+               <variable name="reply" messageType="wns:replyMessage"/>

+       </variables>

+       <sequence>

+               <receive name="receive1" partnerLink="request" 
portType="wns:testTimerPT" operation="request" variable="request" 
createInstance="yes"/>

+               <!-- Copy input variables to internal accumulators -->

+               <assign name="assign1">

+                       <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="probe1" partnerLink="probe" 
portType="prb:probeMessagePT" operation="probe" inputVariable="probeInput" 
outputVariable="probeInput"/>

+               

+               <wait>
+                       <for>'PT10s'</for>
+               </wait>

+               

+               <invoke name="probe2" partnerLink="probe" 
portType="prb:probeMessagePT" operation="probe" inputVariable="probeInput" 
outputVariable="probeInput"/>

+               

+               <!-- block until request message is sent -->

+               <receive name="receive2" partnerLink="request" 
portType="wns:testTimerPT" operation="continue" variable="request"/>

+               

+               <!-- Copy input variables to internal accumulators -->

+               <assign name="assign2">

+                       <copy>

+                               <from variable="request" part="requestID"/>

+                               <to variable="probeInput" part="probeName"/>

+                       </copy>

+               </assign>

+               

+               <invoke name="probe3" partnerLink="probe" 
portType="prb:probeMessagePT" operation="probe" inputVariable="probeInput" 
outputVariable="probeInput"/>

+               

+               <!-- copy internal accumulators to the reply message -->

+               

+               <assign name="assign3">

+                       <copy>

+                               <from variable="probeInput" part="probeName"/>

+                               <to variable="reply" part="replyID"/>

+                       </copy>

+                       <copy>

+                               <from variable="probeInput" part="probeData"/>

+                               <to variable="reply" part="replyText"/>

+                       </copy>

+               </assign>

+               

+               <reply name="reply" partnerLink="request" 
portType="wns:testTimerPT" operation="request" variable="reply"/>

+       </sequence>

+</process>


Added: 
incubator/ode/trunk/bpel-test/src/test/resources/bpel/2.0/TestTimer/TestTimer.wsdl
URL: 
http://svn.apache.org/viewvc/incubator/ode/trunk/bpel-test/src/test/resources/bpel/2.0/TestTimer/TestTimer.wsdl?view=auto&rev=448461
==============================================================================
--- 
incubator/ode/trunk/bpel-test/src/test/resources/bpel/2.0/TestTimer/TestTimer.wsdl
 (added)
+++ 
incubator/ode/trunk/bpel-test/src/test/resources/bpel/2.0/TestTimer/TestTimer.wsdl
 Wed Sep 20 22:02:05 2006
@@ -0,0 +1,49 @@
+<wsdl:definitions targetNamespace="http://ode/bpel/unit-test/testTimer.wsdl"; 

+          xmlns="http://ode/bpel/unit-test/testTimer.wsdl";

+       xmlns:tns="http://ode/bpel/unit-test/testTimer.wsdl"; 

+       xmlns:plnk="http://schemas.xmlsoap.org/ws/2004/03/partner-link/"; 

+               xmlns:xsd="http://www.w3.org/2001/XMLSchema";

+       xmlns:prb="http://ode/bpel/unit-test/ProbeService.wsdl";

+       xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/";>

+

+       <wsdl:message name="requestMessage">

+               <wsdl:part name="requestID" type="xsd:string"/>

+               <wsdl:part name="requestText" type="xsd:string"/>

+       </wsdl:message>

+

+       <wsdl:message name="replyMessage">

+               <wsdl:part name="replyID" type="xsd:string"/>

+               <wsdl:part name="replyText" type="xsd:string"/>

+       </wsdl:message>

+

+       <!-- portType supported by the test2 process -->

+       <wsdl:portType name="testTimerPT">

+               <wsdl:operation name="request">

+                       <wsdl:input message="requestMessage"/>

+                       <wsdl:output message="replyMessage"/>

+               </wsdl:operation>

+               <wsdl:operation name="continue">
+                       <wsdl:input message="requestMessage"/>

+                       <wsdl:output message="replyMessage"/>                   
+               </wsdl:operation>

+       </wsdl:portType>

+

+       <wsdl:binding name="testTimerBinding" type="tns:testTimerPT">

+               <wsdl:operation name="request">

+               </wsdl:operation>

+               <wsdl:operation name="continue">
+               </wsdl:operation>

+       </wsdl:binding>

+       <wsdl:service name="testTimerService">

+               <wsdl:port name="testTimerPort" binding="tns:testTimerBinding">

+               </wsdl:port>

+       </wsdl:service>

+       

+       <plnk:partnerLinkType name="testTimerRequest">

+               <plnk:role name="testTimerService" portType="testTimerPT"/>

+       </plnk:partnerLinkType>

+

+       <plnk:partnerLinkType name="probeRequest" >

+               <plnk:role name="probeService" portType="prb:probeMessagePT"/>

+       </plnk:partnerLinkType>

+</wsdl:definitions>


Added: 
incubator/ode/trunk/bpel-test/src/test/resources/bpel/2.0/TestTimer/deploy.xml
URL: 
http://svn.apache.org/viewvc/incubator/ode/trunk/bpel-test/src/test/resources/bpel/2.0/TestTimer/deploy.xml?view=auto&rev=448461
==============================================================================
--- 
incubator/ode/trunk/bpel-test/src/test/resources/bpel/2.0/TestTimer/deploy.xml 
(added)
+++ 
incubator/ode/trunk/bpel-test/src/test/resources/bpel/2.0/TestTimer/deploy.xml 
Wed Sep 20 22:02:05 2006
@@ -0,0 +1,12 @@
+<deploy xmlns="http://ode.fivesight.com/schemas/2006/06/27/dd"; 
+       xmlns:pns="http://ode/bpel/unit-test/testTimer"; 
+       xmlns:wns="http://ode/bpel/unit-test/testTimer.wsdl";>
+
+
+       <process name="pns:TestTimerProcess">
+               <active>true</active>
+               <provide partnerLink="request">
+                       <service name="wns:testTimerService" 
port="wns:testTimerPort"/>
+               </provide>
+       </process>
+</deploy>

Added: 
incubator/ode/trunk/bpel-test/src/test/resources/bpel/2.0/TestTimer/test.properties
URL: 
http://svn.apache.org/viewvc/incubator/ode/trunk/bpel-test/src/test/resources/bpel/2.0/TestTimer/test.properties?view=auto&rev=448461
==============================================================================
--- 
incubator/ode/trunk/bpel-test/src/test/resources/bpel/2.0/TestTimer/test.properties
 (added)
+++ 
incubator/ode/trunk/bpel-test/src/test/resources/bpel/2.0/TestTimer/test.properties
 Wed Sep 20 22:02:05 2006
@@ -0,0 +1,7 @@
+namespace=http://ode/bpel/unit-test/testTimer.wsdl
+service=testTimerService
+operation=request
+request1=<message><requestID>Start Test4.1</requestID><requestText>Event Start 
Test4.1</requestText></message>
+response1=.*test.*
+request2=<message><requestID>Start Test4.2</requestID><requestText>Event Start 
Test4.2</requestText></message>
+response2=.*test.*


Reply via email to