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:05:47 UTC

svn commit: r381686 [2/40] - in /incubator/ode/scratch/bpe: ./ bpelTests/ bpelTests/probeService/ bpelTests/test1/ bpelTests/test10/ bpelTests/test12/ bpelTests/test13/ bpelTests/test14/ bpelTests/test15/ bpelTests/test16/ bpelTests/test17/ bpelTests/t...

Added: incubator/ode/scratch/bpe/.project
URL: http://svn.apache.org/viewcvs/incubator/ode/scratch/bpe/.project?rev=381686&view=auto
==============================================================================
--- incubator/ode/scratch/bpe/.project (added)
+++ incubator/ode/scratch/bpe/.project Tue Feb 28 08:02:48 2006
@@ -0,0 +1,11 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<projectDescription>
+	<name>bpe</name>
+	<comment></comment>
+	<projects>
+	</projects>
+	<buildSpec>
+	</buildSpec>
+	<natures>
+	</natures>
+</projectDescription>

Added: incubator/ode/scratch/bpe/README.TXT
URL: http://svn.apache.org/viewcvs/incubator/ode/scratch/bpe/README.TXT?rev=381686&view=auto
==============================================================================
--- incubator/ode/scratch/bpe/README.TXT (added)
+++ incubator/ode/scratch/bpe/README.TXT Tue Feb 28 08:02: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/bpe/SourceCodeEvaluationAgreement.txt
URL: http://svn.apache.org/viewcvs/incubator/ode/scratch/bpe/SourceCodeEvaluationAgreement.txt?rev=381686&view=auto
==============================================================================
--- incubator/ode/scratch/bpe/SourceCodeEvaluationAgreement.txt (added)
+++ incubator/ode/scratch/bpe/SourceCodeEvaluationAgreement.txt Tue Feb 28 08:02:48 2006
@@ -0,0 +1,12 @@
+SOURCE CODE EVALUATION LICENSE AGREEMENT
+
+THE ACCOMPANYING SOURCE CODE (“PROGRAM”) IS PROVIDED UNDER THE TERMS OF THIS AGREEMENT.  ANY USE OR REPRODUCTION OF THE PROGRAM CONSTITUTES YOUR ACCEPTANCE OF THIS AGREEMENT.  
+
+1.  EVALUATION USE.  The purpose of this Agreement is for You to evaluate the Program for thirty (30) days from the date you download the Program.  Sybase grants You a non-exclusive, non-transferable license to use and reproduce a reasonable number of copies of the Program solely for internal trial and evaluation purposes on a single computer system.  At the end of such 30 day period, this license shall expire and You shall immediately cease use of the Program, and destroy all copies of the Program in any form. Sybase has no obligation to provide You with any maintenance services or any updates or new versions of the Program. 
+2.  LICENSE RESTRICTIONS.  The Program may not be transferred, assigned, sublicensed, distributed, rented, leased, or otherwise conveyed to another party.  You shall not copy the Program, except as reasonably necessary for installation of the Program and inactive back-up and archival purposes during the trial period. You may not modify, adapt, reverse engineer, decompile or disassemble the Programs (except solely to the extent applicable laws specifically prohibit such restriction).  You shall not use the Programs for timesharing or rental, or in a service bureau, or otherwise allow direct or indirect use (including over the internet) of the Program by any third party.  You agree to not remove from, or obliterate or alter, any copyright or proprietary notices on, the Program, and to reproduce such notices on all full or partial copies of the Program.  Results of benchmark or other performance tests run on the Program may not be disclosed to any third party without Sybase's p
 rior written consent.
