You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@ode.apache.org by ad...@apache.org on 2006/02/28 17:35:26 UTC

svn commit: r381694 [2/38] - in /incubator/ode/scratch: bpe/ ode/ ode/bpelTests/ ode/bpelTests/probeService/ ode/bpelTests/test1/ ode/bpelTests/test10/ ode/bpelTests/test12/ ode/bpelTests/test13/ ode/bpelTests/test14/ ode/bpelTests/test15/ ode/bpelTest...

Added: incubator/ode/scratch/ode/LICENSE
URL: http://svn.apache.org/viewcvs/incubator/ode/scratch/ode/LICENSE?rev=381694&view=auto
==============================================================================
--- incubator/ode/scratch/ode/LICENSE (added)
+++ incubator/ode/scratch/ode/LICENSE Tue Feb 28 08:31:48 2006
@@ -0,0 +1,202 @@
+
+                                 Apache License
+                           Version 2.0, January 2004
+                        http://www.apache.org/licenses/
+
+   TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
+
+   1. Definitions.
+
+      "License" shall mean the terms and conditions for use, reproduction,
+      and distribution as defined by Sections 1 through 9 of this document.
+
+      "Licensor" shall mean the copyright owner or entity authorized by
+      the copyright owner that is granting the License.
+
+      "Legal Entity" shall mean the union of the acting entity and all
+      other entities that control, are controlled by, or are under common
+      control with that entity. For the purposes of this definition,
+      "control" means (i) the power, direct or indirect, to cause the
+      direction or management of such entity, whether by contract or
+      otherwise, or (ii) ownership of fifty percent (50%) or more of the
+      outstanding shares, or (iii) beneficial ownership of such entity.
+
+      "You" (or "Your") shall mean an individual or Legal Entity
+      exercising permissions granted by this License.
+
+      "Source" form shall mean the preferred form for making modifications,
+      including but not limited to software source code, documentation
+      source, and configuration files.
+
+      "Object" form shall mean any form resulting from mechanical
+      transformation or translation of a Source form, including but
+      not limited to compiled object code, generated documentation,
+      and conversions to other media types.
+
+      "Work" shall mean the work of authorship, whether in Source or
+      Object form, made available under the License, as indicated by a
+      copyright notice that is included in or attached to the work
+      (an example is provided in the Appendix below).
+
+      "Derivative Works" shall mean any work, whether in Source or Object
+      form, that is based on (or derived from) the Work and for which the
+      editorial revisions, annotations, elaborations, or other modifications
+      represent, as a whole, an original work of authorship. For the purposes
+      of this License, Derivative Works shall not include works that remain
+      separable from, or merely link (or bind by name) to the interfaces of,
+      the Work and Derivative Works thereof.
+
+      "Contribution" shall mean any work of authorship, including
+      the original version of the Work and any modifications or additions
+      to that Work or Derivative Works thereof, that is intentionally
+      submitted to Licensor for inclusion in the Work by the copyright owner
+      or by an individual or Legal Entity authorized to submit on behalf of
+      the copyright owner. For the purposes of this definition, "submitted"
+      means any form of electronic, verbal, or written communication sent
+      to the Licensor or its representatives, including but not limited to
+      communication on electronic mailing lists, source code control systems,
+      and issue tracking systems that are managed by, or on behalf of, the
+      Licensor for the purpose of discussing and improving the Work, but
+      excluding communication that is conspicuously marked or otherwise
+      designated in writing by the copyright owner as "Not a Contribution."
+
+      "Contributor" shall mean Licensor and any individual or Legal Entity
+      on behalf of whom a Contribution has been received by Licensor and
+      subsequently incorporated within the Work.
+
+   2. Grant of Copyright License. Subject to the terms and conditions of
+      this License, each Contributor hereby grants to You a perpetual,
+      worldwide, non-exclusive, no-charge, royalty-free, irrevocable
+      copyright license to reproduce, prepare Derivative Works of,
+      publicly display, publicly perform, sublicense, and distribute the
+      Work and such Derivative Works in Source or Object form.
+
+   3. Grant of Patent License. Subject to the terms and conditions of
+      this License, each Contributor hereby grants to You a perpetual,
+      worldwide, non-exclusive, no-charge, royalty-free, irrevocable
+      (except as stated in this section) patent license to make, have made,
+      use, offer to sell, sell, import, and otherwise transfer the Work,
+      where such license applies only to those patent claims licensable
+      by such Contributor that are necessarily infringed by their
+      Contribution(s) alone or by combination of their Contribution(s)
+      with the Work to which such Contribution(s) was submitted. If You
+      institute patent litigation against any entity (including a
+      cross-claim or counterclaim in a lawsuit) alleging that the Work
+      or a Contribution incorporated within the Work constitutes direct
+      or contributory patent infringement, then any patent licenses
+      granted to You under this License for that Work shall terminate
+      as of the date such litigation is filed.
+
+   4. Redistribution. You may reproduce and distribute copies of the
+      Work or Derivative Works thereof in any medium, with or without
+      modifications, and in Source or Object form, provided that You
+      meet the following conditions:
+
+      (a) You must give any other recipients of the Work or
+          Derivative Works a copy of this License; and
+
+      (b) You must cause any modified files to carry prominent notices
+          stating that You changed the files; and
+
+      (c) You must retain, in the Source form of any Derivative Works
+          that You distribute, all copyright, patent, trademark, and
+          attribution notices from the Source form of the Work,
+          excluding those notices that do not pertain to any part of
+          the Derivative Works; and
+
+      (d) If the Work includes a "NOTICE" text file as part of its
+          distribution, then any Derivative Works that You distribute must
+          include a readable copy of the attribution notices contained
+          within such NOTICE file, excluding those notices that do not
+          pertain to any part of the Derivative Works, in at least one
+          of the following places: within a NOTICE text file distributed
+          as part of the Derivative Works; within the Source form or
+          documentation, if provided along with the Derivative Works; or,
+          within a display generated by the Derivative Works, if and
+          wherever such third-party notices normally appear. The contents
+          of the NOTICE file are for informational purposes only and
+          do not modify the License. You may add Your own attribution
+          notices within Derivative Works that You distribute, alongside
+          or as an addendum to the NOTICE text from the Work, provided
+          that such additional attribution notices cannot be construed
+          as modifying the License.
+
+      You may add Your own copyright statement to Your modifications and
+      may provide additional or different license terms and conditions
+      for use, reproduction, or distribution of Your modifications, or
+      for any such Derivative Works as a whole, provided Your use,
+      reproduction, and distribution of the Work otherwise complies with
+      the conditions stated in this License.
+
+   5. Submission of Contributions. Unless You explicitly state otherwise,
+      any Contribution intentionally submitted for inclusion in the Work
+      by You to the Licensor shall be under the terms and conditions of
+      this License, without any additional terms or conditions.
+      Notwithstanding the above, nothing herein shall supersede or modify
+      the terms of any separate license agreement you may have executed
+      with Licensor regarding such Contributions.
+
+   6. Trademarks. This License does not grant permission to use the trade
+      names, trademarks, service marks, or product names of the Licensor,
+      except as required for reasonable and customary use in describing the
+      origin of the Work and reproducing the content of the NOTICE file.
+
+   7. Disclaimer of Warranty. Unless required by applicable law or
+      agreed to in writing, Licensor provides the Work (and each
+      Contributor provides its Contributions) on an "AS IS" BASIS,
+      WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
+      implied, including, without limitation, any warranties or conditions
+      of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
+      PARTICULAR PURPOSE. You are solely responsible for determining the
+      appropriateness of using or redistributing the Work and assume any
+      risks associated with Your exercise of permissions under this License.
+
+   8. Limitation of Liability. In no event and under no legal theory,
+      whether in tort (including negligence), contract, or otherwise,
+      unless required by applicable law (such as deliberate and grossly
+      negligent acts) or agreed to in writing, shall any Contributor be
+      liable to You for damages, including any direct, indirect, special,
+      incidental, or consequential damages of any character arising as a
+      result of this License or out of the use or inability to use the
+      Work (including but not limited to damages for loss of goodwill,
+      work stoppage, computer failure or malfunction, or any and all
+      other commercial damages or losses), even if such Contributor
+      has been advised of the possibility of such damages.
+
+   9. Accepting Warranty or Additional Liability. While redistributing
+      the Work or Derivative Works thereof, You may choose to offer,
+      and charge a fee for, acceptance of support, warranty, indemnity,
+      or other liability obligations and/or rights consistent with this
+      License. However, in accepting such obligations, You may act only
+      on Your own behalf and on Your sole responsibility, not on behalf
+      of any other Contributor, and only if You agree to indemnify,
+      defend, and hold each Contributor harmless for any liability
+      incurred by, or claims asserted against, such Contributor by reason
+      of your accepting any such warranty or additional liability.
+
+   END OF TERMS AND CONDITIONS
+
+   APPENDIX: How to apply the Apache License to your work.
+
+      To apply the Apache License to your work, attach the following
+      boilerplate notice, with the fields enclosed by brackets "[]"
+      replaced with your own identifying information. (Don't include
+      the brackets!)  The text should be enclosed in the appropriate
+      comment syntax for the file format. We also recommend that a
+      file or class name and description of purpose be included on the
+      same "printed page" as the copyright notice for easier
+      identification within third-party archives.
+
+   Copyright [yyyy] [name of copyright owner]
+
+   Licensed 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.

Added: incubator/ode/scratch/ode/README.TXT
URL: http://svn.apache.org/viewcvs/incubator/ode/scratch/ode/README.TXT?rev=381694&view=auto
==============================================================================
--- incubator/ode/scratch/ode/README.TXT (added)
+++ incubator/ode/scratch/ode/README.TXT Tue Feb 28 08:31:48 2006
@@ -0,0 +1,23 @@
+Prerequisites
+------------
+
+Maven 2.0 - http://maven.apache.org/
+J2EE 1.4 - http://java.sun.com/j2ee/1.4/download.html
+
+Install prerequisites to maven repository
+-----------------------------------------
+
+mvn install:install-file -Dfile=<j2ee dir>/lib/j2ee.jar -DgroupId=javax.j2ee -DartifactId=j2ee -Dversion=1.4 -Dpackaging=jar
+
+Build BPE
+---------
+
+mvn package
+
+NOTE: some tests will fail under jdk 1.4 if you don't put the xml-apis.jar xercesImpl.jar and xalan.jar in java.endorsed.dirs
+
+Running BPEL
+------------
+
+
+

Added: incubator/ode/scratch/ode/TODO.TXT
URL: http://svn.apache.org/viewcvs/incubator/ode/scratch/ode/TODO.TXT?rev=381694&view=auto
==============================================================================
--- incubator/ode/scratch/ode/TODO.TXT (added)
+++ incubator/ode/scratch/ode/TODO.TXT Tue Feb 28 08:31:48 2006
@@ -0,0 +1,4 @@
+- Create bat/sh script for deploying, sending messages from a shell
+- Clean up BPED interfaces
+- Remove old style client code ( and unit tests that use this code )
+- Implement non J2EE persistence service for running "In Memory" with persistent BP state

