Author: lwaterman
Date: Wed Sep 27 07:45:08 2006
New Revision: 450464

URL: http://svn.apache.org/viewvc?view=rev&rev=450464
Log:
Get multi message tests working

Added:
    
incubator/ode/trunk/bpel-test/src/test/resources/bpel/2.0/TestCorrelation/test1.properties
      - copied, changed from r450301, 
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/test2.properties
    
incubator/ode/trunk/bpel-test/src/test/resources/bpel/2.0/TestInstantiatingPick/
    
incubator/ode/trunk/bpel-test/src/test/resources/bpel/2.0/TestInstantiatingPick/TestInstantiatingPick.bpel
    
incubator/ode/trunk/bpel-test/src/test/resources/bpel/2.0/TestInstantiatingPick/TestInstantiatingPick.wsdl
    
incubator/ode/trunk/bpel-test/src/test/resources/bpel/2.0/TestInstantiatingPick/deploy.xml
    
incubator/ode/trunk/bpel-test/src/test/resources/bpel/2.0/TestInstantiatingPick/test1.properties
    
incubator/ode/trunk/bpel-test/src/test/resources/bpel/2.0/TestInstantiatingPick/test2.properties
Removed:
    
incubator/ode/trunk/bpel-test/src/test/resources/bpel/2.0/TestCorrelation/test.properties
Modified:
    
incubator/ode/trunk/bpel-test/src/main/java/org/apache/ode/test/MessageExchangeContextImpl.java
    
incubator/ode/trunk/bpel-test/src/test/java/org/apache/ode/test/BPELTest.java
    
incubator/ode/trunk/bpel-test/src/test/resources/bpel/2.0/TestCorrelation/testCorrelation.bpel

Modified: 
incubator/ode/trunk/bpel-test/src/main/java/org/apache/ode/test/MessageExchangeContextImpl.java
URL: 
http://svn.apache.org/viewvc/incubator/ode/trunk/bpel-test/src/main/java/org/apache/ode/test/MessageExchangeContextImpl.java?view=diff&rev=450464&r1=450463&r2=450464
==============================================================================
--- 
incubator/ode/trunk/bpel-test/src/main/java/org/apache/ode/test/MessageExchangeContextImpl.java
 (original)
+++ 
incubator/ode/trunk/bpel-test/src/main/java/org/apache/ode/test/MessageExchangeContextImpl.java
 Wed Sep 27 07:45:08 2006
@@ -44,6 +44,8 @@
 import org.apache.ode.bpel.iapi.MessageExchangeContext;

 import org.apache.ode.bpel.iapi.MyRoleMessageExchange;

 import org.apache.ode.bpel.iapi.PartnerRoleMessageExchange;

+import org.apache.ode.bpel.iapi.MessageExchange.Status;

+import org.apache.ode.utils.DOMUtils;

 import org.w3c.dom.Element;

 

 import javax.xml.namespace.QName;

@@ -59,6 +61,7 @@
 

        // Probe Service is a simple concatination service

        private QName probePT = new 
QName("http://ode/bpel/unit-test/ProbeService.wsdl","probeMessagePT";);

+       private Message currentResponse;

        

        public void invokePartner(PartnerRoleMessageExchange mex)

                        throws ContextException {

@@ -73,7 +76,21 @@
 

        public void onAsyncReply(MyRoleMessageExchange myRoleMex)

                        throws BpelEngineException {

+               

+

+               Status mStat = myRoleMex.getStatus();

+               

+               if ( mStat == Status.RESPONSE ) {

+                       

+                       currentResponse = myRoleMex.getResponse();

+                       

+                       String resp = 
DOMUtils.domToString(getCurrentResponse().getMessage());

+                       System.out.println(resp);

 

+               }

+               

+               myRoleMex.complete();

+               

        }

        

        private void invokeProbeService(PartnerRoleMessageExchange prmx) {

@@ -93,6 +110,14 @@
                

                

 

+       }

+       

+       public Message getCurrentResponse() {

+               return currentResponse;

+       }

+       

+       public void clearCurrentResponse() {

+               currentResponse = null;

        }

 

 }


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=450464&r1=450463&r2=450464
==============================================================================
--- 
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 
Wed Sep 27 07:45:08 2006
@@ -22,6 +22,7 @@
 import org.apache.ode.bpel.engine.BpelServerImpl;
 import org.apache.ode.bpel.iapi.Message;
 import org.apache.ode.bpel.iapi.MyRoleMessageExchange;