+3.  COPYRIGHT AND OWNERSHIP.  The Program shall remain the exclusive property of Sybase or its suppliers, and is protected by international treaty provisions and copyright and/or trade secret law.  You shall have no right, title or interest in the Program except as expressly set forth in this Agreement.  This paragraph shall survive expiration of this Agreement.  The Program is restricted commercial computer software.  If this license is acquired under a U.S. Government contract, use, duplication or disclosure by the U.S. Government is subject to restrictions set forth in this Agreement or in a written license agreement which incorporates applicable FAR provisions, for example FAR subparagraphs 52.227-19.   Sybase reserves all unpublished rights under U.S. copyright laws.
+4.  WARRANTY DISCLAIMER. The Program is provided AS IS, without any warranty whatsoever. SYBASE DISCLAIMS ALL WARRANTIES AND CONDITIONS, EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION THE IMPLIED WARRANTIES OR CONDITIONS OF MERCHANTABLE QUALITY, NONINFRINGEMENT, AND FITNESS FOR A PARTICULAR PURPOSE. YOU AGREES THAT THE PROGRAMS PROVIDED HEREUNDER ARE PROVIDED FOR EVALUATION PURPOSES ONLY AND NEITHER SYBASE, ITS SUBSIDIARIES NOR ANY OF ITS SUPPLIERS SHALL BE LIABLE FOR ANY LOSS OR DAMAGE HEREUNDER, INCLUDING, WITHOUT LIMITATION, ANY INACCURACY OF DATA, LOSS OF PROFITS OR DIRECT, INDIRECT, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES, EVEN IF SUCH PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES.
+5.  EXPORT.  You shall not transfer, directly or indirectly, any restricted Program or technical data received from Sybase or its subsidiaries, or the direct product of such data, to any destination or entity subject to export restrictions under U.S. law, unless prior written authorization is obtained from the appropriate U.S. agency.
+6.  GENERAL.  Sections 2, 3, 4 and 6 shall survive any termination of this Agreement.  Neither this Agreement nor any license hereunder may be assigned (whether by operation of law or otherwise) by You without Sybase’s prior written consent. The failure or delay by either party to enforce any term of this Agreement shall not be deemed a waiver of such term.  THIS AGREEMENT CONSTITUTES THE ENTIRE AGREEMENT BETWEEN THE PARTIES WITH RESPECT TO THE SUBJECT MATTER HEREOF AND SHALL BE CONSTRUED IN ACCORDANCE WITH THE LAWS OF THE STATE OF CALIFORNIA.  
+
+

Added: incubator/ode/scratch/bpe/TODO.TXT
URL: http://svn.apache.org/viewcvs/incubator/ode/scratch/bpe/TODO.TXT?rev=381686&view=auto
==============================================================================
--- incubator/ode/scratch/bpe/TODO.TXT (added)
+++ incubator/ode/scratch/bpe/TODO.TXT Tue Feb 28 08:02: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/bpe/bpeEngine.properties
URL: http://svn.apache.org/viewcvs/incubator/ode/scratch/bpe/bpeEngine.properties?rev=381686&view=auto
==============================================================================
--- incubator/ode/scratch/bpe/bpeEngine.properties (added)
+++ incubator/ode/scratch/bpe/bpeEngine.properties Tue Feb 28 08:02:48 2006
@@ -0,0 +1,15 @@
+DEF_CLASS_KEY=com.sybase.bpe.definition.service.unmanaged.DefinitionServiceProxy
+DEF_PERSISTENT_KEY=FALSE
+DEF_SCHEMA_KEY=BPEL4WS.XSD
+INST_CLASS_KEY=com.sybase.bpe.instance.service.nonpersistent.InstanceServiceTransientImpl
+INST_PERSISTENT_KEY=FALSE
+SCOPE_CLASS_KEY=com.sybase.bpe.scope.service.impl.ScopeServiceImpl
+ED_CLASS_KEY=com.sybase.bpe.bped.unmanaged.EventDirectorSLImpl
+CORL_CLASS_KEY=com.sybase.bpe.correlation.unmanaged.CorrelationServiceSLImpl
+LOCK_CLASS_KEY=com.sybase.bpe.locking.IMLockingService
+LOCK_HASH_BUCKETS_KEY=1000
+BPEL_COMPLIANT_KEY=TRUE
+CTX_CLASS_TRANSIENT_KEY=com.sybase.bpe.context.nonpersistent.TransientContextService
+CTX_CLASS_PERSISTENT_KEY=com.sybase.bpe.context.persistent.PersistentContextService
+CTX_PERSISTENCE_KEY=CTX_PERSISTENT
+DOF_CLASS_PERSISTENT_KEY=com.sybase.bpe.context.ejb.EJBDataObjectFactory