Added: incubator/ode/scratch/ode/bpelTests/build.xml
URL: http://svn.apache.org/viewcvs/incubator/ode/scratch/ode/bpelTests/build.xml?rev=381694&view=auto
==============================================================================
--- incubator/ode/scratch/ode/bpelTests/build.xml (added)
+++ incubator/ode/scratch/ode/bpelTests/build.xml Tue Feb 28 08:31:48 2006
@@ -0,0 +1,189 @@
+<project name="Build BPEL Jars" default="bpeltestsjar">
+	<description>
+		Build BPEL Jars.
+	</description>
+	<!-- =================================================================== -->
+	<!-- jartest                                                             -->
+	<!-- =================================================================== -->
+	<target name="jartest">
+		<jar destfile="${basedir}/test${jartest.num}/bpelTest${jartest.num}.jar">
+			<fileset dir="${basedir}/..">
+				<include name="bpelTests/probeService/*.wsdl"/>
+				<include name="bpelTests/test${jartest.num}/*.wsdl"/>
+				<include name="bpelTests/test${jartest.num}/*.bpel"/>
+				<include name="bpelTests/test${jartest.num}/*.xslt"/>
+				<include name="bpelTests/test${jartest.num}/*.xml"/>
+			</fileset>
+		</jar>
+	</target>
+	<!-- =================================================================== -->
+	<!-- jar up the tests                                                    -->
+	<!-- =================================================================== -->
+	<target name="bpeltestsjar">
+		<antcall target="jartest">
+			<param name="jartest.num" value="1"/>
+		</antcall>
+		<antcall target="jartest">
+			<param name="jartest.num" value="2"/>
+		</antcall>
+		<antcall target="jartest">
+			<param name="jartest.num" value="3"/>
+		</antcall>
+		<antcall target="jartest">
+			<param name="jartest.num" value="4"/>
+		</antcall>
+		<antcall target="jartest">
+			<param name="jartest.num" value="5"/>
+		</antcall>
+		<antcall target="jartest">
+			<param name="jartest.num" value="6"/>
+		</antcall>
+		<antcall target="jartest">
+			<param name="jartest.num" value="7"/>
+		</antcall>
+		<antcall target="jartest">
+			<param name="jartest.num" value="8"/>
+		</antcall>
+		<antcall target="jartest">
+			<param name="jartest.num" value="9"/>
+		</antcall>
+		<antcall target="jartest">
+			<param name="jartest.num" value="10"/>
+		</antcall>
+		<antcall target="jartest">
+			<param name="jartest.num" value="11"/>
+		</antcall>
+		<antcall target="jartest">
+			<param name="jartest.num" value="12"/>
+		</antcall>
+		<antcall target="jartest">
+			<param name="jartest.num" value="13"/>
+		</antcall>
+		<antcall target="jartest">
+			<param name="jartest.num" value="14"/>
+		</antcall>
+		<antcall target="jartest">
+			<param name="jartest.num" value="15"/>
+		</antcall>
+		<antcall target="jartest">
+			<param name="jartest.num" value="16"/>
+		</antcall>
+		<antcall target="jartest">
+			<param name="jartest.num" value="17"/>
+		</antcall>		
+		<antcall target="jartest">
+			<param name="jartest.num" value="benchMark2"/>
+		</antcall>
+		<antcall target="jartest">
+			<param name="jartest.num" value="benchMark3"/>
+		</antcall>
+		<antcall target="jartest">
+			<param name="jartest.num" value="benchMark4"/>
+		</antcall>
+		<antcall target="jartest">
+			<param name="jartest.num" value="BPChain"/>
+		</antcall>
+		<antcall target="jartest">
+			<param name="jartest.num" value="ThrowFaultOutsideOfBP"/>
+		</antcall>
+		<antcall target="jartest">
+			<param name="jartest.num" value="Timer1"/>
+		</antcall>
+		<antcall target="jartest">
+			<param name="jartest.num" value="Timer2"/>
+		</antcall>
+		<antcall target="jartest">
+			<param name="jartest.num" value="Timer3"/>
+		</antcall>
+		<antcall target="jartest">
+			<param name="jartest.num" value="Terminate"/>
+		</antcall>
+		<antcall target="jartest">
+			<param name="jartest.num" value="FlowScopes"/>
+		</antcall>
+		<antcall target="jartest">
+			<param name="jartest.num" value="ScopedCorrelationSets"/>
+		</antcall>
+		<antcall target="jartest">
+			<param name="jartest.num" value="CatchForcedTerminate"/>
+		</antcall>
+		<antcall target="jartest">
+			<param name="jartest.num" value="FaultInCompensationHandler"/>
+		</antcall>
+		<antcall target="jartest">
+			<param name="jartest.num" value="FaultInFaultHandler"/>
+		</antcall>
+		<antcall target="jartest">
+			<param name="jartest.num" value="TimerOnAlarmAtRootScope"/>
+		</antcall>
+		<antcall target="jartest">
+			<param name="jartest.num" value="FaultCompHandlerInInvoke"/>
+		</antcall>
+		<antcall target="jartest">
+			<param name="jartest.num" value="LoopedCompensation"/>
+		</antcall>
+		<antcall target="jartest">
+			<param name="jartest.num" value="OOBData"/>
+		</antcall>
+		<antcall target="jartest">
+			<param name="jartest.num" value="NSDeploy"/>
+		</antcall>
+		<antcall target="jartest">
+			<param name="jartest.num" value="GetVarData"/>
+		</antcall>
+		<antcall target="jartest">
+			<param name="jartest.num" value="LocalInvoke"/>
+		</antcall>
+		<antcall target="jartest">
+			<param name="jartest.num" value="LinkInSwitch"/>
+		</antcall>
+		<antcall target="jartest">
+			<param name="jartest.num" value="Qts377278"/>
+		</antcall>
+		<antcall target="jartest">
+			<param name="jartest.num" value="PartnerLinkAssign"/>
+		</antcall>
+		<antcall target="jartest">
+			<param name="jartest.num" value="NestedSplits"/>
+		</antcall>
+		<antcall target="jartest">
+			<param name="jartest.num" value="ReplyWithFault"/>
+		</antcall>
+		<antcall target="jartest">
+			<param name="jartest.num" value="CorrlCmplx"/>
+		</antcall>
+		<antcall target="jartest">
+			<param name="jartest.num" value="CorrlInvokeReply"/>
+		</antcall>
+		<antcall target="jartest">
+			<param name="jartest.num" value="GraftGraftChildren"/>
+		</antcall>
+		<antcall target="jartest">
+			<param name="jartest.num" value="LoopedCompensation2"/>
+		</antcall>
+		<antcall target="jartest">
+			<param name="jartest.num" value="BuildDocWithNestedNS"/>
+		</antcall>
+		<antcall target="jartest">
+			<param name="jartest.num" value="SingleRuleInCompHandler"/>
+		</antcall>
+		<antcall target="jartest">
+			<param name="jartest.num" value="CatchAllNonBPError"/>
+		</antcall>
+		<antcall target="jartest">
+			<param name="jartest.num" value="CatchFaultInFaultHandler"/>
+		</antcall>
+		<antcall target="jartest">
+			<param name="jartest.num" value="ThrowInScopeInFaultHandler"/>
+		</antcall>
+		<antcall target="jartest">
+			<param name="jartest.num" value="CatchFaultInFaultHandler2"/>
+		</antcall>
+		<antcall target="jartest">
+			<param name="jartest.num" value="ThrowInScopeInFaultHandler2"/>
+		</antcall>
+		<antcall target="jartest">
+			<param name="jartest.num" value="BPInvokeDeadlock"/>
+		</antcall>
+	</target>
+</project>

Added: incubator/ode/scratch/ode/bpelTests/probeService/probeService.wsdl
URL: http://svn.apache.org/viewcvs/incubator/ode/scratch/ode/bpelTests/probeService/probeService.wsdl?rev=381694&view=auto
==============================================================================
--- incubator/ode/scratch/ode/bpelTests/probeService/probeService.wsdl (added)
+++ incubator/ode/scratch/ode/bpelTests/probeService/probeService.wsdl Tue Feb 28 08:31:48 2006
@@ -0,0 +1,32 @@
+<?xml version="1.0" ?>
+
+<!-- The probe service is a simple extension that concatenates two strings -->
+<!-- The probeName part is concatenated to the end of the probeData part -->
+<!-- and the probeData part is returned as output. -->
+<!-- The service is used to facilitate chicken track debugging of BPEL -->
+
+<definitions targetNamespace="urn:sybase:bpel:testProbe"
+             xmlns:tns="urn:sybase:bpel:testProbe"
+             xmlns:xsd="http://www.w3.org/2001/XMLSchema"
+             xmlns="http://schemas.xmlsoap.org/wsdl/">
+
+
+  <!-- message declns -->
+
+  <message name="probeMessage">
+     <part name="probeName" type="xsd:string"/>
+     <part name="probeData" type="xsd:string"/>
+   </message>
+
+
+  <!-- port type declns -->
+  <portType name="probeMessagePT">
+      <operation name="probe">
+         <input name="ProbeInputMessage" message="tns:probeMessage"/>
+         <output name="ProbeOutputMessage" message="tns:probeMessage"/>
+      </operation>
+
+  </portType>
+
+</definitions>
+

Added: incubator/ode/scratch/ode/bpelTests/test1/data1_1.txt
URL: http://svn.apache.org/viewcvs/incubator/ode/scratch/ode/bpelTests/test1/data1_1.txt?rev=381694&view=auto
==============================================================================
--- incubator/ode/scratch/ode/bpelTests/test1/data1_1.txt (added)
+++ incubator/ode/scratch/ode/bpelTests/test1/data1_1.txt Tue Feb 28 08:31:48 2006
@@ -0,0 +1,14 @@
+# Test BPEL control flow objects
+# Both control flows are set to positive the loop indcator is set to minimum.
+# Expected result = Event Start Test1.1 -> root process splits into A and B -> process B completes -> process A completes -> processes A and B merge on process C -> merge into root process -> test switch statement -> case min: set loop iterations = 5 -> test loop iterations -> 2 -> 3 -> 4 -> 5 -> 6 -> test1Process complete
+
+# Note the prefix on the part name identifies the message type ( xml = xml data; str = string data )
+
+target.name.space=urn:sybase:bpel:test1Processing
+port.type=test1PT
+operation=request
+
+part1=xml.requestMessageData
+
+xml.requestMessageData=<testMessage><requestID>Start Test1.1</requestID><requestText>Event Start Test1.1</requestText><flowIndicators><indicatorOne>yes</indicatorOne><indicatorTwo>yes</indicatorTwo></flowIndicators><loopIndicator>min</loopIndicator></testMessage>
+

