Author: mriou
Date: Wed Sep 20 08:00:09 2006
New Revision: 448218

URL: http://svn.apache.org/viewvc?view=rev&rev=448218
Log:
Adding a first assignment test. I'll try to add more assign cases and build a 
result consistently build with all assigns working.

Added:
    
incubator/ode/trunk/bpel-test/src/test/resources/bpel/2.0/TestAssignActivity/
    
incubator/ode/trunk/bpel-test/src/test/resources/bpel/2.0/TestAssignActivity/TestAssign.bpel
    
incubator/ode/trunk/bpel-test/src/test/resources/bpel/2.0/TestAssignActivity/TestAssign.wsdl
    
incubator/ode/trunk/bpel-test/src/test/resources/bpel/2.0/TestAssignActivity/deploy.xml
    
incubator/ode/trunk/bpel-test/src/test/resources/bpel/2.0/TestAssignActivity/test.properties

Added: 
incubator/ode/trunk/bpel-test/src/test/resources/bpel/2.0/TestAssignActivity/TestAssign.bpel
URL: 
http://svn.apache.org/viewvc/incubator/ode/trunk/bpel-test/src/test/resources/bpel/2.0/TestAssignActivity/TestAssign.bpel?view=auto&rev=448218
==============================================================================
--- 
incubator/ode/trunk/bpel-test/src/test/resources/bpel/2.0/TestAssignActivity/TestAssign.bpel
 (added)
+++ 
incubator/ode/trunk/bpel-test/src/test/resources/bpel/2.0/TestAssignActivity/TestAssign.bpel
 Wed Sep 20 08:00:09 2006
@@ -0,0 +1,76 @@
+<!--
+  ~ Licensed to the Apache Software Foundation (ASF) under one
+  ~ or more contributor license agreements.  See the NOTICE file
+  ~ distributed with this work for additional information
+  ~ regarding copyright ownership.  The ASF licenses this file
+  ~ to you under the Apache License, Version 2.0 (the
+  ~ "License"); you may not use this file except in compliance
+  ~ with the License.  You may obtain a copy of the License at
+  ~
+  ~    http://www.apache.org/licenses/LICENSE-2.0
+  ~
+  ~ Unless required by applicable law or agreed to in writing,
+  ~ software distributed under the License is distributed on an
+  ~ "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+  ~ KIND, either express or implied.  See the License for the
+  ~ specific language governing permissions and limitations
+  ~ under the License.
+  -->
+
+<process name="TestAssign"
+         targetNamespace="http://ode/bpel/unit-test";
+         xmlns:bpws="http://schemas.xmlsoap.org/ws/2004/03/business-process/";
+         xmlns="http://schemas.xmlsoap.org/ws/2004/03/business-process/";
+         xmlns:tns="http://ode/bpel/unit-test";
+         xmlns:xsd="http://www.w3.org/2001/XMLSchema";
+         xmlns:test="http://ode/bpel/unit-test.wsdl";>
+
+    <import location="TestAssign.wsdl"
+            namespace="http://ode/bpel/unit-test.wsdl";
+            importType="http://schemas.xmlsoap.org/wsdl/"; />
+
+    <partnerLinks>
+        <partnerLink name="TestAssignPartnerLink" 
partnerLinkType="test:TestAssignPartnerLinkType" myRole="me" />
+    </partnerLinks>
+
+    <variables>
+        <variable name="myVar" messageType="test:TestAssignMessage"/>
+        <variable name="otherMsgVar" messageType="test:TestAssignMessage"/>
+        <variable name="strVar" type="xsd:string"/>
+        <variable name="intVar" type="xsd:int"/>
+    </variables>
+
+    <sequence>
+        <receive name="start" partnerLink="TestAssignPartnerLink" 
portType="test:TestAssignPortType"
+                 operation="testAssign" variable="myVar" createInstance="yes"/>
+
+        <assign name="assign1">
+            <copy>
+                <from>2 + 1</from>
+                <to variable="intVar"/>
+            </copy>
+            <copy>
+                <from>$intVar + 1</from>
+                <to variable="intVar"/>
+            </copy>
+            <copy>
+                <from variable="myVar" part="TestPart"/>
+                <to variable="strVar"/>
+            </copy>
+            <copy>
+                <from>concat($strVar,' World', $intVar)"</from>
+                <to variable="myVar" part="TestPart"/>
+            </copy>
+            <copy>
+                <from>concat($strVar,' World')"</from>
+                <to>$otherMsgVar.TestPart</to>
+            </copy>
+            <copy>
+                <from variable="myVar" part="TestPart"/>
+                <to>$otherMsgVar.TestPart</to>
+            </copy>
+        </assign>
+        <reply name="end" partnerLink="TestAssignPartnerLink" 
portType="test:TestAssignPortType"
+               operation="testAssign" variable="myVar"/>
+    </sequence>
+</process>

Added: 
incubator/ode/trunk/bpel-test/src/test/resources/bpel/2.0/TestAssignActivity/TestAssign.wsdl
URL: 
http://svn.apache.org/viewvc/incubator/ode/trunk/bpel-test/src/test/resources/bpel/2.0/TestAssignActivity/TestAssign.wsdl?view=auto&rev=448218
==============================================================================
--- 
incubator/ode/trunk/bpel-test/src/test/resources/bpel/2.0/TestAssignActivity/TestAssign.wsdl
 (added)