+import org.apache.ode.bpel.iapi.MessageExchange.Status;
 import org.apache.ode.bpel.memdao.BpelDAOConnectionFactoryImpl;
 import org.apache.ode.test.scheduler.TestScheduler;
 import org.apache.ode.utils.DOMUtils;
@@ -35,14 +36,16 @@
 public class BPELTest extends TestCase {
        
        private BpelServerImpl server;
+       private MessageExchangeContextImpl mexContext; 
 
        @Override
        protected void setUp() throws Exception {
                server = new BpelServerImpl();
+               mexContext = new MessageExchangeContextImpl();
                server.setDaoConnectionFactory(new 
BpelDAOConnectionFactoryImpl());
                server.setScheduler(new TestScheduler());
                server.setBindingContext(new BindingContextImpl());
-               server.setMessageExchangeContext(new 
MessageExchangeContextImpl());
+               server.setMessageExchangeContext(mexContext);
                server.setDeploymentManager(new DeploymentManagerImpl());
                server.init();
                server.start();
@@ -55,40 +58,99 @@
        
        private void go(String deployDir) throws Exception {
                
+               /**
+                * The deploy directory must contain at least one
+                * "test.properties" file. 
+                * 
+                * The test.properties file identifies the service, 
+                * operation and messages to be sent to the BPEL engine.
+                * 
+                * The deploy directory may contain more than
+                * one file in the form of "testN.properties" where N
+                * represents a monotonic integer beginning with 1.
+                *   
+                */
+               
+               int propsFileCnt = 0;
                File testPropsFile = new File(deployDir+"/test.properties");
+               
                if ( !testPropsFile.exists()) {
-                       System.err.println("can't find "+ 
testPropsFile.toString());
+                       propsFileCnt++;
+                       testPropsFile = new 
File(deployDir+"/test"+propsFileCnt+".properties");
+                       if ( !testPropsFile.exists()) {
+                               System.err.println("can't find "+ 
testPropsFile.toString());
+                       }
                }
-               Properties testProps = new Properties();
-               testProps.load(testPropsFile.toURL().openStream());
                
-               QName serviceId = new QName(testProps.getProperty("namespace"),
-                               testProps.getProperty("service"));
-               String operation = testProps.getProperty("operation");
-
                server.getDeploymentService().deploy(new File(deployDir));
-
-               MyRoleMessageExchange mex = 
server.getEngine().createMessageExchange("",serviceId,operation);
-
-
-               for (int i=1; testProps.getProperty("request"+i) != null; i++) {
-
-                       String in = testProps.getProperty("request"+i);
-                       String responsePattern = 
testProps.getProperty("response"+i);
-
-                       Message request = mex.createMessage(null);
-
-                       Element elem = DOMUtils.stringToDOM(in);
-                       String tmp = elem.toString();
-                       request.setMessage(elem);
-
-                       mex.invoke(request);
-
-                       Message response = mex.getResponse();
-
-                       String resp = 
DOMUtils.domToString(response.getMessage());
-                       System.out.println(resp);
-                       
assertTrue(Pattern.compile(responsePattern,Pattern.DOTALL).matcher(resp).matches());
+               
+               while ( testPropsFile.exists() ) {
+               
+                       Properties testProps = new Properties();
+                       testProps.load(testPropsFile.toURL().openStream());
+                       
+                       QName serviceId = new 
QName(testProps.getProperty("namespace"),
+                                       testProps.getProperty("service"));
+                       String operation = testProps.getProperty("operation");
+       
+                       MyRoleMessageExchange mex = 
server.getEngine().createMessageExchange("",serviceId,operation);
+       
+       
+                       /**
+                        * Each property file must contain at least one 
+                        * request/response property tuple.
+                        * 
+                        * The request/response tuple should be in the form
+                        * 
+                        * requestN=<message>some XML input message</message>
+                        * responseN=.*some response message.*
+                        * 
+                        * Where N is a monotonic integer beginning with 1.
+                        * 
+                        * If no response is expected use:
+                        * responseN=null
+                        * 
+                        */
+                       
+                       for (int i=1; testProps.getProperty("request"+i) != 
null; i++) {
+       
+                               String in = testProps.getProperty("request"+i);
+                               String responsePattern = 
testProps.getProperty("response"+i);
+       
+                               mexContext.clearCurrentResponse();
+                               
+                               Message request = mex.createMessage(null);
+       
+                               Element elem = DOMUtils.stringToDOM(in);
+                               request.setMessage(elem);
+       
+                               mex.invoke(request);
+                               
+                               switch (mex.getStatus()) {
+                               case RESPONSE:
+                                       Message response = mex.getResponse();
+                                       String resp = 
DOMUtils.domToString(response.getMessage());
+                                       System.out.println(resp);
+                                       
assertTrue(Pattern.compile(responsePattern,Pattern.DOTALL).matcher(resp).matches());
+                                       // TODO: test for response fault
+                                       break;
+                               case ASYNC:
+                                       // TODO: handle Async
+                                       if ( !responsePattern.equals("null")) 
+                                               assertTrue(false);
+                                       break;
+                               case FAULT:
+                                       // TODO: handle Fault
+                                       assertTrue(false);
+                                       break;
+                               default:
+                                       assertTrue(false);
+                                       break;
+                               } 
+
+                       }
+                       propsFileCnt++;
+                       testPropsFile = new 
File(deployDir+"/test"+propsFileCnt+".properties");
                }
        }
 
@@ -112,6 +174,12 @@
     public void testAssignActivity2() throws Exception {
         go("target/test-classes/bpel/2.0/TestAssignActivity2");
     }
+    public void testInstPick() throws Exception {
+        go("target/test-classes/bpel/2.0/TestInstantiatingPick");
+    }
+       public void testCorrelation() throws Exception {
+               go("target/test-classes/bpel/2.0/testCorrelation");
+       }
     
     /** These tests compile however they fail at runtime */
   
@@ -121,8 +189,6 @@
 //     public void testTimer() throws Exception {
 //             go("target/test-classes/bpel/2.0/TestTimer");
 //     } 
-//     public void testCorrelation() throws Exception {
-//             go("target/test-classes/bpel/2.0/testCorrelation");
-//     }
+
 
 }

Copied: 
incubator/ode/trunk/bpel-test/src/test/resources/bpel/2.0/TestCorrelation/test1.properties
 (from r450301, 
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/test1.properties?view=diff&rev=450464&p1=incubator/ode/trunk/bpel-test/src/test/resources/bpel/2.0/TestCorrelation/test.properties&r1=450301&p2=incubator/ode/trunk/bpel-test/src/test/resources/bpel/2.0/TestCorrelation/test1.properties&r2=450464
==============================================================================
--- 
incubator/ode/trunk/bpel-test/src/test/resources/bpel/2.0/TestCorrelation/test.properties
 (original)
+++ 
incubator/ode/trunk/bpel-test/src/test/resources/bpel/2.0/TestCorrelation/test1.properties
 Wed Sep 27 07:45:08 2006
@@ -2,6 +2,4 @@
 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.*
+response1=null
\ No newline at end of file

Added: 
incubator/ode/trunk/bpel-test/src/test/resources/bpel/2.0/TestCorrelation/test2.properties
URL: 
http://svn.apache.org/viewvc/incubator/ode/trunk/bpel-test/src/test/resources/bpel/2.0/TestCorrelation/test2.properties?view=auto&rev=450464
==============================================================================
--- 
incubator/ode/trunk/bpel-test/src/test/resources/bpel/2.0/TestCorrelation/test2.properties
 (added)
+++ 
incubator/ode/trunk/bpel-test/src/test/resources/bpel/2.0/TestCorrelation/test2.properties
 Wed Sep 27 07:45:08 2006
@@ -0,0 +1,5 @@
+namespace=http://ode/bpel/unit-test/testCorrelation.wsdl
+service=testCorrelationService
+operation=continue
+request1=<message><requestMessageData><testMessage><requestID>Start 
Test5.1</requestID><requestText>Event Start 
Test5.2.1</requestText><requestEnd>yes</requestEnd></testMessage></requestMessageData></message>
+response1=.*Event Start Test5.1 -&gt; loop on receive until message includes 
requestEnd = yes -&gt; received message -&gt; process complete.*

Modified: 
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=diff&rev=450464&r1=450463&r2=450464
==============================================================================
--- 
incubator/ode/trunk/bpel-test/src/test/resources/bpel/2.0/TestCorrelation/testCorrelation.bpel
 (original)
+++ 
incubator/ode/trunk/bpel-test/src/test/resources/bpel/2.0/TestCorrelation/testCorrelation.bpel
 Wed Sep 27 07:45:08 2006
@@ -1,13 +1,14 @@
-<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">
+<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/testCorrelation";
+ xmlns:prb="http://ode/bpel/unit-test/ProbeService.wsdl";
+ xmlns:wns="http://ode/bpel/unit-test/testCorrelation.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";
@@ -93,6 +94,6 @@
                                <to variable="reply" part="replyText"/>
                        </copy>
                </assign>
-               <reply name="reply" partnerLink="request" 
portType="wns:testCorrelationPT" operation="request" variable="reply"> </reply>
+               <reply name="reply" partnerLink="request" 
portType="wns:testCorrelationPT" operation="continue" variable="reply"> </reply>
        </sequence>
 </process>


Added: 
incubator/ode/trunk/bpel-test/src/test/resources/bpel/2.0/TestInstantiatingPick/TestInstantiatingPick.bpel
URL: 
http://svn.apache.org/viewvc/incubator/ode/trunk/bpel-test/src/test/resources/bpel/2.0/TestInstantiatingPick/TestInstantiatingPick.bpel?view=auto&rev=450464
==============================================================================
--- 
incubator/ode/trunk/bpel-test/src/test/resources/bpel/2.0/TestInstantiatingPick/TestInstantiatingPick.bpel
 (added)
+++ 
incubator/ode/trunk/bpel-test/src/test/resources/bpel/2.0/TestInstantiatingPick/TestInstantiatingPick.bpel
 Wed Sep 27 07:45:08 2006
@@ -0,0 +1,167 @@
+<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/TestInstantiatingPick";
+       xmlns:wns="http://ode/bpel/unit-test/TestInstantiatingPick.wsdl";
+       xmlns:prb="http://ode/bpel/unit-test/ProbeService.wsdl";
+ xmlns="http://schemas.xmlsoap.org/ws/2004/03/business-process/";
+ name="TestInstantiatingPick"
+       targetNamespace="http://ode/bpel/unit-test/TestInstantiatingPick";
+       queryLanguage="urn:oasis:names:tc:wsbpel:2.0:sublang:xpath2.0"
+       expressionLanguage="urn:oasis:names:tc:wsbpel:2.0:sublang:xpath2.0"
+ suppressJoinFailure="yes">

+

+<!-- Unit test process instantiating pick -->
+       <import location="TestInstantiatingPick.wsdl"
+               namespace="http://ode/bpel/unit-test/TestInstantiatingPick.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/"/>
+

+

+  <partnerLinks>

+       <partnerLink name="request1" partnerLinkType="wns:testInstPick1Request" 
myRole="testInstPick1Service"/>
+       <partnerLink name="request2" partnerLinkType="wns:testInstPick2Request" 
myRole="testInstPick2Service"/>
+       <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>

+

+

+           <pick name="testPick" createInstance="yes">

+                       <onMessage partnerLink="request1"

+                               portType="wns:testInstPick1PT" 
operation="request" variable="request">

+                               <sequence>

+                                       <assign name="assign1">

+                                       <copy>

+                                                       <from 
variable="request" property="wns:testProbeID"/>

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

+                                       </copy>

+                                       <copy>

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

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

+                                       </copy>

+                                       </assign>   

+

+                                               <assign>

+                                       <copy>
+                                               <from>
+                                                       <literal><![CDATA[pick 
branch one invoked]]></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>

+                                       <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="request1" portType="wns:testInstPick1PT" 

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

+                                       </reply>

+

+                               </sequence>

+                       </onMessage>

+                       <onMessage partnerLink="request2"

+                               portType="wns:testInstPick2PT" 
operation="request" variable="request">

+                               <sequence>

+                                       <assign name="assign1">

+                                       <copy>

+                                                       <from 
variable="request" property="wns:testProbeID"/>

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

+                                       </copy>

+                                       <copy>

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

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

+                                       </copy>

+                                       </assign>   

+

+                                               <assign>

+                                       <copy>
+                                               <from>
+                                                       <literal><![CDATA[pick 
branch two invoked]]></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>

+                                       <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="request2" portType="wns:testInstPick2PT" 

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

+                                       </reply>

+

+                               </sequence>

+                       </onMessage>

+               </pick>

+       

+</process>


Added: 
incubator/ode/trunk/bpel-test/src/test/resources/bpel/2.0/TestInstantiatingPick/TestInstantiatingPick.wsdl
URL: 
http://svn.apache.org/viewvc/incubator/ode/trunk/bpel-test/src/test/resources/bpel/2.0/TestInstantiatingPick/TestInstantiatingPick.wsdl?view=auto&rev=450464
==============================================================================
--- 
incubator/ode/trunk/bpel-test/src/test/resources/bpel/2.0/TestInstantiatingPick/TestInstantiatingPick.wsdl
 (added)
+++ 
incubator/ode/trunk/bpel-test/src/test/resources/bpel/2.0/TestInstantiatingPick/TestInstantiatingPick.wsdl
 Wed Sep 27 07:45:08 2006
@@ -0,0 +1,73 @@
+

+<wsdl:definitions 

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

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

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

+   xmlns:prb="http://ode/bpel/unit-test/ProbeService.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:message>

+   

+   <wsdl:message name="replyMessage">

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

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

+   </wsdl:message>

+

+

+   <wsdl:portType name="testInstPick1PT">

+      <wsdl:operation name="request">

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

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

+      </wsdl:operation>

+   </wsdl:portType>

+

+   <wsdl:portType name="testInstPick2PT">

+      <wsdl:operation name="request">

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

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

+      </wsdl:operation>

+   </wsdl:portType>

+

+   <wsdl:binding name="testInstPick1Binding" type="tns:testInstPick1PT">

+      <wsdl:operation name="request">

+      </wsdl:operation>

+   </wsdl:binding>

+   <wsdl:service name="testInstPick1Service">

+      <wsdl:port name="testInstPick1Port" binding="tns:testInstPick1Binding">

+      </wsdl:port>

+   </wsdl:service>

+   

+   <wsdl:binding name="testInstPick2Binding" type="tns:testInstPick2PT">

+      <wsdl:operation name="request">

+      </wsdl:operation>

+   </wsdl:binding>

+   <wsdl:service name="testInstPick2Service">

+      <wsdl:port name="testInstPick2Port" binding="tns:testInstPick2Binding">

+      </wsdl:port>

+   </wsdl:service>

+

+   <plnk:partnerLinkType name="testInstPick1Request">

+      <plnk:role name="testInstPick1Service" portType="testInstPick1PT"/>

+   </plnk:partnerLinkType>

+

+   <plnk:partnerLinkType name="testInstPick2Request">

+      <plnk:role name="testInstPick2Service" portType="testInstPick2PT"/>

+   </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="requestID"/>

+   

+

+</wsdl:definitions>


Added: 
incubator/ode/trunk/bpel-test/src/test/resources/bpel/2.0/TestInstantiatingPick/deploy.xml
URL: 
http://svn.apache.org/viewvc/incubator/ode/trunk/bpel-test/src/test/resources/bpel/2.0/TestInstantiatingPick/deploy.xml?view=auto&rev=450464
==============================================================================
--- 
incubator/ode/trunk/bpel-test/src/test/resources/bpel/2.0/TestInstantiatingPick/deploy.xml
 (added)
+++ 
incubator/ode/trunk/bpel-test/src/test/resources/bpel/2.0/TestInstantiatingPick/deploy.xml
 Wed Sep 27 07:45:08 2006
@@ -0,0 +1,15 @@
+<deploy xmlns="http://ode.fivesight.com/schemas/2006/06/27/dd"; 
+       xmlns:pns="http://ode/bpel/unit-test/TestInstantiatingPick"; 
+       xmlns:wns="http://ode/bpel/unit-test/TestInstantiatingPick.wsdl";>
+
+
+       <process name="pns:TestInstantiatingPick">
+               <active>true</active>
+               <provide partnerLink="request1">
+                       <service name="wns:testInstPick1Service" 
port="wns:testInstPick1Port"/>
+               </provide>

+               <provide partnerLink="request2">

+                       <service name="wns:testInstPick2Service" 
port="wns:testInstPick2Port"/>

+               </provide>
+       </process>
+</deploy>

Added: 
incubator/ode/trunk/bpel-test/src/test/resources/bpel/2.0/TestInstantiatingPick/test1.properties
URL: 
http://svn.apache.org/viewvc/incubator/ode/trunk/bpel-test/src/test/resources/bpel/2.0/TestInstantiatingPick/test1.properties?view=auto&rev=450464
==============================================================================
--- 
incubator/ode/trunk/bpel-test/src/test/resources/bpel/2.0/TestInstantiatingPick/test1.properties
 (added)
+++ 
incubator/ode/trunk/bpel-test/src/test/resources/bpel/2.0/TestInstantiatingPick/test1.properties
 Wed Sep 27 07:45:08 2006
@@ -0,0 +1,5 @@
+namespace=http://ode/bpel/unit-test/TestInstantiatingPick.wsdl
+service=testInstPick1Service
+operation=request
+request1=<message><requestID>Start 
TestInstantiatingPick</requestID><requestText>TestInstantiatingPick 
Request1</requestText></message>
+response1=.*TestInstantiatingPick Request1 -&gt; pick branch one invoked -&gt; 
process complete.*

Added: 
incubator/ode/trunk/bpel-test/src/test/resources/bpel/2.0/TestInstantiatingPick/test2.properties
URL: 
http://svn.apache.org/viewvc/incubator/ode/trunk/bpel-test/src/test/resources/bpel/2.0/TestInstantiatingPick/test2.properties?view=auto&rev=450464
==============================================================================
--- 
incubator/ode/trunk/bpel-test/src/test/resources/bpel/2.0/TestInstantiatingPick/test2.properties
 (added)
+++ 
incubator/ode/trunk/bpel-test/src/test/resources/bpel/2.0/TestInstantiatingPick/test2.properties
 Wed Sep 27 07:45:08 2006
@@ -0,0 +1,5 @@
+namespace=http://ode/bpel/unit-test/TestInstantiatingPick.wsdl
+service=testInstPick2Service
+operation=request
+request1=<message><requestID>Start 
TestInstantiatingPick</requestID><requestText>TestInstantiatingPick 
Request2</requestText></message>
+response1=.*TestInstantiatingPick Request2 -&gt; pick branch two invoked -&gt; 
process complete.*


Reply via email to