Added: incubator/ode/scratch/ode/bpelTests/test1/data1_2.txt
URL: http://svn.apache.org/viewcvs/incubator/ode/scratch/ode/bpelTests/test1/data1_2.txt?rev=381694&view=auto
==============================================================================
--- incubator/ode/scratch/ode/bpelTests/test1/data1_2.txt (added)
+++ incubator/ode/scratch/ode/bpelTests/test1/data1_2.txt Tue Feb 28 08:31:48 2006
@@ -0,0 +1,14 @@
+# Test BPEL control flow objects
+# Control flow one is positive and control flow two is negative the loop indcator is set to minimum.
+# Expected result = Event Start Test1.2 -> root process splits into A and B -> process B completes -> process A completes -> merge into root process -> test switch statement -> case min: set loop iterations = 5 -> test loop iterations -> 2 -> 3 -> 4 -> 5 -> 6 -> test1Process complete
+
+# Note the prefix on the part name identifies the message type ( xml = xml data; str = string data )
+
+target.name.space=urn:sybase:bpel:test1Processing
+port.type=test1PT
+operation=request
+
+part1=xml.requestMessageData
+
+xml.requestMessageData=<testMessage><requestID>Start Test1.2</requestID><requestText>Event Start Test1.2</requestText><flowIndicators><indicatorOne>yes</indicatorOne><indicatorTwo>no</indicatorTwo></flowIndicators><loopIndicator>min</loopIndicator></testMessage>
+

Added: incubator/ode/scratch/ode/bpelTests/test1/data1_3.txt
URL: http://svn.apache.org/viewcvs/incubator/ode/scratch/ode/bpelTests/test1/data1_3.txt?rev=381694&view=auto
==============================================================================
--- incubator/ode/scratch/ode/bpelTests/test1/data1_3.txt (added)
+++ incubator/ode/scratch/ode/bpelTests/test1/data1_3.txt Tue Feb 28 08:31:48 2006
@@ -0,0 +1,14 @@
+# Test BPEL control flow objects
+# Control flow one is negative and control flow two is positive the loop indcator is set to minimum.
+# Expected result = Event Start Test1.3 -> root process splits into A and B -> process B completes -> process A completes -> merge into root process -> test switch statement -> case min: set loop iterations = 5 -> test loop iterations -> 2 -> 3 -> 4 -> 5 -> 6 -> test1Process complete
+
+# Note the prefix on the part name identifies the message type ( xml = xml data; str = string data )
+
+target.name.space=urn:sybase:bpel:test1Processing
+port.type=test1PT
+operation=request
+
+part1=xml.requestMessageData
+
+xml.requestMessageData=<testMessage><requestID>Start Test1.3</requestID><requestText>Event Start Test1.3</requestText><flowIndicators><indicatorOne>no</indicatorOne><indicatorTwo>yes</indicatorTwo></flowIndicators><loopIndicator>min</loopIndicator></testMessage>
+

Added: incubator/ode/scratch/ode/bpelTests/test1/data1_4.txt
URL: http://svn.apache.org/viewcvs/incubator/ode/scratch/ode/bpelTests/test1/data1_4.txt?rev=381694&view=auto
==============================================================================
--- incubator/ode/scratch/ode/bpelTests/test1/data1_4.txt (added)
+++ incubator/ode/scratch/ode/bpelTests/test1/data1_4.txt Tue Feb 28 08:31:48 2006
@@ -0,0 +1,14 @@
+# Test BPEL control flow objects
+# Both control flows are set to negative the loop indcator is set to minimum.
+# Expected result = Event Start Test1.4 -> root process splits into A and B -> process B completes -> process A completes -> merge into root process -> test switch statement -> case min: set loop iterations = 5 -> test loop iterations -> 2 -> 3 -> 4 -> 5 -> 6 -> test1Process complete
+
+# Note the prefix on the part name identifies the message type ( xml = xml data; str = string data )
+
+target.name.space=urn:sybase:bpel:test1Processing
+port.type=test1PT
+operation=request
+
+part1=xml.requestMessageData
+
+xml.requestMessageData=<testMessage><requestID>Start Test1.4</requestID><requestText>Event Start Test1.4</requestText><flowIndicators><indicatorOne>no</indicatorOne><indicatorTwo>no</indicatorTwo></flowIndicators><loopIndicator>min</loopIndicator></testMessage>
+

Added: incubator/ode/scratch/ode/bpelTests/test1/data1_5.txt
URL: http://svn.apache.org/viewcvs/incubator/ode/scratch/ode/bpelTests/test1/data1_5.txt?rev=381694&view=auto
==============================================================================
--- incubator/ode/scratch/ode/bpelTests/test1/data1_5.txt (added)
+++ incubator/ode/scratch/ode/bpelTests/test1/data1_5.txt Tue Feb 28 08:31:48 2006
@@ -0,0 +1,12 @@
+# Test BPEL control flow objects
+# Both control flows are set to positive the loop indcator is set to maximum.
+# Expected result = Event Start Test1.5 -> root process splits into A and B -> process B completes -> process A completes -> processes A and B merge on process C -> merge into root process -> test switch statement -> case max: set loop iterations = 10 -> test loop iterations -> 2 -> 3 -> 4 -> 5 -> 6 -> 7 -> 8 -> 9 -> 10 -> 11 -> test1Process complete
+
+target.name.space=urn:sybase:bpel:test1Processing
+port.type=test1PT
+operation=request
+
+part1=xml.requestMessageData
+
+xml.requestMessageData=<testMessage><requestID>Start Test1.5</requestID><requestText>Event Start Test1.5</requestText><flowIndicators><indicatorOne>yes</indicatorOne><indicatorTwo>yes</indicatorTwo></flowIndicators><loopIndicator>max</loopIndicator></testMessage>
+

Added: incubator/ode/scratch/ode/bpelTests/test1/data1_6.txt
URL: http://svn.apache.org/viewcvs/incubator/ode/scratch/ode/bpelTests/test1/data1_6.txt?rev=381694&view=auto
==============================================================================
--- incubator/ode/scratch/ode/bpelTests/test1/data1_6.txt (added)
+++ incubator/ode/scratch/ode/bpelTests/test1/data1_6.txt Tue Feb 28 08:31:48 2006
@@ -0,0 +1,14 @@
+# Test BPEL control flow objects
+# Both control flows are set to positive the loop indcator is set to default.
+# Expected result = Event Start Test1.6 -> root process splits into A and B -> process B completes -> process A completes -> processes A and B merge on process C -> merge into root process -> test switch statement -> otherwise: set loop iterations = 0 -> test loop iterations -> test1Process complete
+
+# Note the prefix on the part name identifies the message type ( xml = xml data; str = string data )
+
+target.name.space=urn:sybase:bpel:test1Processing
+port.type=test1PT
+operation=request
+
+part1=xml.requestMessageData
+
+xml.requestMessageData=<testMessage><requestID>Start Test1.6</requestID><requestText>Event Start Test1.6</requestText><flowIndicators><indicatorOne>yes</indicatorOne><indicatorTwo>yes</indicatorTwo></flowIndicators><loopIndicator>default</loopIndicator></testMessage>
+