Added: incubator/ode/scratch/bpe/bpelTests/build.xml
URL: http://svn.apache.org/viewcvs/incubator/ode/scratch/bpe/bpelTests/build.xml?rev=381686&view=auto
==============================================================================
--- incubator/ode/scratch/bpe/bpelTests/build.xml (added)
+++ incubator/ode/scratch/bpe/bpelTests/build.xml Tue Feb 28 08:02: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/bpe/bpelTests/probeService/probeService.wsdl
URL: http://svn.apache.org/viewcvs/incubator/ode/scratch/bpe/bpelTests/probeService/probeService.wsdl?rev=381686&view=auto
==============================================================================
--- incubator/ode/scratch/bpe/bpelTests/probeService/probeService.wsdl (added)
+++ incubator/ode/scratch/bpe/bpelTests/probeService/probeService.wsdl Tue Feb 28 08:02: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/bpe/bpelTests/test1/data1_1.txt
URL: http://svn.apache.org/viewcvs/incubator/ode/scratch/bpe/bpelTests/test1/data1_1.txt?rev=381686&view=auto
==============================================================================
--- incubator/ode/scratch/bpe/bpelTests/test1/data1_1.txt (added)
+++ incubator/ode/scratch/bpe/bpelTests/test1/data1_1.txt Tue Feb 28 08:02: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/bpe/bpelTests/test1/data1_2.txt
URL: http://svn.apache.org/viewcvs/incubator/ode/scratch/bpe/bpelTests/test1/data1_2.txt?rev=381686&view=auto
==============================================================================
--- incubator/ode/scratch/bpe/bpelTests/test1/data1_2.txt (added)
+++ incubator/ode/scratch/bpe/bpelTests/test1/data1_2.txt Tue Feb 28 08:02: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/bpe/bpelTests/test1/data1_3.txt
URL: http://svn.apache.org/viewcvs/incubator/ode/scratch/bpe/bpelTests/test1/data1_3.txt?rev=381686&view=auto
==============================================================================
--- incubator/ode/scratch/bpe/bpelTests/test1/data1_3.txt (added)
+++ incubator/ode/scratch/bpe/bpelTests/test1/data1_3.txt Tue Feb 28 08:02: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/bpe/bpelTests/test1/data1_4.txt
URL: http://svn.apache.org/viewcvs/incubator/ode/scratch/bpe/bpelTests/test1/data1_4.txt?rev=381686&view=auto
==============================================================================
--- incubator/ode/scratch/bpe/bpelTests/test1/data1_4.txt (added)
+++ incubator/ode/scratch/bpe/bpelTests/test1/data1_4.txt Tue Feb 28 08:02: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/bpe/bpelTests/test1/data1_5.txt
URL: http://svn.apache.org/viewcvs/incubator/ode/scratch/bpe/bpelTests/test1/data1_5.txt?rev=381686&view=auto
==============================================================================
--- incubator/ode/scratch/bpe/bpelTests/test1/data1_5.txt (added)
+++ incubator/ode/scratch/bpe/bpelTests/test1/data1_5.txt Tue Feb 28 08:02: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/bpe/bpelTests/test1/data1_6.txt
URL: http://svn.apache.org/viewcvs/incubator/ode/scratch/bpe/bpelTests/test1/data1_6.txt?rev=381686&view=auto
==============================================================================
--- incubator/ode/scratch/bpe/bpelTests/test1/data1_6.txt (added)
+++ incubator/ode/scratch/bpe/bpelTests/test1/data1_6.txt Tue Feb 28 08:02: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/bpe/bpelTests/test1/test1.bpel
URL: http://svn.apache.org/viewcvs/incubator/ode/scratch/bpe/bpelTests/test1/test1.bpel?rev=381686&view=auto
==============================================================================
--- incubator/ode/scratch/bpe/bpelTests/test1/test1.bpel (added)
+++ incubator/ode/scratch/bpe/bpelTests/test1/test1.bpel Tue Feb 28 08:02: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/bpe/bpelTests/test1/test1.wsdl
URL: http://svn.apache.org/viewcvs/incubator/ode/scratch/bpe/bpelTests/test1/test1.wsdl?rev=381686&view=auto
==============================================================================
--- incubator/ode/scratch/bpe/bpelTests/test1/test1.wsdl (added)
+++ incubator/ode/scratch/bpe/bpelTests/test1/test1.wsdl Tue Feb 28 08:02: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/bpe/bpelTests/test1/test1.xml
URL: http://svn.apache.org/viewcvs/incubator/ode/scratch/bpe/bpelTests/test1/test1.xml?rev=381686&view=auto
==============================================================================
--- incubator/ode/scratch/bpe/bpelTests/test1/test1.xml (added)
+++ incubator/ode/scratch/bpe/bpelTests/test1/test1.xml Tue Feb 28 08:02:48 2006
@@ -0,0 +1,10 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<BPEBinding xmlns="http://sybase.com/bpe/binding/bpe" xmlns:prb="urn:sybase:bpel:testProbe">
+	<ActionBindings>
+		<binding  name="BPEBinding1" nameSpace="urn:sybase:bpel:testProbe" portType="probeMessagePT">
+			<operation name="probe">
+				<action implementation="com.sybase.bpe.action.external.ProbeAction" prb:rootSourcePart="probeName" prb:targetPart="probeData"/>
+			</operation>
+		</binding>
+	</ActionBindings>
+</BPEBinding>