+++ 
incubator/ode/trunk/bpel-test/src/test/resources/bpel/2.0/TestAssignActivity/TestAssign.wsdl
 Wed Sep 20 08:00:09 2006
@@ -0,0 +1,66 @@
+<?xml version="1.0" encoding="utf-8" ?>
+
+<!--
+  ~ Licensed to the Apache Software Foundation (ASF) under one
+  ~ or more contributor license agreements.  See the NOTICE file
+  ~ distributed with this work for additional information
+  ~ regarding copyright ownership.  The ASF licenses this file
+  ~ to you under the Apache License, Version 2.0 (the
+  ~ "License"); you may not use this file except in compliance
+  ~ with the License.  You may obtain a copy of the License at
+  ~
+  ~    http://www.apache.org/licenses/LICENSE-2.0
+  ~
+  ~ Unless required by applicable law or agreed to in writing,
+  ~ software distributed under the License is distributed on an
+  ~ "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+  ~ KIND, either express or implied.  See the License for the
+  ~ specific language governing permissions and limitations
+  ~ under the License.
+  -->
+
+<wsdl:definitions
+    targetNamespace="http://ode/bpel/unit-test.wsdl";
+    xmlns="http://schemas.xmlsoap.org/wsdl/";
+    xmlns:tns="http://ode/bpel/unit-test.wsdl";
+    xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/";
+    xmlns:xsd="http://www.w3.org/2001/XMLSchema";
+    xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/";
+    xmlns:bpws="http://schemas.xmlsoap.org/ws/2004/03/business-process/";
+    xmlns:plnk="http://schemas.xmlsoap.org/ws/2004/03/partner-link/";>
+
+    <wsdl:message name="TestAssignMessage">
+        <wsdl:part name="TestPart" type="xsd:string"/>
+    </wsdl:message>
+
+    <wsdl:portType name="TestAssignPortType">
+        <wsdl:operation name="testAssign">
+            <wsdl:input message="tns:TestAssignMessage" name="TestIn"/>
+            <wsdl:output message="tns:TestAssignMessage" name="TestOut"/>
+        </wsdl:operation>
+    </wsdl:portType>
+
+     <wsdl:binding name="TestAssignSoapBinding" type="tns:TestAssignPortType">
+        <soap:binding style="rpc" 
transport="http://schemas.xmlsoap.org/soap/http"/>
+        <wsdl:operation name="testAssign">
+            <soap:operation soapAction="" style="rpc"/>
+            <wsdl:input>
+                <soap:body namespace="http://ode/bpel/unit-test.wsdl"; 
use="literal"/>
+            </wsdl:input>
+            <wsdl:output>
+                <soap:body namespace="http://ode/bpel/unit-test.wsdl"; 
use="literal"/>
+            </wsdl:output>
+        </wsdl:operation>
+    </wsdl:binding>
+    <wsdl:service name="TestAssignService">
+               <wsdl:port name="TestAssignPort" 
binding="tns:TestAssignSoapBinding">
+               <soap:address 
location="http://localhost:8080/ode/processes/TestAssign"/>
+               </wsdl:port>
+    </wsdl:service>
+
+   <plnk:partnerLinkType name="TestAssignPartnerLinkType">
+       <plnk:role name="me" portType="tns:TestAssignPortType"/>
+       <plnk:role name="you" portType="tns:TestAssignPortType"/>
+   </plnk:partnerLinkType>
+</wsdl:definitions>
+

Added: 
incubator/ode/trunk/bpel-test/src/test/resources/bpel/2.0/TestAssignActivity/deploy.xml
URL: 
http://svn.apache.org/viewvc/incubator/ode/trunk/bpel-test/src/test/resources/bpel/2.0/TestAssignActivity/deploy.xml?view=auto&rev=448218
==============================================================================
--- 
incubator/ode/trunk/bpel-test/src/test/resources/bpel/2.0/TestAssignActivity/deploy.xml
 (added)
+++ 
incubator/ode/trunk/bpel-test/src/test/resources/bpel/2.0/TestAssignActivity/deploy.xml
 Wed Sep 20 08:00:09 2006
@@ -0,0 +1,32 @@
+<!--
+  ~ 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";
+       xmlns:wns="http://ode/bpel/unit-test.wsdl";>
+
+
+       <process name="pns:TestAssign">
+               <active>true</active>
+               <provide partnerLink="TestAssignPartnerLink">
+                       <service name="wns:TestAssignService" 
port="TestAssignPort"/>
+                       <service name="wns:TestAssignService" 
port="TestAssignPort"/>
+               </provide>
+       </process>
+</deploy>

Added: 
incubator/ode/trunk/bpel-test/src/test/resources/bpel/2.0/TestAssignActivity/test.properties
URL: 
http://svn.apache.org/viewvc/incubator/ode/trunk/bpel-test/src/test/resources/bpel/2.0/TestAssignActivity/test.properties?view=auto&rev=448218
==============================================================================
--- 
incubator/ode/trunk/bpel-test/src/test/resources/bpel/2.0/TestAssignActivity/test.properties
 (added)
+++ 
incubator/ode/trunk/bpel-test/src/test/resources/bpel/2.0/TestAssignActivity/test.properties
 Wed Sep 20 08:00:09 2006
@@ -0,0 +1,5 @@
+namespace=http://ode/bpel/unit-test.wsdl
+service=TestAssignService
+operation=testAssign
+request=<message><TestPart>Hello</TestPart></message>
+response=.*Hello World4.*
\ No newline at end of file


Reply via email to