Added: incubator/ode/scratch/ode/bpelTests/test1/test1.bpel
URL: http://svn.apache.org/viewcvs/incubator/ode/scratch/ode/bpelTests/test1/test1.bpel?rev=381694&view=auto
==============================================================================
--- incubator/ode/scratch/ode/bpelTests/test1/test1.bpel (added)
+++ incubator/ode/scratch/ode/bpelTests/test1/test1.bpel Tue Feb 28 08:31:48 2006
@@ -0,0 +1,327 @@
+<process name="test1Process" 
+         targetNamespace="urn:sybase:bpel:test1Processing"
+         xmlns:tns="urn:sybase:bpel:test1Processing"
+         suppressJoinFailure="yes"
+         xmlns:prb="urn:sybase:bpel:testProbe"
+         xmlns="http://schemas.xmlsoap.org/ws/2003/03/business-process/">
+
+<!-- test control flow elements -->
+<!--	sequence 				-->
+<!--	flow ( links ) 			-->
+<!--	swith 					-->
+<!--	while 					-->
+
+  <partnerLinks>
+	<partnerLink name="request" partnerLinkType="tns:test1Request" myRole="test1Service"/>
+	<partnerLink name="probe" partnerLinkType="tns:probeRequest" partnerRole="probeService"/>
+  </partnerLinks>
+
+  <variables>
+    <variable name="request" 
+               messageType="tns:requestMessage"/>
+    <variable name="probeInput" 
+               messageType="prb:probeMessage"/>
+    <variable name="reply" 
+               messageType="tns:replyMessage"/>
+    <variable name="internalState"
+    		   messageType="tns:internalProcessData"/>
+  </variables>
+
+  <sequence>
+	  <flow>
+	    <links>
+	      <link name="receive-to-assign1"/>
+	      <link name="assign1-to-probe1"/>
+	      <link name="assign1-to-probe2"/>
+	      <link name="probe1-to-probe3"/>
+	      <link name="probe2-to-probe3"/>
+	    </links>
+
+	    	<receive name="receive1" partnerLink="request"
+	             portType="tns:test1PT" 
+	             operation="request" variable="request"
+	             createInstance="yes">
+	         <source linkName="receive-to-assign1"/>    
+	             
+	        </receive>
+     
+	      
+		<!-- Copy input variables to internal accumulators -->
+		<!-- After the copy the process splits into two execution paths -->
+		
+		<sequence>	 
+		  <target linkName="receive-to-assign1"/>
+	      <source linkName="assign1-to-probe1"/>
+	      <source linkName="assign1-to-probe2"/>
+		
+	    <assign name="assign1">
+
+	      <copy>
+	        <from variable="request" part="requestMessageData" query="/testMessage/requestID"/>
+	        <to variable="probeInput" part="probeName"/>
+	      </copy>
+	      <copy>
+	        <from variable="request" property="tns:testProbeData"/>
+	        <to variable="probeInput" part="probeData"/>
+	      </copy>
+	    </assign> 
+
+	   		<assign>
+	      		<copy>
+	        		<from expression="'root process splits into A and B'"/>
+	        		<to variable="probeInput" part="probeName"/>
+	      		</copy>
+			</assign> 
+
+	    	<invoke name="probe2" partnerLink="probe"
+	            portType="prb:probeMessagePT" 
+	            operation="probe"
+	            inputVariable="probeInput"  
+	            outputVariable="probeInput">
+	    	</invoke> 	 	    
+	    
+	    </sequence> 
+	    
+
+	
+		<!-- probe1 outbound status is dependent on the request input testFlow1 -->
+		
+	    <sequence>
+		<target linkName="assign1-to-probe1"/>
+	      <source linkName="probe1-to-probe3" 
+	              transitionCondition="getVariableProperty('request', 'tns:testFlow1') = 'yes'"/>
+
+	  	<assign>
+	      	<copy>
+	        	<from expression="'process A completes'"/>
+	        	<to variable="probeInput" part="probeName"/>
+	      	</copy>
+		</assign> 
+
+	    <invoke name="probe3" partnerLink="probe"
+	            portType="prb:probeMessagePT" 
+	            operation="probe"
+	            inputVariable="probeInput"  
+	            outputVariable="probeInput">
+	    </invoke>
+
+	    </sequence>
+	    
+	    <!-- probe2 outbound status is dependent on the request input testFlow2 -->
+	    
+	    <sequence>
+	      <target linkName="assign1-to-probe2"/>
+	      <source linkName="probe2-to-probe3" 
+	              transitionCondition="getVariableData('request', 'requestMessageData', '/testMessage/flowIndicators/indicatorTwo') = 'yes'"/>
+
+	  	<assign>
+	      	<copy>
+	        	<from expression="'process B completes'"/>
+	        	<to variable="probeInput" part="probeName"/>
+	      	</copy>
+		</assign> 
+
+	    	<invoke name="probe4" partnerLink="probe"
+	            portType="prb:probeMessagePT" 
+	            operation="probe"
+	            inputVariable="probeInput"  
+	            outputVariable="probeInput">
+	    	</invoke>
+
+	    </sequence>
+	    
+	    <!-- The split execution path from assign1 joins on probe3 -->
+	    <!-- Probe3 will only fire if the transition condition from probe1 and probe2 both evaluate to true -->
+	    
+	    <sequence joinCondition="getLinkStatus('probe1-to-probe3') and getLinkStatus('probe2-to-probe3')">
+		  <target linkName="probe1-to-probe3"/>
+		  <target linkName="probe2-to-probe3"/>
+
+	  	  <assign>
+	      	<copy>
+	        	<from expression="'processes A and B merge on process C'"/>
+	        	<to variable="probeInput" part="probeName"/>
+	      	</copy>
+		  </assign> 
+
+		  <invoke name="probe5" partnerLink="probe" 
+	            portType="prb:probeMessagePT" 
+	            operation="probe"
+	            inputVariable="probeInput"  
+	            outputVariable="probeInput">
+	      </invoke>
+
+	    </sequence>
+	
+	  </flow>
+	  
+	  <assign>
+	      	<copy>
+	        	<from expression="'merge into root process'"/>
+	        	<to variable="probeInput" part="probeName"/>
+	      	</copy>
+	  </assign> 
+
+	  <invoke name="probe6" partnerLink="probe" 
+	            portType="prb:probeMessagePT" 
+	            operation="probe"
+	            inputVariable="probeInput"  
+	            outputVariable="probeInput">
+	  </invoke>
+
+
+	  <!-- from the input data loopIndicator set the number of loop interations -->
+
+	  <assign>
+	      	<copy>
+	        	<from expression="'test switch statement'"/>
+	        	<to variable="probeInput" part="probeName"/>
+	      	</copy>
+	  </assign> 
+
+	  <invoke name="probe7" partnerLink="probe" 
+	            portType="prb:probeMessagePT" 
+	            operation="probe"
+	            inputVariable="probeInput"  
+	            outputVariable="probeInput">
+	  </invoke>
+
+	  <switch>
+	  	<case condition="getVariableProperty('request', 'tns:loopInd') = 'min'">
+		  <sequence>
+	  		<assign name="flow1-min-assign">
+	  			<copy>
+	  				<from expression="5"/>
+	  				<to variable="internalState" part="loop1"/>
+	  			</copy>
+	  			<copy>
+	        		<from expression="'case min: set loop iterations = 5'"/>
+	        		<to variable="probeInput" part="probeName"/>
+	      		</copy>
+	      	 </assign>
+	  			<invoke name="probe8" partnerLink="probe" 
+	            	portType="prb:probeMessagePT" 
+	            	operation="probe"
+	            	inputVariable="probeInput"  
+	            	outputVariable="probeInput">
+	  			</invoke>
+	  	  </sequence>
+	  	</case>
+	  	<case condition="getVariableData('request', 'requestMessageData', '/testMessage/loopIndicator') = 'max'">
+			<sequence>
+	  		  <assign name="flow1-max-assign">
+	  			<copy>
+	  				<from expression="10"/>
+	  				<to variable="internalState" part="loop1"/>
+	  			</copy>
+	  			<copy>
+	        		<from expression="'case max: set loop iterations = 10'"/>
+	        		<to variable="probeInput" part="probeName"/>
+	      		</copy>
+	  		  </assign>
+	  		  <invoke name="probe9" partnerLink="probe" 
+	            	portType="prb:probeMessagePT" 
+	            	operation="probe"
+	            	inputVariable="probeInput"  
+	            	outputVariable="probeInput">
+	  		  </invoke>
+	  		  
+	  		</sequence>
+	  	</case>
+	  	<otherwise>
+			<sequence>
+	  		  <assign name="flow1-default-assign">
+	  			<copy>
+	  				<from expression="0"/>
+	  				<to variable="internalState" part="loop1"/>
+	  			</copy>
+	  			<copy>
+	        		<from expression="'otherwise: set loop iterations = 0'"/>
+	        		<to variable="probeInput" part="probeName"/>
+	      		</copy>
+	  		  </assign>
+	  		  <invoke name="probe10" partnerLink="probe" 
+	            	portType="prb:probeMessagePT" 
+	            	operation="probe"
+	            	inputVariable="probeInput"  
+	            	outputVariable="probeInput">
+	  		  </invoke>
+	  		  
+	  		</sequence>	  	
+	  	</otherwise>	  
+	  </switch>
+	  
+	  <assign name="while-increment-initialize">
+	  	<copy>
+	  		<from expression="0"/>
+	  		<to variable="internalState" part="loop1Counter"/>
+	  	</copy>
+	      	<copy>
+	        	<from expression="'test loop iterations'"/>
+	        	<to variable="probeInput" part="probeName"/>
+	      	</copy>
+	  </assign>
+
+	  <invoke name="probe10" partnerLink="probe" 
+	            portType="prb:probeMessagePT" 
+	            operation="probe"
+	            inputVariable="probeInput"  
+	            outputVariable="probeInput">
+	  </invoke>
+	  
+	  <while condition="getVariableData('internalState','loop1Counter') &lt; getVariableData('internalState','loop1')">
+	  	<sequence>
+			<assign name="while-increment">
+	  		   <copy>
+	  			<from expression="getVariableData('internalState','loop1Counter') + 1"/>
+	  			<to variable="internalState" part="loop1Counter"/>
+	  		   </copy>
+	  			<copy>
+	        		<from expression="getVariableData('internalState','loop1Counter') + 1"/>
+	        		<to variable="probeInput" part="probeName"/>
+	      		</copy>
+	  		</assign>
+	    		<invoke name="probe11" partnerLink="probe" 
+	            	portType="prb:probeMessagePT" 
+	            	operation="probe"
+	            	inputVariable="probeInput"  
+	            	outputVariable="probeInput">
+	    		</invoke>
+
+		</sequence>
+	  </while> 
+
+	  <!-- copy internal accumulators to the reply message -->
+
+	   	<assign>
+	      	<copy>
+	        	<from expression="'test1Process complete'"/>
+	        	<to variable="probeInput" part="probeName"/>
+	      	</copy>
+		</assign> 
+	    
+	    <invoke name="probe12" 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="tns:test1PT" 
+	           operation="request" variable="reply"> 
+	  </reply>
+
+  
+  </sequence>
+</process>

Added: incubator/ode/scratch/ode/bpelTests/test1/test1.wsdl
URL: http://svn.apache.org/viewcvs/incubator/ode/scratch/ode/bpelTests/test1/test1.wsdl?rev=381694&view=auto
==============================================================================
--- incubator/ode/scratch/ode/bpelTests/test1/test1.wsdl (added)
+++ incubator/ode/scratch/ode/bpelTests/test1/test1.wsdl Tue Feb 28 08:31:48 2006
@@ -0,0 +1,82 @@
+<!-- The public service interface for test1.bpel -->
+
+<definitions 
+      targetNamespace="urn:sybase:bpel:test1Processing"
+	xmlns:tns="urn:sybase:bpel:test1Processing"
+	xmlns:typens="urn:sybase:bpel:test1Processing:types"
+      xmlns:prb="urn:sybase:bpel:testProbe"
+      xmlns="http://schemas.xmlsoap.org/wsdl/"
+	xmlns:plnk="http://schemas.xmlsoap.org/ws/2003/05/partner-link/"      
+      xmlns:xsd="http://www.w3.org/2001/XMLSchema"
+      xmlns:bpws="http://schemas.xmlsoap.org/ws/2003/03/business-process/">
+    
+  <import namespace="urn:sybase:bpel:test1Processing"
+  		  location="bpelTests/test1/test1definitions.wsdl"/>
+  <import namespace="urn:sybase:bpel:testProbe"
+          location="bpelTests/probeService/probeService.wsdl"/>
+          
+  <!-- type defs -->
+  <types>
+    <xsd:schema
+      targetNamespace="urn:sybase:bpel:test1Processing:types"
+                xmlns:xsd="http://www.w3.org/2001/XMLSchema">
+      <xsd:complexType name="flowIndicator">
+	  <xsd:sequence>
+	    <xsd:element name="indicatorOne" type="xsd:boolean"/>
+	    <xsd:element name="indicatorTwo" type="xsd:boolean"/>
+        </xsd:sequence>
+	</xsd:complexType>
+
+      <xsd:complexType name="testMessage">
+        <xsd:sequence>
+          <xsd:element name="requestID" type="xsd:string"/>
+          <xsd:element name="requestText" type="xsd:string"/>
+          <xsd:element name="flowIndicators" type="typens:flowIndicator"/>
+	    <xsd:element name="loopIndicator" type="xsd:string"/>
+        </xsd:sequence>
+      </xsd:complexType>
+
+    </xsd:schema>
+  </types>
+
+  <bpws:property name="testProbeData" type="xsd:string"/>
+  <bpws:propertyAlias propertyName="tns:testProbeData" messageType="tns:requestMessage" part="requestMessageData" query="/testMessage/requestText"/>
+
+  <bpws:property name="testFlow1" type="xsd:boolean"/>
+  <bpws:propertyAlias propertyName="tns:testFlow1" messageType="tns:requestMessage" part="requestMessageData" query="/testMessage/flowIndicators/indicatorOne"/>
+
+  <bpws:property name="loopInd" type="xsd:string"/>
+  <bpws:propertyAlias propertyName="tns:loopInd" messageType="tns:requestMessage" part="requestMessageData" query="/testMessage/loopIndicator"/>
+
+   <message name="requestMessage">
+     <part name="requestMessageData" type="typens:testMessage"/>
+   </message>
+   
+   <message name="replyMessage">
+     <part name="replyID" type="xsd:string"/>
+     <part name="replyText" type="xsd:string"/>
+   </message>
+
+   <!-- portType supported by the test2 process -->
+
+   <portType name="test1PT">
+      <operation name="request">
+         <input message="requestMessage"/>
+         <output message="replyMessage"/>
+      </operation>
+   </portType>
+
+   <plnk:partnerLinkType name="test1Request">
+	<plnk:role name="test1Service">
+		<plnk:portType name="test1PT"/>
+	</plnk:role>
+   </plnk:partnerLinkType>
+
+   <plnk:partnerLinkType name="probeRequest">
+	<plnk:role name="probeService">
+		<plnk:portType name="prb:probeMessagePT"/>
+	</plnk:role>
+   </plnk:partnerLinkType>
+   
+
+</definitions>

Added: incubator/ode/scratch/ode/bpelTests/test1/test1.xml
URL: http://svn.apache.org/viewcvs/incubator/ode/scratch/ode/bpelTests/test1/test1.xml?rev=381694&view=auto
==============================================================================
--- incubator/ode/scratch/ode/bpelTests/test1/test1.xml (added)
+++ incubator/ode/scratch/ode/bpelTests/test1/test1.xml Tue Feb 28 08:31:48 2006
@@ -0,0 +1,10 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<BPEBinding xmlns="http://apache.org/ode/binding/ode" xmlns:prb="urn:sybase:bpel:testProbe">
+	<ActionBindings>
+		<binding  name="BPEBinding1" nameSpace="urn:sybase:bpel:testProbe" portType="probeMessagePT">
+			<operation name="probe">
+				<action implementation="org.apache.ode.action.external.ProbeAction" prb:rootSourcePart="probeName" prb:targetPart="probeData"/>
+			</operation>
+		</binding>
+	</ActionBindings>
+</BPEBinding>