Added: incubator/ode/scratch/bpe/bpelTests/test1/test1definitions.wsdl
URL: http://svn.apache.org/viewcvs/incubator/ode/scratch/bpe/bpelTests/test1/test1definitions.wsdl?rev=381686&view=auto
==============================================================================
--- incubator/ode/scratch/bpe/bpelTests/test1/test1definitions.wsdl (added)
+++ incubator/ode/scratch/bpe/bpelTests/test1/test1definitions.wsdl Tue Feb 28 08:02: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/bpe/bpelTests/test10/data10_1.txt
URL: http://svn.apache.org/viewcvs/incubator/ode/scratch/bpe/bpelTests/test10/data10_1.txt?rev=381686&view=auto
==============================================================================
--- incubator/ode/scratch/bpe/bpelTests/test10/data10_1.txt (added)
+++ incubator/ode/scratch/bpe/bpelTests/test10/data10_1.txt Tue Feb 28 08:02: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/bpe/bpelTests/test10/data10_2.txt
URL: http://svn.apache.org/viewcvs/incubator/ode/scratch/bpe/bpelTests/test10/data10_2.txt?rev=381686&view=auto
==============================================================================
--- incubator/ode/scratch/bpe/bpelTests/test10/data10_2.txt (added)
+++ incubator/ode/scratch/bpe/bpelTests/test10/data10_2.txt Tue Feb 28 08:02: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/bpe/bpelTests/test10/data10_3.txt
URL: http://svn.apache.org/viewcvs/incubator/ode/scratch/bpe/bpelTests/test10/data10_3.txt?rev=381686&view=auto
==============================================================================
--- incubator/ode/scratch/bpe/bpelTests/test10/data10_3.txt (added)
+++ incubator/ode/scratch/bpe/bpelTests/test10/data10_3.txt Tue Feb 28 08:02: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/bpe/bpelTests/test10/data10_4.txt
URL: http://svn.apache.org/viewcvs/incubator/ode/scratch/bpe/bpelTests/test10/data10_4.txt?rev=381686&view=auto
==============================================================================
--- incubator/ode/scratch/bpe/bpelTests/test10/data10_4.txt (added)
+++ incubator/ode/scratch/bpe/bpelTests/test10/data10_4.txt Tue Feb 28 08:02: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/bpe/bpelTests/test10/test10.bpel
URL: http://svn.apache.org/viewcvs/incubator/ode/scratch/bpe/bpelTests/test10/test10.bpel?rev=381686&view=auto
==============================================================================
--- incubator/ode/scratch/bpe/bpelTests/test10/test10.bpel (added)
+++ incubator/ode/scratch/bpe/bpelTests/test10/test10.bpel Tue Feb 28 08:02: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/bpe/bpelTests/test10/test10.wsdl
URL: http://svn.apache.org/viewcvs/incubator/ode/scratch/bpe/bpelTests/test10/test10.wsdl?rev=381686&view=auto
==============================================================================
--- incubator/ode/scratch/bpe/bpelTests/test10/test10.wsdl (added)
+++ incubator/ode/scratch/bpe/bpelTests/test10/test10.wsdl Tue Feb 28 08:02: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/bpe/bpelTests/test10/test10.xml
URL: http://svn.apache.org/viewcvs/incubator/ode/scratch/bpe/bpelTests/test10/test10.xml?rev=381686&view=auto
==============================================================================
--- incubator/ode/scratch/bpe/bpelTests/test10/test10.xml (added)
+++ incubator/ode/scratch/bpe/bpelTests/test10/test10.xml Tue Feb 28 08:02:48 2006
@@ -0,0 +1,10 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<BPEBinding xmlns="http://sybase.com/bpe/binding/bpe" xmlns:prb="urn:sybase:bpel:testProbe" >
+	<ActionBindings>
+		<binding  name="BPEBinding1" nameSpace="urn:sybase:bpel:testProbe" portType="probeMessagePT">
+			<operation name="probe">
+				<action implementation="com.sybase.bpe.action.external.ProbeAction" prb:rootSourcePart="probeName" prb:targetPart="probeData"/>
+			</operation>
+		</binding>
+	</ActionBindings>
+</BPEBinding>

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

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

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