Added: incubator/ode/scratch/ode/bpelTests/test1/test1definitions.wsdl
URL: http://svn.apache.org/viewcvs/incubator/ode/scratch/ode/bpelTests/test1/test1definitions.wsdl?rev=381694&view=auto
==============================================================================
--- incubator/ode/scratch/ode/bpelTests/test1/test1definitions.wsdl (added)
+++ incubator/ode/scratch/ode/bpelTests/test1/test1definitions.wsdl Tue Feb 28 08:31:48 2006
@@ -0,0 +1,15 @@
+<!-- The WSDL contains message definitions that are internal to the business -->
+<!-- process. ( i.e. counters, accumulators, bpe deployment mappings, etc ... ) -->
+
+
+<definitions targetNamespace="urn:sybase:bpel:test1Processing"
+    xmlns:tns="urn:sybase:bpel:test1Processing"
+    xmlns:xsd="http://www.w3.org/2001/XMLSchema"
+    xmlns="http://schemas.xmlsoap.org/wsdl/">
+
+  <message name="internalProcessData">
+    <part name="loop1Counter" type="xsd:int"/>
+    <part name="loop1" type="xsd:int"/>
+  </message>
+
+</definitions>

Added: incubator/ode/scratch/ode/bpelTests/test10/data10_1.txt
URL: http://svn.apache.org/viewcvs/incubator/ode/scratch/ode/bpelTests/test10/data10_1.txt?rev=381694&view=auto
==============================================================================
--- incubator/ode/scratch/ode/bpelTests/test10/data10_1.txt (added)
+++ incubator/ode/scratch/ode/bpelTests/test10/data10_1.txt Tue Feb 28 08:31:48 2006
@@ -0,0 +1,17 @@
+# Test BPEL dynamic onMessage
+# A single Receive message starts process. This is a message on portType one.
+# This message should be run in conjuction with data10_3 or data10_4 and then data10_2
+# will end the process.
+# Expected msg:  
+
+# Note the prefix on the part name identifies the message type ( xml = xml data; str = string data )
+
+target.name.space=urn:sybase:bpel:test10Processing
+port.type=test10_1PT
+operation=request
+
+part1=xml.requestMessageData
+
+xml.requestMessageData=<testMessage><requestID>Start Test10.1</requestID><requestKey1>Start Test10.1.1</requestKey1><requestKey2>Start Test10.1.2</requestKey2><requestText>Event Start Test10.1</requestText></testMessage>
+
+

Added: incubator/ode/scratch/ode/bpelTests/test10/data10_2.txt
URL: http://svn.apache.org/viewcvs/incubator/ode/scratch/ode/bpelTests/test10/data10_2.txt?rev=381694&view=auto
==============================================================================
--- incubator/ode/scratch/ode/bpelTests/test10/data10_2.txt (added)
+++ incubator/ode/scratch/ode/bpelTests/test10/data10_2.txt Tue Feb 28 08:31:48 2006
@@ -0,0 +1,18 @@
+# Test BPEL static onMessage
+# A Receive message ends the process. This is a message on portType two.
+# This message should be run in conjuction with data10_1 and data10_3 or data10_4 and then data10_2
+# will end the process.
+# Expected msg: Event Start Test10.1 -> block for next message -> received event on port test10_3PT -> received event on port test10_4PT -> process complete 
+
+# Note the prefix on the part name identifies the message type ( xml = xml data; str = string data )
+
+target.name.space=urn:sybase:bpel:test10Processing
+port.type=test10_2PT
+operation=request
+
+part1=xml.requestMessageData
+
+xml.requestMessageData=<testMessage><requestID>Start Test10.1</requestID><requestKey1>Start Test10.1.1</requestKey1><requestKey2>Start Test10.1.1</requestKey2><requestText>Event Start Test10.1</requestText></testMessage>
+
+
+

Added: incubator/ode/scratch/ode/bpelTests/test10/data10_3.txt
URL: http://svn.apache.org/viewcvs/incubator/ode/scratch/ode/bpelTests/test10/data10_3.txt?rev=381694&view=auto
==============================================================================
--- incubator/ode/scratch/ode/bpelTests/test10/data10_3.txt (added)
+++ incubator/ode/scratch/ode/bpelTests/test10/data10_3.txt Tue Feb 28 08:31:48 2006
@@ -0,0 +1,16 @@
+# Test BPEL static onMessage
+# A Receive message starts the process. N* number of messages may be sent to the process instance once it has started.
+# This message should be run after data10_1 and before data10_2
+# Expected msg:  
+
+# Note the prefix on the part name identifies the message type ( xml = xml data; str = string data )
+
+target.name.space=urn:sybase:bpel:test10Processing
+port.type=test10_3PT
+operation=request
+
+part1=xml.requestMessageData
+
+xml.requestMessageData=<testMessage><requestID>Start Test10.1</requestID><requestKey1>Start Test10.1.2</requestKey1><requestKey2>Start Test10.1.2</requestKey2><requestText>Event Start Test10.3</requestText></testMessage>
+
+

Added: incubator/ode/scratch/ode/bpelTests/test10/data10_4.txt
URL: http://svn.apache.org/viewcvs/incubator/ode/scratch/ode/bpelTests/test10/data10_4.txt?rev=381694&view=auto
==============================================================================
--- incubator/ode/scratch/ode/bpelTests/test10/data10_4.txt (added)
+++ incubator/ode/scratch/ode/bpelTests/test10/data10_4.txt Tue Feb 28 08:31:48 2006
@@ -0,0 +1,16 @@
+# Test BPEL static onMessage
+# A Receive message starts the process. N* number of messages may be sent to the process instance once it has started.
+# This message should be run after data10_1 and before data10_2
+# Expected msg:
+  
+# Note the prefix on the part name identifies the message type ( xml = xml data; str = string data )
+
+target.name.space=urn:sybase:bpel:test10Processing
+port.type=test10_4PT
+operation=request
+
+part1=xml.requestMessageData
+
+xml.requestMessageData=<testMessage><requestID>Start Test10.1</requestID><requestKey1>Start Test10.1.2</requestKey1><requestKey2>Start Test10.1.2</requestKey2><requestText>Event Start Test10.4</requestText></testMessage>
+
+

Added: incubator/ode/scratch/ode/bpelTests/test10/test10.bpel
URL: http://svn.apache.org/viewcvs/incubator/ode/scratch/ode/bpelTests/test10/test10.bpel?rev=381694&view=auto
==============================================================================
--- incubator/ode/scratch/ode/bpelTests/test10/test10.bpel (added)
+++ incubator/ode/scratch/ode/bpelTests/test10/test10.bpel Tue Feb 28 08:31:48 2006
@@ -0,0 +1,164 @@
+<process name="test10Process" 
+         targetNamespace="urn:sybase:bpel:test10Processing"
+         xmlns:tns="urn:sybase:bpel:test10Processing"
+         suppressJoinFailure="yes"
+         xmlns:prb="urn:sybase:bpel:testProbe"
+         xmlns="http://schemas.xmlsoap.org/ws/2003/03/business-process/">
+
+<!-- test onMessage with dynamic key -->
+
+  <partnerLinks>
+	<partnerLink name="request" partnerLinkType="tns:test10Request" myRole="test10Service"/>
+	<partnerLink name="probe" partnerLinkType="tns:probeRequest" partnerRole="probeService"/>
+  </partnerLinks>
+
+  <variables>
+    <variable name="request" 
+               messageType="tns:requestMessage"/>
+    <variable name="probeInput" 
+               messageType="prb:probeMessage"/>
+    <variable name="reply" 
+               messageType="tns:replyMessage"/>
+  </variables>
+
+  <correlationSets>
+	<correlationSet name="testCorr1" properties="tns:testProbeID tns:testProbeKey1"/>
+	<correlationSet name="testCorr2" properties="tns:testProbeID tns:testProbeKey2"/>
+  </correlationSets>
+
+
+  <sequence>
+	    
+	    <receive name="receive1" partnerLink="request"
+	             portType="tns:test10_1PT" 
+	             operation="request" variable="request"
+	             createInstance="yes">
+		<correlations>
+			<correlation set="testCorr1" initiate="yes"/>
+			<correlation set="testCorr2" initiate="yes"/>
+		</correlations>
+	    </receive>
+	
+		<!-- Copy input variables to internal accumulators -->
+		<!-- After the copy the process splits into two execution paths -->
+	 
+	    <assign name="assign1">
+	      <copy>
+	        <from variable="request" property="tns:testProbeID"/>
+	        <to variable="probeInput" part="probeName"/>
+	      </copy>
+	      <copy>
+	        <from variable="request" property="tns:testProbeData"/>
+	        <to variable="probeInput" part="probeData"/>
+	      </copy>
+	    </assign>   
+	
+	    
+	    <scope name="ScopeOne">
+  <eventHandlers>
+
+			<onMessage partnerLink="request"
+				portType="tns:test10_3PT" operation="request" variable="request">
+				<correlations>
+					<correlation set="testCorr2"/>
+				</correlations>
+
+				<sequence>
+	  	  			<assign>
+	      				<copy>
+	        				<from expression="'received event on port test10_3PT'"/>
+	        				<to variable="probeInput" part="probeName"/>
+	      				</copy>
+	  				</assign> 
+
+       				<invoke name="probe" partnerLink="probe"
+	            			portType="prb:probeMessagePT" 
+	            			operation="probe"
+	            			inputVariable="probeInput"  
+	            			outputVariable="probeInput">
+       				</invoke>
+				</sequence>
+			</onMessage>
+			<onMessage partnerLink="request"
+				portType="tns:test10_4PT" operation="request" variable="request">
+				<correlations>
+					<correlation set="testCorr2"/>
+				</correlations>
+
+				<sequence>
+	  	  			<assign>
+	      				<copy>
+	        				<from expression="'received event on port test10_4PT'"/>
+	        				<to variable="probeInput" part="probeName"/>
+	      				</copy>
+	  				</assign> 
+
+       				<invoke name="probe" partnerLink="probe"
+	            			portType="prb:probeMessagePT" 
+	            			operation="probe"
+	            			inputVariable="probeInput"  
+	            			outputVariable="probeInput">
+       				</invoke>
+				</sequence>
+			</onMessage>
+
+
+  </eventHandlers>
+ 	<sequence>
+ 		  <assign>
+	  		<copy>
+	   				<from expression="'block for next message'"/>
+	   				<to variable="probeInput" part="probeName"/>
+	  		</copy>
+	  	</assign> 
+
+       <invoke name="probe" partnerLink="probe"
+	            portType="prb:probeMessagePT" 
+	            operation="probe"
+	            inputVariable="probeInput"  
+	            outputVariable="probeInput">
+       </invoke> 
+	    <receive name="receive2" partnerLink="request"
+	             portType="tns:test10_2PT" 
+	             operation="request" variable="request">
+		<correlations>
+			<correlation set="testCorr1"/>
+		</correlations>
+	    </receive>
+	 </sequence>   
+	    
+	    </scope>
+
+
+
+	  	  			<assign>
+	      				<copy>
+	        				<from expression="'process complete'"/>
+	        				<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="tns:test10_2PT" 
+	           operation="request" variable="reply"> 
+	  </reply>
+  
+  </sequence>
+</process>

Added: incubator/ode/scratch/ode/bpelTests/test10/test10.wsdl
URL: http://svn.apache.org/viewcvs/incubator/ode/scratch/ode/bpelTests/test10/test10.wsdl?rev=381694&view=auto
==============================================================================
--- incubator/ode/scratch/ode/bpelTests/test10/test10.wsdl (added)
+++ incubator/ode/scratch/ode/bpelTests/test10/test10.wsdl Tue Feb 28 08:31:48 2006
@@ -0,0 +1,115 @@
+<!-- The public service interface for test10.bpel -->
+
+<definitions 
+      targetNamespace="urn:sybase:bpel:test10Processing"
+	xmlns:tns="urn:sybase:bpel:test10Processing"
+	xmlns:typens="urn:sybase:bpel:test10Processing:types"
+      xmlns="http://schemas.xmlsoap.org/wsdl/"
+	xmlns:plnk="http://schemas.xmlsoap.org/ws/2003/05/partner-link/"      
+      xmlns:xsd="http://www.w3.org/2001/XMLSchema"
+      xmlns:prb="urn:sybase:bpel:testProbe"
+      xmlns:bpws="http://schemas.xmlsoap.org/ws/2003/03/business-process/">
+
+  <import namespace="urn:sybase:bpel:testProbe"
+          location="bpelTests/probeService/probeService.wsdl"/>
+          
+  <!-- type defs -->
+  <types>
+    <xsd:schema
+      targetNamespace="urn:sybase:bpel:test10Processing: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="requestKey1" type="xsd:string"/>
+          <xsd:element name="requestKey2" type="xsd:string"/>
+          <xsd:element name="requestText" type="xsd:string"/>
+        </xsd:sequence>
+      </xsd:complexType>
+
+    </xsd:schema>
+  </types>
+
+  <bpws:property name="testProbeKey1" type="xsd:string"/>
+  <bpws:propertyAlias propertyName="tns:testProbeKey1" messageType="tns:requestMessage" part="requestMessageData" query="/testMessage/requestKey1"/>
+
+  <bpws:property name="testProbeKey2" type="xsd:string"/>
+  <bpws:propertyAlias propertyName="tns:testProbeKey2" messageType="tns:requestMessage" part="requestMessageData" query="/testMessage/requestKey2"/>
+
+  <bpws:property name="testProbeID" type="xsd:string"/>
+  <bpws:propertyAlias propertyName="tns:testProbeID" messageType="tns:requestMessage" part="requestMessageData" query="/testMessage/requestID"/>
+
+  <bpws:property name="testProbeData" type="xsd:string"/>
+  <bpws:propertyAlias propertyName="tns:testProbeData" messageType="tns:requestMessage" part="requestMessageData" query="/testMessage/requestText"/>
+
+
+   <message name="requestMessage">
+     <part name="requestMessageData" type="typens:testMessage"/>
+   </message>
+
+   <message name="replyMessage">
+     <part name="replyID" type="xsd:string"/>
+     <part name="replyText" type="xsd:string"/>
+   </message>
+
+   <!-- portType supported by the test2 process -->
+
+   <portType name="test10_1PT">
+      <operation name="request">
+         <input message="requestMessage"/>
+      </operation>
+   </portType>
+
+   <portType name="test10_2PT">
+      <operation name="request">
+         <input message="requestMessage"/>
+         <output message="replyMessage"/>
+      </operation>
+   </portType>
+
+   <portType name="test10_3PT">
+      <operation name="request">
+         <input message="requestMessage"/>
+      </operation>
+   </portType>
+
+   <portType name="test10_4PT">
+      <operation name="request">
+         <input message="requestMessage"/>
+      </operation>
+   </portType>
+
+
+   <plnk:partnerLinkType name="test10_1Request">
+	<plnk:role name="test8_1Service">
+		<plnk:portType name="test8_1PT"/>
+	</plnk:role>
+   </plnk:partnerLinkType>
+
+   <plnk:partnerLinkType name="test10_2Request">
+	<plnk:role name="test10_2Service">
+		<plnk:portType name="test11_2PT"/>
+	</plnk:role>
+   </plnk:partnerLinkType>
+
+   <plnk:partnerLinkType name="test10_3Request">
+	<plnk:role name="test10_3Service">
+		<plnk:portType name="test10_3PT"/>
+	</plnk:role>
+   </plnk:partnerLinkType>
+
+   <plnk:partnerLinkType name="test10_4Request">
+	<plnk:role name="test10_4Service">
+		<plnk:portType name="test10_4PT"/>
+	</plnk:role>
+   </plnk:partnerLinkType>
+
+
+   <plnk:partnerLinkType name="probeRequest">
+	<plnk:role name="probeService">
+		<plnk:portType name="prb:probeMessagePT"/>
+	</plnk:role>
+   </plnk:partnerLinkType>
+
+</definitions>

Added: incubator/ode/scratch/ode/bpelTests/test10/test10.xml
URL: http://svn.apache.org/viewcvs/incubator/ode/scratch/ode/bpelTests/test10/test10.xml?rev=381694&view=auto
==============================================================================
--- incubator/ode/scratch/ode/bpelTests/test10/test10.xml (added)
+++ incubator/ode/scratch/ode/bpelTests/test10/test10.xml Tue Feb 28 08:31:48 2006
@@ -0,0 +1,10 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<BPEBinding xmlns="http://apache.org/ode/binding/ode" xmlns:prb="urn:sybase:bpel:testProbe" >
+	<ActionBindings>
+		<binding  name="BPEBinding1" nameSpace="urn:sybase:bpel:testProbe" portType="probeMessagePT">
+			<operation name="probe">
+				<action implementation="org.apache.ode.action.external.ProbeAction" prb:rootSourcePart="probeName" prb:targetPart="probeData"/>
+			</operation>
+		</binding>
+	</ActionBindings>
+</BPEBinding>

Added: incubator/ode/scratch/ode/bpelTests/test12/data12_1.txt
URL: http://svn.apache.org/viewcvs/incubator/ode/scratch/ode/bpelTests/test12/data12_1.txt?rev=381694&view=auto
==============================================================================
--- incubator/ode/scratch/ode/bpelTests/test12/data12_1.txt (added)
+++ incubator/ode/scratch/ode/bpelTests/test12/data12_1.txt Tue Feb 28 08:31:48 2006
@@ -0,0 +1,13 @@
+# Test BPEL namespace in XPATH query
+# Expected result:
+# Part "replyID" value: Start Test12
+# Part "replyText" value: pass 
+
+target.name.space=urn:sybase:bpel:test12Processing
+port.type=test12PT
+operation=request
+
+part1=xml.requestMessageData
+
+xml.requestMessageData=<testMessage xmlns:foo="urn:sybase:default"><requestID>Start Test12</requestID><requestText>Event Start Test12</requestText><typeIndicators xmlns:foo="urn:sybase:bpel:test12Processing:types1"><foo:indicatorOne>pass</foo:indicatorOne><foo:indicatorTwo>pass</foo:indicatorTwo></typeIndicators></testMessage>
+

Added: incubator/ode/scratch/ode/bpelTests/test12/test12.bpel
URL: http://svn.apache.org/viewcvs/incubator/ode/scratch/ode/bpelTests/test12/test12.bpel?rev=381694&view=auto
==============================================================================
--- incubator/ode/scratch/ode/bpelTests/test12/test12.bpel (added)
+++ incubator/ode/scratch/ode/bpelTests/test12/test12.bpel Tue Feb 28 08:31:48 2006
@@ -0,0 +1,60 @@
+<process name="test12Process" 
+         targetNamespace="urn:sybase:bpel:test12Processing"
+         xmlns:tns="urn:sybase:bpel:test12Processing"
+         xmlns:prb="urn:sybase:bpel:testProbe"
+         xmlns:types1="urn:sybase:bpel:test12Processing:types1"
+         xmlns:types2="urn:sybase:bpel:test12Processing:types2"
+         xmlns="http://schemas.xmlsoap.org/ws/2003/03/business-process/">
+
+<!-- test namespace syntax within XPATH expression -->
+
+  <partnerLinks>
+	<partnerLink name="request" partnerLinkType="test12Request" myRole="test12Service"/>
+	<partnerLink name="probe" partnerLinkType="probeRequest" partnerRole="probeService"/>
+  </partnerLinks>
+
+  <variables>
+    <variable name="request" 
+               messageType="tns:requestMessage1"/>
+    <variable name="testXMLType" type="types2:testMessage"/>
+    <variable name="probeInput" 
+               messageType="prb:probeMessage"/>
+    <variable name="reply" 
+               messageType="tns:replyMessage1"/>
+  </variables>
+
+  <sequence>
+	    <receive name="receive1" partnerLink="request"
+	             portType="tns:test12PT" 
+	             operation="request" variable="request"
+	             createInstance="yes">
+	    </receive>
+	
+		<!-- Copy input variables to internal accumulators -->
+	 
+	    <assign name="assign1">
+	      <copy>
+	        <from variable="request" part="requestMessageData" query="/testMessage/requestID"/>
+	        <to variable="reply" part="replyID"/>
+	      </copy>
+	      <copy>
+	        <from xmlns:foo="urn:sybase:bpel:test12Processing:types1" variable="request" part="requestMessageData" query="/testMessage/typeIndicators/foo:indicatorTwo"/>
+	        <to variable="reply" part="replyText"/>
+	      </copy>
+	      <copy>
+	        <from variable="request" part="requestMessageData" query="/testMessage/typeIndicators/types1:indicatorTwo"/>
+	        <to variable="reply" part="replyText"/>
+	      </copy>
+	      <copy>
+	        <from expression="'pass'"/>
+	        <to variable="reply" part="replyText"/>
+	      </copy>
+	    </assign>   
+	
+	  <reply name="reply" partnerLink="request" portType="tns:test12PT" 
+	           operation="request" variable="reply"> 
+	  </reply>
+
+  
+  </sequence>
+</process>