Added: incubator/ode/scratch/bpe/bpelTests/test15/data15_1.txt
URL: http://svn.apache.org/viewcvs/incubator/ode/scratch/bpe/bpelTests/test15/data15_1.txt?rev=381686&view=auto
==============================================================================
--- incubator/ode/scratch/bpe/bpelTests/test15/data15_1.txt (added)
+++ incubator/ode/scratch/bpe/bpelTests/test15/data15_1.txt Tue Feb 28 08:02: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/bpe/bpelTests/test15/test15.bpel
URL: http://svn.apache.org/viewcvs/incubator/ode/scratch/bpe/bpelTests/test15/test15.bpel?rev=381686&view=auto
==============================================================================
--- incubator/ode/scratch/bpe/bpelTests/test15/test15.bpel (added)
+++ incubator/ode/scratch/bpe/bpelTests/test15/test15.bpel Tue Feb 28 08:02: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>

Added: incubator/ode/scratch/bpe/bpelTests/test15/test15.wsdl
URL: http://svn.apache.org/viewcvs/incubator/ode/scratch/bpe/bpelTests/test15/test15.wsdl?rev=381686&view=auto
==============================================================================
--- incubator/ode/scratch/bpe/bpelTests/test15/test15.wsdl (added)
+++ incubator/ode/scratch/bpe/bpelTests/test15/test15.wsdl Tue Feb 28 08:02:48 2006
@@ -0,0 +1,80 @@
+<definitions 
+      targetNamespace="urn:sybase:bpel:test15Processing"
+	xmlns:tns="urn:sybase:bpel:test15Processing"
+		xmlns:typens="urn:sybase:bpel:test15Processing:types2"
+      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:test15Processing: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:test15Processing:types2"
+                xmlns:xsd="http://www.w3.org/2001/XMLSchema"
+                xmlns:type2="urn:sybase:bpel:test15Processing: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="testProbeID" type="xsd:string"/>
+  <bpws:propertyAlias propertyName="tns:testProbeID" messageType="tns:requestMessage" part="requestID"/>
+
+  <bpws:property name="testPath" type="xsd:string"/>
+  <bpws:propertyAlias propertyName="tns:testPath" messageType="tns:requestMessage" part="requestMessageData" query="/testMessage/typeIndicators/types1:indicatorTwo"/>
+
+
+   <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="test15PT">
+      <operation name="request">
+         <input message="requestMessage"/>
+         <output message="replyMessage"/>
+      </operation>
+   </portType>
+
+   <plnk:partnerLinkType name="test15Request">
+	<plnk:role name="test15Service">
+		<plnk:portType name="test15PT"/>
+	</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/bpe/bpelTests/test15/test15.xml
URL: http://svn.apache.org/viewcvs/incubator/ode/scratch/bpe/bpelTests/test15/test15.xml?rev=381686&view=auto
==============================================================================
--- incubator/ode/scratch/bpe/bpelTests/test15/test15.xml (added)
+++ incubator/ode/scratch/bpe/bpelTests/test15/test15.xml Tue Feb 28 08:02:48 2006
@@ -0,0 +1,14 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<BPEBinding xmlns="http://sybase.com/bpe/binding/bpe" xmlns:prb="urn:sybase:bpel:testProbe">
+	<ActionBindings>
+		<binding name="BPEBinding1" nameSpace="urn:sybase:bpel:testProbe" portType="probeMessagePT">
+			<operation name="probe">
+				<action implementation="com.sybase.bpe.action.external.ProbeAction" prb:rootSourcePart="probeName" prb:targetPart="probeData"/>
+			</operation>
+		</binding>
+	</ActionBindings>
+	<ActivityBindings>
+		<ActivityBinding activityName="assignP" interpretation="pruneAssign"/>
+		<ActivityBinding activityName="assignG" interpretation="graftAssign"/>
+	</ActivityBindings>
+</BPEBinding>

Added: incubator/ode/scratch/bpe/bpelTests/test16/data16_1.txt
URL: http://svn.apache.org/viewcvs/incubator/ode/scratch/bpe/bpelTests/test16/data16_1.txt?rev=381686&view=auto
==============================================================================
--- incubator/ode/scratch/bpe/bpelTests/test16/data16_1.txt (added)
+++ incubator/ode/scratch/bpe/bpelTests/test16/data16_1.txt Tue Feb 28 08:02:48 2006
@@ -0,0 +1,20 @@
+# Test BPEL fault handlers
+# Thow named fault - fault indicator one is positive.
+# Expected result = Event Start Test16.1 -> throw testFault -> caught testFault -> 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:test16Processing
+port.type=test16PT
+operation=request
+
+part1=str.requestID
+part2=str.requestText
+part3=str.faultIndicator1
+part4=str.faultIndicator2
+
+str.requestID=Start Test16.1
+str.requestText=Event Start Test16.1
+str.faultIndicator1=no
+str.faultIndicator2=no
+