Added: incubator/ode/scratch/ode/bpelTests/test12/test12.wsdl
URL: http://svn.apache.org/viewcvs/incubator/ode/scratch/ode/bpelTests/test12/test12.wsdl?rev=381694&view=auto
==============================================================================
--- incubator/ode/scratch/ode/bpelTests/test12/test12.wsdl (added)
+++ incubator/ode/scratch/ode/bpelTests/test12/test12.wsdl Tue Feb 28 08:31:48 2006
@@ -0,0 +1,84 @@
+<definitions 
+      targetNamespace="urn:sybase:bpel:test12Processing"
+	xmlns:tns="urn:sybase:bpel:test12Processing"
+	xmlns:typens="urn:sybase:bpel:test12Processing:types2"
+      xmlns:prb="urn:sybase:bpel:testProbe"
+      xmlns="http://schemas.xmlsoap.org/wsdl/"
+	xmlns:plnk="http://schemas.xmlsoap.org/ws/2003/05/partner-link/"      
+      xmlns:xsd="http://www.w3.org/2001/XMLSchema"
+      xmlns:bpws="http://schemas.xmlsoap.org/ws/2003/03/business-process/">
+    
+  <import namespace="urn:sybase:bpel:testProbe"
+          location="bpelTests/probeService/probeService.wsdl"/>
+
+  <!-- type defs -->
+  <types>
+ 
+     <xsd:schema
+      	targetNamespace="urn:sybase:bpel:test12Processing:types1"
+                xmlns:xsd="http://www.w3.org/2001/XMLSchema">
+      <xsd:complexType name="typeIndicator">
+	  <xsd:sequence>
+	    <xsd:element name="indicatorOne" type="xsd:string"/>
+	    <xsd:element name="indicatorTwo" type="xsd:string"/>
+        </xsd:sequence>
+	</xsd:complexType>
+    </xsd:schema>   
+  
+    <xsd:schema
+      targetNamespace="urn:sybase:bpel:test1Processing:types2"
+                xmlns:xsd="http://www.w3.org/2001/XMLSchema"
+                xmlns:type2="urn:sybase:bpel:test12Processing:types1">
+
+      <xsd:complexType name="testMessage">
+        <xsd:sequence>
+          <xsd:element name="requestID" type="xsd:string"/>
+          <xsd:element name="requestText" type="xsd:string"/>
+          <xsd:element name="typeIndicators" type="type2:typeIndicator"/>
+        </xsd:sequence>
+      </xsd:complexType>
+
+    </xsd:schema>
+  </types>
+
+  <bpws:property name="testProbeData" type="xsd:string"/>
+  <bpws:propertyAlias propertyName="tns:testProbeData" messageType="tns:requestMessage1" part="requestMessageData" query="/testMessage/requestText"/>
+
+  <bpws:property name="testProbeID" type="xsd:string"/>
+  <bpws:propertyAlias propertyName="tns:testProbeID" messageType="tns:requestMessage2" part="requestID"/>
+
+  <bpws:property name="testPath" type="xsd:string"/>
+  <bpws:propertyAlias propertyName="tns:testPath" messageType="tns:requestMessage1" part="requestMessageData" query="/testMessage/typeIndicators/types1:indicator2"/>
+
+   <message name="requestMessage1">
+     <part name="requestMessageData" type="typens:testMessage"/>
+   </message>
+   
+   <message name="replyMessage1">
+     <part name="replyID" type="xsd:string"/>
+     <part name="replyText" type="xsd:string"/>
+   </message>
+   
+
+   <!-- portType supported by the test2 process -->
+
+   <portType name="test12PT">
+      <operation name="request">
+         <input message="requestMessage"/>
+         <output message="replyMessage"/>
+      </operation>
+   </portType>
+
+   <plnk:partnerLinkType name="test12Request">
+	<plnk:role name="test12Service">
+		<plnk:portType name="test12PT"/>
+	</plnk:role>
+   </plnk:partnerLinkType>
+
+   <plnk:partnerLinkType name="probeRequest">
+	<plnk:role name="probeService">
+		<plnk:portType name="prb:probeMessagePT"/>
+	</plnk:role>
+   </plnk:partnerLinkType>
+
+</definitions>

Added: incubator/ode/scratch/ode/bpelTests/test12/test12.xml
URL: http://svn.apache.org/viewcvs/incubator/ode/scratch/ode/bpelTests/test12/test12.xml?rev=381694&view=auto
==============================================================================
--- incubator/ode/scratch/ode/bpelTests/test12/test12.xml (added)
+++ incubator/ode/scratch/ode/bpelTests/test12/test12.xml Tue Feb 28 08:31:48 2006
@@ -0,0 +1,10 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<BPEBinding xmlns="http://apache.org/ode/binding/ode" xmlns:prb="urn:sybase:bpel:testProbe">
+	<ActionBindings>
+		<binding  name="BPEBinding1" nameSpace="urn:sybase:bpel:testProbe" portType="probeMessagePT">
+			<operation name="probe">
+				<action implementation="org.apache.ode.action.external.ProbeAction" prb:rootSourcePart="probeName" prb:targetPart="probeData"/>
+			</operation>
+		</binding>
+	</ActionBindings>
+</BPEBinding>

Added: incubator/ode/scratch/ode/bpelTests/test13/data13_1.txt
URL: http://svn.apache.org/viewcvs/incubator/ode/scratch/ode/bpelTests/test13/data13_1.txt?rev=381694&view=auto
==============================================================================
--- incubator/ode/scratch/ode/bpelTests/test13/data13_1.txt (added)
+++ incubator/ode/scratch/ode/bpelTests/test13/data13_1.txt Tue Feb 28 08:31:48 2006
@@ -0,0 +1,15 @@
+# Test BPEL simple message part type
+# Expected result:
+#Part "replyID" value: Test13
+#Part "replyText" value: pass
+
+target.name.space=urn:sybase:bpel:test13Processing
+port.type=test13PT
+operation=request
+
+part1=str.requestID
+part2=str.requestText
+
+str.requestID=Test13
+str.requestText=Event Start Test13
+

Added: incubator/ode/scratch/ode/bpelTests/test13/test13.bpel
URL: http://svn.apache.org/viewcvs/incubator/ode/scratch/ode/bpelTests/test13/test13.bpel?rev=381694&view=auto
==============================================================================
--- incubator/ode/scratch/ode/bpelTests/test13/test13.bpel (added)
+++ incubator/ode/scratch/ode/bpelTests/test13/test13.bpel Tue Feb 28 08:31:48 2006
@@ -0,0 +1,53 @@
+<process name="test13Process" 
+         targetNamespace="urn:sybase:bpel:test13Processing"
+         xmlns:tns="urn:sybase:bpel:test13Processing"
+         xmlns:prb="urn:sybase:bpel:testProbe"
+         xmlns="http://schemas.xmlsoap.org/ws/2003/03/business-process/">
+
+<!-- test simple type parts -->
+
+  <partnerLinks>
+	<partnerLink name="request" partnerLinkType="test13Request" myRole="test13Service"/>
+	<partnerLink name="probe" partnerLinkType="probeRequest" partnerRole="probeService"/>
+  </partnerLinks>
+
+  <variables>
+    <variable name="request" 
+               messageType="tns:requestMessage"/>
+    <variable name="probeInput" 
+               messageType="prb:probeMessage"/>
+    <variable name="reply" 
+               messageType="tns:replyMessage"/>
+  </variables>
+
+  <sequence>
+	    <receive name="receive1" partnerLink="request"
+	             portType="tns:test13PT" 
+	             operation="request" variable="request"
+	             createInstance="yes">
+	    </receive>
+	
+		<!-- Copy input variables to internal accumulators -->
+	 
+	    <assign name="assign1">
+	      <copy>
+	        <from variable="request" property="tns:testProbeID"/>
+	        <to variable="reply" part="replyID"/>
+	      </copy>
+	      <copy>
+	        <from variable="request" part="requestText"/>
+	        <to variable="reply" part="replyText"/>
+	      </copy>
+	      <copy>
+	        <from expression="'pass'"/>
+	        <to variable="reply" part="replyText"/>
+	      </copy>
+	    </assign>   
+	
+	  <reply name="reply" partnerLink="request" portType="tns:test13PT" 
+	           operation="request" variable="reply"> 
+	  </reply>
+
+  
+  </sequence>
+</process>

Added: incubator/ode/scratch/ode/bpelTests/test13/test13.wsdl
URL: http://svn.apache.org/viewcvs/incubator/ode/scratch/ode/bpelTests/test13/test13.wsdl?rev=381694&view=auto
==============================================================================
--- incubator/ode/scratch/ode/bpelTests/test13/test13.wsdl (added)
+++ incubator/ode/scratch/ode/bpelTests/test13/test13.wsdl Tue Feb 28 08:31:48 2006
@@ -0,0 +1,47 @@
+<definitions 
+      targetNamespace="urn:sybase:bpel:test13Processing"
+	xmlns:tns="urn:sybase:bpel:test13Processing"
+      xmlns:prb="urn:sybase:bpel:testProbe"
+      xmlns="http://schemas.xmlsoap.org/wsdl/"
+	xmlns:plnk="http://schemas.xmlsoap.org/ws/2003/05/partner-link/"      
+      xmlns:xsd="http://www.w3.org/2001/XMLSchema"
+      xmlns:bpws="http://schemas.xmlsoap.org/ws/2003/03/business-process/">
+    
+  <import namespace="urn:sybase:bpel:testProbe"
+          location="bpelTests/probeService/probeService.wsdl"/>
+
+  <bpws:property name="testProbeID" type="xsd:string"/>
+  <bpws:propertyAlias propertyName="tns:testProbeID" messageType="tns:requestMessage" part="requestID"/>
+
+  <message name="requestMessage">
+   	  <part name="requestID" type="xsd:string"/>
+   	  <part name="requestText" type="xsd:string"/>
+   </message>
+   
+   <message name="replyMessage">
+     <part name="replyID" type="xsd:string"/>
+     <part name="replyText" type="xsd:string"/>
+   </message>
+   
+   <!-- portType supported by the test2 process -->
+
+   <portType name="test13PT">
+      <operation name="request">
+         <input message="requestMessage"/>
+         <output message="replyMessage"/>
+      </operation>
+   </portType>
+
+   <plnk:partnerLinkType name="test13Request">
+	<plnk:role name="test13Service">
+		<plnk:portType name="test13PT"/>
+	</plnk:role>
+   </plnk:partnerLinkType>
+
+   <plnk:partnerLinkType name="probeRequest">
+	<plnk:role name="probeService">
+		<plnk:portType name="prb:probeMessagePT"/>
+	</plnk:role>
+   </plnk:partnerLinkType>
+
+</definitions>

Added: incubator/ode/scratch/ode/bpelTests/test13/test13.xml
URL: http://svn.apache.org/viewcvs/incubator/ode/scratch/ode/bpelTests/test13/test13.xml?rev=381694&view=auto
==============================================================================
--- incubator/ode/scratch/ode/bpelTests/test13/test13.xml (added)
+++ incubator/ode/scratch/ode/bpelTests/test13/test13.xml Tue Feb 28 08:31:48 2006
@@ -0,0 +1,10 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<BPEBinding xmlns="http://apache.org/ode/binding/ode" xmlns:prb="urn:sybase:bpel:testProbe">
+	<ActionBindings>
+		<binding  name="BPEBinding1" nameSpace="urn:sybase:bpel:testProbe" portType="probeMessagePT">
+			<operation name="probe">
+				<action implementation="org.apache.ode.action.external.ProbeAction" prb:rootSourcePart="probeName" prb:targetPart="probeData"/>
+			</operation>
+		</binding>
+	</ActionBindings>
+</BPEBinding>

Added: incubator/ode/scratch/ode/bpelTests/test14/data14_1.txt
URL: http://svn.apache.org/viewcvs/incubator/ode/scratch/ode/bpelTests/test14/data14_1.txt?rev=381694&view=auto
==============================================================================
--- incubator/ode/scratch/ode/bpelTests/test14/data14_1.txt (added)
+++ incubator/ode/scratch/ode/bpelTests/test14/data14_1.txt Tue Feb 28 08:31:48 2006
@@ -0,0 +1,15 @@
+# Test BPEL simple XML type variable
+# Expected result: 
+# Part "replyID" value: Test14
+# Part "replyText" value: pass
+
+target.name.space=urn:sybase:bpel:test14Processing
+port.type=test14PT
+operation=request
+
+part1=str.requestID
+part2=str.requestText
+
+str.requestID=Test14
+str.requestText=Event Start Test14
+

Added: incubator/ode/scratch/ode/bpelTests/test14/test14.bpel
URL: http://svn.apache.org/viewcvs/incubator/ode/scratch/ode/bpelTests/test14/test14.bpel?rev=381694&view=auto
==============================================================================
--- incubator/ode/scratch/ode/bpelTests/test14/test14.bpel (added)
+++ incubator/ode/scratch/ode/bpelTests/test14/test14.bpel Tue Feb 28 08:31:48 2006
@@ -0,0 +1,59 @@
+<process name="test14Process" 
+         targetNamespace="urn:sybase:bpel:test14Processing"
+         xmlns:tns="urn:sybase:bpel:test14Processing"
+         xmlns:prb="urn:sybase:bpel:testProbe"
+         xmlns:xsd="http://www.w3.org/2001/XMLSchema"
+         xmlns="http://schemas.xmlsoap.org/ws/2003/03/business-process/">
+
+<!-- test simple XMLSchema variable type -->
+
+  <partnerLinks>
+	<partnerLink name="request" partnerLinkType="tns:test14Request" myRole="test14Service"/>
+	<partnerLink name="probe" partnerLinkType="tns:probeRequest" partnerRole="probeService"/>
+  </partnerLinks>
+
+  <variables>
+    <variable name="request" 
+               messageType="tns:requestMessage"/>
+    <variable name="testType" type="xsd:string"/>
+    <variable name="probeInput" 
+               messageType="prb:probeMessage"/>
+    <variable name="reply" 
+               messageType="tns:replyMessage"/>
+  </variables>
+
+  <sequence>
+	    <receive name="receive1" partnerLink="request"
+	             portType="tns:test14PT" 
+	             operation="request" variable="request"
+	             createInstance="yes">
+	    </receive>
+	
+		<!-- Copy input variables to internal accumulators -->
+	 
+	    <assign name="assign1">
+	      <copy>
+	        <from variable="request" property="tns:testProbeID"/>
+	        <to variable="testType"/>
+	      </copy>
+	      <copy>
+	      	 <from variable="testType"/>
+	      	 <to variable="reply" part="replyID"/>
+	      </copy>
+	      <copy>
+	        <from variable="request" part="requestText"/>
+	        <to variable="reply" part="replyText"/>
+	      </copy>
+	      <copy>
+	        <from expression="'pass'"/>
+	        <to variable="reply" part="replyText"/>
+	      </copy>
+	    </assign>   
+	
+	  <reply name="reply" partnerLink="request" portType="tns:test14PT" 
+	           operation="request" variable="reply"> 
+	  </reply>
+
+  
+  </sequence>
+</process>

Added: incubator/ode/scratch/ode/bpelTests/test14/test14.wsdl
URL: http://svn.apache.org/viewcvs/incubator/ode/scratch/ode/bpelTests/test14/test14.wsdl?rev=381694&view=auto
==============================================================================
--- incubator/ode/scratch/ode/bpelTests/test14/test14.wsdl (added)
+++ incubator/ode/scratch/ode/bpelTests/test14/test14.wsdl Tue Feb 28 08:31:48 2006
@@ -0,0 +1,47 @@
+<definitions 
+      targetNamespace="urn:sybase:bpel:test14Processing"
+	xmlns:tns="urn:sybase:bpel:test14Processing"
+      xmlns:prb="urn:sybase:bpel:testProbe"
+      xmlns="http://schemas.xmlsoap.org/wsdl/"
+	xmlns:plnk="http://schemas.xmlsoap.org/ws/2003/05/partner-link/"      
+      xmlns:xsd="http://www.w3.org/2001/XMLSchema"
+      xmlns:bpws="http://schemas.xmlsoap.org/ws/2003/03/business-process/">
+
+  <import namespace="urn:sybase:bpel:testProbe"
+          location="bpelTests/probeService/probeService.wsdl"/>
+
+  <bpws:property name="testProbeID" type="xsd:string"/>
+  <bpws:propertyAlias propertyName="tns:testProbeID" messageType="tns:requestMessage" part="requestID"/>
+
+  <message name="requestMessage">
+   	  <part name="requestID" type="xsd:string"/>
+   	  <part name="requestText" type="xsd:string"/>
+   </message>
+   
+   <message name="replyMessage">
+     <part name="replyID" type="xsd:string"/>
+     <part name="replyText" type="xsd:string"/>
+   </message>
+   
+   <!-- portType supported by the test2 process -->
+
+   <portType name="test14PT">
+      <operation name="request">
+         <input message="requestMessage"/>
+         <output message="replyMessage"/>
+      </operation>
+   </portType>
+
+   <plnk:partnerLinkType name="test14Request">
+	<plnk:role name="test14Service">
+		<plnk:portType name="test14PT"/>
+	</plnk:role>
+   </plnk:partnerLinkType>
+
+   <plnk:partnerLinkType name="probeRequest">
+	<plnk:role name="probeService">
+		<plnk:portType name="prb:probeMessagePT"/>
+	</plnk:role>
+   </plnk:partnerLinkType>
+
+</definitions>

Added: incubator/ode/scratch/ode/bpelTests/test14/test14.xml
URL: http://svn.apache.org/viewcvs/incubator/ode/scratch/ode/bpelTests/test14/test14.xml?rev=381694&view=auto
==============================================================================
--- incubator/ode/scratch/ode/bpelTests/test14/test14.xml (added)
+++ incubator/ode/scratch/ode/bpelTests/test14/test14.xml Tue Feb 28 08:31:48 2006
@@ -0,0 +1,10 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<BPEBinding xmlns="http://apache.org/ode/binding/ode" xmlns:prb="urn:sybase:bpel:testProbe">
+	<ActionBindings>
+		<binding  name="BPEBinding1" nameSpace="urn:sybase:bpel:testProbe" portType="probeMessagePT">
+			<operation name="probe">
+				<action implementation="org.apache.ode.action.external.ProbeAction" prb:rootSourcePart="probeName" prb:targetPart="probeData"/>
+			</operation>
+		</binding>
+	</ActionBindings>
+</BPEBinding>

Added: incubator/ode/scratch/ode/bpelTests/test15/data15_1.txt
URL: http://svn.apache.org/viewcvs/incubator/ode/scratch/ode/bpelTests/test15/data15_1.txt?rev=381694&view=auto
==============================================================================
--- incubator/ode/scratch/ode/bpelTests/test15/data15_1.txt (added)
+++ incubator/ode/scratch/ode/bpelTests/test15/data15_1.txt Tue Feb 28 08:31:48 2006
@@ -0,0 +1,13 @@
+# Test BPEL namespace in XPATH query
+# Expected result:
+# Part "replyID" value: Start Test15
+# Part "replyText" value: pass 
+
+target.name.space=urn:sybase:bpel:test15Processing
+port.type=test15PT
+operation=request
+
+part1=xml.requestMessageData
+
+xml.requestMessageData=<testMessage><requestID>Start Test15</requestID><requestText>Event Start Test15</requestText><typeIndicators xmlns:foo="urn:sybase:bpel:test12Processing:types1"><foo:indicatorOne>fail</foo:indicatorOne><foo:indicatorTwo>fail</foo:indicatorTwo></typeIndicators></testMessage>
+

Added: incubator/ode/scratch/ode/bpelTests/test15/test15.bpel
URL: http://svn.apache.org/viewcvs/incubator/ode/scratch/ode/bpelTests/test15/test15.bpel?rev=381694&view=auto
==============================================================================
--- incubator/ode/scratch/ode/bpelTests/test15/test15.bpel (added)
+++ incubator/ode/scratch/ode/bpelTests/test15/test15.bpel Tue Feb 28 08:31:48 2006
@@ -0,0 +1,69 @@
+<process name="test15Process" targetNamespace="urn:sybase:bpel:test15Processing" xmlns:tns="urn:sybase:bpel:test15Processing" xmlns:types1="urn:sybase:bpel:test12Processing:types1" xmlns:types2="urn:sybase:bpel:test12Processing:types2" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns="http://schemas.xmlsoap.org/ws/2003/03/business-process/">
+	<!-- test simple XMLSchema variable type -->
+	<partnerLinks>
+		<partnerLink name="request" partnerLinkType="test15Request" myRole="test15Service"/>
+	</partnerLinks>
+	<variables>
+		<variable name="request" messageType="tns:requestMessage"/>
+		<variable name="testType1" type="types2:testMessage"/>
+		<variable name="testType2" type="types2:testMessage"/>
+		<variable name="testType3" type="xsd:string"/>
+		<variable name="testType4" type="xsd:string"/>
+		<variable name="reply" messageType="tns:replyMessage"/>
+	</variables>
+	<sequence>
+		<receive name="receive1" partnerLink="request" portType="tns:test15PT" operation="request" variable="request" createInstance="yes"/>
+		<!-- Copy input variables to internal accumulators -->
+		<assign name="assign1">
+			<!-- copy a tree to a tree -->
+			<copy>
+				<from variable="request" part="requestMessageData" query="/testMessage/typeIndicators/types1:indicatorTwo"/>
+				<to variable="testType3"/>
+			</copy>
+			<copy>
+				<from variable="request" property="tns:testPath"/>
+				<to variable="testType4"/>
+			</copy>
+			<copy>
+				<from variable="request" part="requestMessageData"/>
+				<to variable="testType1"/>
+			</copy>
+			<copy>
+				<from variable="testType1"/>
+				<to variable="testType2"/>
+			</copy>
+			<!-- copy value into tree -->
+			<copy>
+				<from expression="'pass'"/>
+				<to variable="testType1" query="/testMessage/typeIndicators/types1:indicatorTwo"/>
+			</copy>		
+		</assign>
+		
+		<assign name="assignP">	
+			<copy>
+				<from variable="testType2" query="/testMessage/typeIndicators"/>
+				<to variable="testType2"/>
+			</copy>
+		</assign>
+		
+		<assign name="assignG">
+			<!-- copy subtree to tree -->
+			<copy>
+				<from variable="testType1" query="/testMessage/typeIndicators"/>
+				<to variable="testType2" query="/testMessage"/>
+			</copy>
+		</assign>
+		<assign name="assign3">			
+			<copy>
+				<from variable="testType2" query="/testMessage/requestID"/>
+				<to variable="reply" part="replyID"/>
+			</copy>
+			<copy>
+				<from variable="testType2" query="/testMessage/typeIndicators/types1:indicatorTwo"/>
+				<to variable="reply" part="replyText"/>
+			</copy>
+		</assign>
+		
+		<reply name="reply" partnerLink="request" portType="tns:test15PT" operation="request" variable="reply"/>
+	</sequence>
+</process>