You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@ode.apache.org by va...@apache.org on 2010/07/06 20:59:11 UTC

svn commit: r960982 [2/3] - in /ode/trunk: ./ bpel-itest/ bpel-itest/src/ bpel-itest/src/test/ bpel-itest/src/test/bpelunit/ bpel-itest/src/test/bpelunit/TestAssignComplex/ bpel-itest/src/test/bpelunit/TestAssignDate/ bpel-itest/src/test/bpelunit/TestC...

Added: ode/trunk/bpel-itest/src/test/bpelunit/TestCorrelationJoinOnMessage/TestCorrelationJoinOnMessage.bpts
URL: http://svn.apache.org/viewvc/ode/trunk/bpel-itest/src/test/bpelunit/TestCorrelationJoinOnMessage/TestCorrelationJoinOnMessage.bpts?rev=960982&view=auto
==============================================================================
--- ode/trunk/bpel-itest/src/test/bpelunit/TestCorrelationJoinOnMessage/TestCorrelationJoinOnMessage.bpts (added)
+++ ode/trunk/bpel-itest/src/test/bpelunit/TestCorrelationJoinOnMessage/TestCorrelationJoinOnMessage.bpts Tue Jul  6 18:59:09 2010
@@ -0,0 +1,29 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<tes:testSuite xmlns:tes="http://www.bpelunit.org/schema/testSuite" xmlns:proc="http://ode.apache.org/test4/process">
+    <tes:name>TestCorrelationJoinOnMessage.bpts</tes:name>
+    <tes:baseURL>http://localhost:7777/ws</tes:baseURL>
+    <tes:deployment>
+        <tes:put name="Process" type="ode">
+            <tes:property name="DeploymentArchive">.</tes:property>
+            <tes:property name="ODEDeploymentServiceURL">http://localhost:8080/ode/processes/DeploymentService</tes:property>
+            <tes:wsdl>CorrelationJoinOnMessageTestArtifacts.wsdl</tes:wsdl>
+        </tes:put>
+    </tes:deployment>
+    <tes:testCases>
+        <tes:testCase name="case1" basedOn="" abstract="false" vary="false">
+            <tes:clientTrack>
+                <tes:sendReceive service="proc:CanonicServiceForPool" port="canonicPort" operation="receive2">
+                    <tes:send service="proc:CanonicServiceForPool" port="canonicPort" fault="false">
+                        <tes:data>
+                            <receive2Request xmlns="http://ode.apache.org/test4/process">1</receive2Request>
+                        </tes:data>
+                    </tes:send>
+                    <tes:receive service="proc:CanonicServiceForPool" port="canonicPort" fault="false"/>
+                </tes:sendReceive>
+            </tes:clientTrack>
+        </tes:testCase>
+        <tes:testCase name="case2" basedOn="" abstract="false" vary="false">
+            <tes:clientTrack/>
+        </tes:testCase>
+    </tes:testCases>
+</tes:testSuite>
\ No newline at end of file

Added: ode/trunk/bpel-itest/src/test/bpelunit/TestCorrelationJoinOnMessage/deploy.xml
URL: http://svn.apache.org/viewvc/ode/trunk/bpel-itest/src/test/bpelunit/TestCorrelationJoinOnMessage/deploy.xml?rev=960982&view=auto
==============================================================================
--- ode/trunk/bpel-itest/src/test/bpelunit/TestCorrelationJoinOnMessage/deploy.xml (added)
+++ ode/trunk/bpel-itest/src/test/bpelunit/TestCorrelationJoinOnMessage/deploy.xml Tue Jul  6 18:59:09 2010
@@ -0,0 +1,31 @@
+<?xml version='1.0' encoding='UTF-8'?>
+<!--
+  ~ Licensed to the Apache Software Foundation (ASF) under one
+  ~ or more contributor license agreements.  See the NOTICE file
+  ~ distributed with this work for additional information
+  ~ regarding copyright ownership.  The ASF licenses this file
+  ~ to you under the Apache License, Version 2.0 (the
+  ~ "License"); you may not use this file except in compliance
+  ~ with the License.  You may obtain a copy of the License at
+  ~
+  ~    http://www.apache.org/licenses/LICENSE-2.0
+  ~
+  ~ Unless required by applicable law or agreed to in writing,
+  ~ software distributed under the License is distributed on an
+  ~ "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+  ~ KIND, either express or implied.  See the License for the
+  ~ specific language governing permissions and limitations
+  ~ under the License.
+  -->
+<dd:deploy xmlns:dd="http://ode.fivesight.com/schemas/2006/06/27/dd">
+    <dd:process xmlns:dd="http://ode.fivesight.com/schemas/2006/06/27/dd" xmlns:Pool="http://ode.apache.org/test4/Pool"
+                xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:diag="http://ode.apache.org/test4"
+                xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:this="http://ode.apache.org/test4/process" 
+                xmlns:NPGServices_Abstract="http://www.ode.apache.org/NPG/v1/wsdl"
+                xmlns:NPGData="http://www.ode.apache.org/NPG/v1" name="this:Process" fileName="CorrelationJoinOnMessageArtifacts.wsdl">
+  <dd:property name="PATH">test4</dd:property>
+  <dd:property name="SVG">test4.svg</dd:property>
+  <dd:provide partnerLink="processAndPoolPlkVar">
+    <dd:service name="this:CanonicServiceForPool" port="canonicPort"></dd:service>
+  </dd:provide>
+</dd:process></dd:deploy>
\ No newline at end of file

Propchange: ode/trunk/bpel-itest/src/test/bpelunit/TestCorrelationJoinOnMessage/deploy.xml
------------------------------------------------------------------------------
    svn:eol-style = native

Added: ode/trunk/bpel-itest/src/test/bpelunit/TestFlowActivity1/TestActivityFlow.bpel
URL: http://svn.apache.org/viewvc/ode/trunk/bpel-itest/src/test/bpelunit/TestFlowActivity1/TestActivityFlow.bpel?rev=960982&view=auto
==============================================================================
--- ode/trunk/bpel-itest/src/test/bpelunit/TestFlowActivity1/TestActivityFlow.bpel (added)
+++ ode/trunk/bpel-itest/src/test/bpelunit/TestFlowActivity1/TestActivityFlow.bpel Tue Jul  6 18:59:09 2010
@@ -0,0 +1,464 @@
+
+	<!--
+		~ Licensed to the Apache Software Foundation (ASF) under one ~ or more
+		contributor license agreements. See the NOTICE file ~ distributed with
+		this work for additional information ~ regarding copyright ownership.
+		The ASF licenses this file ~ to you under the Apache License, Version
+		2.0 (the ~ "License"); you may not use this file except in compliance
+		~ with the License. You may obtain a copy of the License at ~ ~
+		http://www.apache.org/licenses/LICENSE-2.0 ~ ~ Unless required by
+		applicable law or agreed to in writing, ~ software distributed under
+		the License is distributed on an ~ "AS IS" BASIS, WITHOUT WARRANTIES
+		OR CONDITIONS OF ANY ~ KIND, either express or implied. See the
+		License for the ~ specific language governing permissions and
+		limitations ~ under the License.
+	-->
+
+<process xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
+	xmlns:tns="http://ode/bpel/unit-test/testFlowActivity1" xmlns:wns="http://ode/bpel/unit-test/testFlowActivity1.wsdl"
+	xmlns:fn="http://www.w3.org/2005/02/xpath-functions" xmlns="http://docs.oasis-open.org/wsbpel/2.0/process/executable"
+	xmlns:typens="http://ode/bpel/unit-test/testFlowActivity1.wsdl.types"
+	xmlns:bpws="http://docs.oasis-open.org/wsbpel/2.0/process/executable"
+	name="TestActivityFlow" targetNamespace="http://ode/bpel/unit-test/testFlowActivity1"
+	suppressJoinFailure="yes" queryLanguage="urn:oasis:names:tc:wsbpel:2.0:sublang:xpath2.0"
+	expressionLanguage="urn:oasis:names:tc:wsbpel:2.0:sublang:xpath2.0">
+
+	<!-- Test Flow using XPath 20 -->
+
+	<import location="TestActivityFlow.wsdl"
+		namespace="http://ode/bpel/unit-test/testFlowActivity1.wsdl"
+		importType="http://schemas.xmlsoap.org/wsdl/" />
+	<!--
+		<import location="../ProbeService/probeService.wsdl"
+		namespace="http://ode/bpel/unit-test/ProbeService.wsdl"
+		importType="http://schemas.xmlsoap.org/wsdl/"/>
+	-->
+
+	<!-- test control flow elements -->
+	<!--	sequence 				-->
+	<!--	flow ( links ) 			-->
+	<!--	swith 					-->
+	<!--	while 					-->
+	<partnerLinks>
+		<partnerLink name="request" partnerLinkType="wns:testFlowActivityRequest"
+			myRole="testFlowActivityService" />
+		<!--
+			<partnerLink name="probe" partnerLinkType="wns:probeRequest"
+			partnerRole="probeService" initializePartnerRole="yes"/>
+		-->
+	</partnerLinks>
+	<variables>
+		<variable name="request" messageType="wns:requestMessage" />
+		<variable name="probeInput" messageType="wns:probeMessage" />
+		<variable name="reply" messageType="wns:replyMessage" />
+		<variable name="internalState" messageType="wns: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>
+
+			<assign name="Init" validate="no">
+				<copy>
+					<from>
+						<literal xml:space="preserve"><wns:requestMessage>
+  <typens:requestID>null</typens:requestID>
+  <typens:requestText>null</typens:requestText>
+  <typens:flowIndicator>
+  	<typens:indicatorOne>yes</typens:indicatorOne><typens:indicatorTwo>yes</typens:indicatorTwo>
+  </typens:flowIndicator>
+  <loopIndicator>null</loopIndicator>
+</wns:requestMessage>
+</literal>
+					</from>
+					<to variable="request" part="requestMessageData"></to>
+				</copy>
+			</assign>
+
+			<receive name="receive1" partnerLink="request" portType="wns:testFlowActivityPT"
+				operation="request" variable="request" createInstance="yes">
+				<sources>
+					<source linkName="receive-to-assign1" />
+				</sources>
+			</receive>
+			<!-- Copy input variables to internal accumulators -->
+			<!-- After the copy the process splits into two execution paths -->
+			<sequence>
+				<targets>
+					<target linkName="receive-to-assign1" />
+				</targets>
+				<sources>
+					<source linkName="assign1-to-probe1" />
+					<source linkName="assign1-to-probe2" />
+				</sources>
+				<assign name="assign1">
+					<copy>
+						<from>$request.requestMessageData/typens:requestID
+						</from>
+						<to variable="probeInput" part="probeMessageData" query="/typens:probe/typens:probeName" />
+					</copy>
+					<copy>
+						<from variable="request" property="wns:testProbeData" />
+						<to variable="probeInput" part="probeMessageData" query="/tyens:probe/typens:probeData" />
+					</copy>
+				</assign>
+				<assign>
+					<copy>
+						<from>
+							<literal><![CDATA[root process splits into A and B]]></literal>
+						</from>
+						<to variable="probeInput" part="probeMessageData" query="/typens:probe/typens:probeName" />
+					</copy>
+				</assign>
+				<!--
+					<invoke name="probe2" partnerLink="probe"
+					portType="prb:probeMessagePT" operation="probe"
+					inputVariable="probeInput" outputVariable="probeInput" ></invoke>
+				-->
+				<assign>
+					<copy>
+						<from>
+							concat($probeInput.probeMessageData/typens:probeData,$probeInput.probeMessageData/typens:probeName)
+						</from>
+						<to variable="probeInput" part="probeMessageData" query="/tyens:probe/typens:probeData" />
+					</copy>
+				</assign>
+			</sequence>
+			<!--
+				probe1 outbound status is dependent on the request input testFlow1
+			-->
+			<sequence>
+				<targets>
+					<target linkName="assign1-to-probe1" />
+				</targets>
+				<sources>
+					<source linkName="probe1-to-probe3">
+						<transitionCondition>bpws:getVariableProperty("request",
+							"wns:testFlow1") =
+							'yes'
+                        </transitionCondition>
+					</source>
+				</sources>
+				<assign>
+					<copy>
+						<from>
+							<literal><![CDATA[process A completes]]></literal>
+						</from>
+						<to variable="probeInput" part="probeMessageData" query="/tyens:probe/typens:probeName" />
+					</copy>
+				</assign>
+				<!--
+					<invoke name="probe3" partnerLink="probe"
+					portType="prb:probeMessagePT" operation="probe"
+					inputVariable="probeInput" outputVariable="probeInput" ></invoke>
+				-->
+				<assign>
+					<copy>
+						<from>
+							concat($probeInput.probeMessageData/typens:probeData,$probeInput.probeMessageData/typens:probeName)
+						</from>
+						<to variable="probeInput" part="probeMessageData" query="/tyens:probe/typens:probeData" />
+					</copy>
+				</assign>
+			</sequence>
+			<!--
+				probe2 outbound status is dependent on the request input testFlow2
+			-->
+			<sequence>
+				<targets>
+					<target linkName="assign1-to-probe2" />
+				</targets>
+				<sources>
+					<source linkName="probe2-to-probe3">
+						<transitionCondition>
+							$request.requestMessageData/typens:flowIndicators/typens:indicatorTwo
+							=
+							'yes'
+                        </transitionCondition>
+					</source>
+				</sources>
+				<assign>
+					<copy>
+						<from>
+							<literal><![CDATA[process B completes]]></literal>
+						</from>
+						<to variable="probeInput" part="probeMessageData" query="/tyens:probe/typens:probeName" />
+					</copy>
+				</assign>
+				<!--
+					<invoke name="probe4" partnerLink="probe"
+					portType="prb:probeMessagePT" operation="probe"
+					inputVariable="probeInput" outputVariable="probeInput" ></invoke>
+				-->
+				<assign>
+					<copy>
+						<from>
+							concat($probeInput.probeMessageData/typens:probeData,$probeInput.probeMessageData/typens:probeName)
+						</from>
+						<to variable="probeInput" part="probeMessageData" query="/tyens:probe/typens:probeData" />
+					</copy>
+				</assign>
+			</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>
+				<targets>
+					<joinCondition>$probe1-to-probe3 and
+						$probe2-to-probe3</joinCondition>
+					<target linkName="probe1-to-probe3" />
+					<target linkName="probe2-to-probe3" />
+				</targets>
+				<assign>
+					<copy>
+						<from>
+							<literal><![CDATA[processes A and B merge on process C]]></literal>
+						</from>
+						<to variable="probeInput" part="probeMessageData" query="/tyens:probe/typens:probeName" />
+					</copy>
+				</assign>
+				<!--
+					<invoke name="probe5" partnerLink="probe"
+					portType="prb:probeMessagePT" operation="probe"
+					inputVariable="probeInput" outputVariable="probeInput" ></invoke>
+				-->
+				<assign>
+					<copy>
+						<from>
+							concat($probeInput.probeMessageData/typens:probeData,$probeInput.probeMessageData/typens:probeName)
+						</from>
+						<to variable="probeInput" part="probeMessageData" query="/tyens:probe/typens:probeData" />
+					</copy>
+				</assign>
+			</sequence>
+		</flow>
+		<assign>
+			<copy>
+				<from>
+					<literal><![CDATA[merge into root process]]></literal>
+				</from>
+				<to variable="probeInput" part="probeMessageData" query="/tyens:probe/typens:probeName" />
+			</copy>
+		</assign>
+		<!--
+			<invoke name="probe6" partnerLink="probe"
+			portType="prb:probeMessagePT" operation="probe"
+			inputVariable="probeInput" outputVariable="probeInput"></invoke>
+		-->
+		<assign>
+			<copy>
+				<from>
+					concat($probeInput.probeMessageData/typens:probeData,$probeInput.probeMessageData/typens:probeName)
+				</from>
+				<to variable="probeInput" part="probeMessageData" query="/tyens:probe/typens:probeData" />
+			</copy>
+		</assign>
+		<!--
+			from the input data loopIndicator set the number of loop interations
+		-->
+		<assign>
+			<copy>
+				<from>
+					<literal><![CDATA[test switch statement]]></literal>
+				</from>
+				<to variable="probeInput" part="probeMessageData" query="/tyens:probe/typens:probeName" />
+			</copy>
+		</assign>
+		<!--
+			<invoke name="probe7" partnerLink="probe"
+			portType="prb:probeMessagePT" operation="probe"
+			inputVariable="probeInput" outputVariable="probeInput"></invoke>
+		-->
+		<assign>
+			<copy>
+				<from>
+					concat($probeInput.probeMessageData/typens:probeData,$probeInput.probeMessageData/typens:probeName)
+				</from>
+				<to variable="probeInput" part="probeMessageData" query="/tyens:probe/typens:probeData" />
+			</copy>
+		</assign>
+		<if>
+			<condition>bpws:getVariableProperty("request",
+				"wns:loopInd") = 'min'</condition>
+			<sequence>
+				<assign name="flow1-min-assign">
+					<copy>
+						<from>5</from>
+						<to variable="internalState" part="internalMessageData"
+							query="/typens:internal/typens:loop1" />
+					</copy>
+					<copy>
+						<from>
+							<literal><![CDATA[case min: set loop iterations = 5]]></literal>
+						</from>
+						<to variable="probeInput" part="probeMessageData" query="/tyens:probe/typens:probeName" />
+					</copy>
+				</assign>
+				<!--
+					<invoke name="probe8" partnerLink="probe"
+					portType="prb:probeMessagePT" operation="probe"
+					inputVariable="probeInput" outputVariable="probeInput" ></invoke>
+				-->
+				<assign>
+					<copy>
+						<from>
+							concat($probeInput.probeMessageData/typens:probeData,$probeInput.probeMessageData/typens:probeName)
+						</from>
+						<to variable="probeInput" part="probeMessageData" query="/tyens:probe/typens:probeData" />
+					</copy>
+				</assign>
+			</sequence>
+			<elseif>
+				<condition>$request.requestMessageData/loopIndicator
+					= 'max'</condition>
+				<sequence>
+					<assign name="flow1-max-assign">
+						<copy>
+							<from>10</from>
+							<to variable="internalState" part="internalMessageData"
+								query="/typens:internal/typens:loop1" />
+						</copy>
+						<copy>
+							<from>
+								<literal><![CDATA[case max: set loop iterations = 10]]></literal>
+							</from>
+							<to variable="probeInput" part="probeMessageData" query="/tyens:probe/typens:probeName" />
+						</copy>
+					</assign>
+					<!--
+						<invoke name="probe9" partnerLink="probe"
+						portType="prb:probeMessagePT" operation="probe"
+						inputVariable="probeInput" outputVariable="probeInput" ></invoke>
+					-->
+					<assign>
+						<copy>
+							<from>
+								concat($probeInput.probeMessageData/typens:probeData,$probeInput.probeMessageData/typens:probeName)
+							</from>
+							<to variable="probeInput" part="probeMessageData" query="/tyens:probe/typens:probeData" />
+						</copy>
+					</assign>
+				</sequence>
+			</elseif>
+			<else>
+				<sequence>
+					<assign name="flow1-default-assign">
+						<copy>
+							<from>0</from>
+							<to variable="internalState" part="internalMessageData"
+								query="/typens:internal/typens:loop1" />
+						</copy>
+						<copy>
+							<from>
+								<literal><![CDATA[otherwise: set loop iterations = 0]]></literal>
+							</from>
+							<to variable="probeInput" part="probeMessageData" query="/tyens:probe/typens:probeName" />
+						</copy>
+					</assign>
+					<!--
+						<invoke name="probe10" partnerLink="probe"
+						portType="prb:probeMessagePT" operation="probe"
+						inputVariable="probeInput" outputVariable="probeInput" ></invoke>
+					-->
+					<assign>
+						<copy>
+							<from>
+								concat($probeInput.probeMessageData/typens:probeData,$probeInput.probeMessageData/typens:probeName)
+							</from>
+							<to variable="probeInput" part="probeMessageData" query="/tyens:probe/typens:probeData" />
+						</copy>
+					</assign>
+				</sequence>
+			</else>
+		</if>
+
+		<assign name="while-increment-initialize">
+			<copy>
+				<from>0</from>
+				<to variable="internalState" part="internalMessageData"
+					query="/typens:internal/typens:loop1Counter" />
+			</copy>
+			<copy>
+				<from>
+					<literal><![CDATA[test loop iterations]]></literal>
+				</from>
+				<to variable="probeInput" part="probeMessageData" query="/tyens:probe/typens:probeName" />
+			</copy>
+		</assign>
+		<assign>
+			<copy>
+				<from>
+					concat($probeInput.probeMessageData/typens:probeData,$probeInput.probeMessageData/typens:probeName)
+				</from>
+				<to variable="probeInput" part="probeMessageData" query="/tyens:probe/typens:probeData" />
+			</copy>
+		</assign>
+		<!--
+			<invoke name="probe10" partnerLink="probe"
+			portType="prb:probeMessagePT" operation="probe"
+			inputVariable="probeInput" outputVariable="probeInput"></invoke>
+		-->
+		<while>
+			<condition>$internalState.internalMessageData/typens:loop1Counter &lt; $internalState.internalMessageData/typens:loop1</condition>
+            <sequence>
+                <assign name="while-increment">
+                    <copy>
+                        <from>($internalState.internalMessageData/typens:loop1Counter + 1)</from>
+                        <to variable="internalState" part="internalMessageData" query="/typens:internal/typens:loop1Counter"/>
+                    </copy>
+                    <copy>
+                        <from>($internalState.internalMessageData/typens:loop1Counter + 1)</from>
+                        <to variable="probeInput" part="probeMessageData" query="/tyens:probe/typens:probeName"/>
+                    </copy>
+                </assign>
+                <assign>
+                    <copy>
+                        <from>concat($probeInput.probeMessageData/typens:probeData,$probeInput.probeMessageData/typens:probeName)</from>
+                        <to variable="probeInput" part="probeMessageData" query="/tyens:probe/typens:probeData"/>
+                    </copy>
+                </assign>
+                <!--
+                                <invoke name="probe11" partnerLink="probe" portType="prb:probeMessagePT"
+                                        operation="probe" inputVariable="probeInput" outputVariable="probeInput"/>
+                -->
+
+            </sequence>
+        </while>
+        <!-- copy internal accumulators to the reply message -->
+        <assign>
+            <copy>
+                <from>
+                    <literal><![CDATA[test1Process complete]]></literal>
+                </from>
+                <to variable="probeInput" part="probeMessageData" query="/tyens:probe/typens:probeName"/>
+            </copy>
+        </assign>
+        <assign>
+            <copy>
+                <from>concat($probeInput.probeMessageData/typens:probeData,$probeInput.probeMessageData/typens:probeName)</from>
+                <to variable="probeInput" part="probeMessageData" query="/tyens:probe/typens:probeData"/>
+            </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="probeMessageData" query="/tyens:probe/typens:probeName"/>
+                <to variable="reply" part="replyMessageData" query="/typens:reply/typens:replyID"/>
+            </copy>
+            <copy>
+                <from variable="probeInput" part="probeMessageData" query="/tyens:probe/typens:probeData"/>
+                <to variable="reply" part="replyMessageData" query="/typens:reply/typens:replyText"/>
+            </copy>
+        </assign>
+        <reply name="reply" partnerLink="request" portType="wns:testFlowActivityPT" operation="request"
+               variable="reply"></reply>
+    </sequence>
+</process>
\ No newline at end of file

Added: ode/trunk/bpel-itest/src/test/bpelunit/TestFlowActivity1/TestActivityFlow.wsdl
URL: http://svn.apache.org/viewvc/ode/trunk/bpel-itest/src/test/bpelunit/TestFlowActivity1/TestActivityFlow.wsdl?rev=960982&view=auto
==============================================================================
--- ode/trunk/bpel-itest/src/test/bpelunit/TestFlowActivity1/TestActivityFlow.wsdl (added)
+++ ode/trunk/bpel-itest/src/test/bpelunit/TestFlowActivity1/TestActivityFlow.wsdl Tue Jul  6 18:59:09 2010
@@ -0,0 +1,157 @@
+
+	<!--
+		~ Licensed to the Apache Software Foundation (ASF) under one ~ or more
+		contributor license agreements. See the NOTICE file ~ distributed with
+		this work for additional information ~ regarding copyright ownership.
+		The ASF licenses this file ~ to you under the Apache License, Version
+		2.0 (the ~ "License"); you may not use this file except in compliance
+		~ with the License. You may obtain a copy of the License at ~ ~
+		http://www.apache.org/licenses/LICENSE-2.0 ~ ~ Unless required by
+		applicable law or agreed to in writing, ~ software distributed under
+		the License is distributed on an ~ "AS IS" BASIS, WITHOUT WARRANTIES
+		OR CONDITIONS OF ANY ~ KIND, either express or implied. See the
+		License for the ~ specific language governing permissions and
+		limitations ~ under the License.
+	-->
+
+<wsdl:definitions targetNamespace="http://ode/bpel/unit-test/testFlowActivity1.wsdl"
+	xmlns:tns="http://ode/bpel/unit-test/testFlowActivity1.wsdl" xmlns="http://ode/bpel/unit-test/testFlowActivity1.wsdl"
+	xmlns:typens="http://ode/bpel/unit-test/testFlowActivity1.wsdl.types"
+	xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/" xmlns:plnk="http://docs.oasis-open.org/wsbpel/2.0/plnktype"
+	xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:vprop="http://docs.oasis-open.org/wsbpel/2.0/varprop"
+	xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/">
+
+	<!-- type defs -->
+	<wsdl:types>
+		<xsd:schema targetNamespace="http://ode/bpel/unit-test/testFlowActivity1.wsdl.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="request">
+				<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:complexType name="reply">
+				<xsd:sequence>
+					<xsd:element name="replyID" type="xsd:string" />
+					<xsd:element name="replyText" type="xsd:string" />
+				</xsd:sequence>
+			</xsd:complexType>
+
+			<xsd:complexType name="internal">
+				<xsd:sequence>
+					<xsd:element name="loop1Counter" type="xsd:int" />
+					<xsd:element name="loop1" type="xsd:int" />
+				</xsd:sequence>
+			</xsd:complexType>
+
+			<xsd:complexType name="probe">
+				<xsd:sequence>
+					<xsd:element name="probeName" type="xsd:string" />
+					<xsd:element name="probeData" type="xsd:string" />
+				</xsd:sequence>
+			</xsd:complexType>
+			
+		</xsd:schema>
+	</wsdl:types>
+
+	<wsdl:message name="requestMessage">
+		<wsdl:part name="requestMessageData" element="typens:request" />
+	</wsdl:message>
+
+	<wsdl:message name="replyMessage">
+		<wsdl:part name="replyMessageData" element="typens:reply" />
+	</wsdl:message>
+
+
+	<wsdl:message name="probeMessage">
+		<wsdl:part name="probeMessageData" element="typens:probe" />
+	</wsdl:message>
+
+	<wsdl:message name="internalProcessData">
+		<wsdl:part name="internalMessageData" element="typens:internal" />
+	</wsdl:message>
+
+	<!-- portType supported by the test process -->
+
+	<wsdl:portType name="testFlowActivityPT">
+		<wsdl:operation name="request">
+			<wsdl:input message="requestMessage" />
+			<wsdl:output message="replyMessage" />
+		</wsdl:operation>
+	</wsdl:portType>
+
+	<wsdl:binding name="TestFlowActivityBinding" type="tns:testFlowActivityPT">
+		<soap:binding style="document"
+			transport="http://schemas.xmlsoap.org/soap/http" />
+		<wsdl:operation name="request">
+			<soap:operation
+				soapAction="http://ode/bpel/unit-test/testFlowActivity1.wsdl/request" />
+			<wsdl:input>
+				<soap:body use="literal" />
+			</wsdl:input>
+			<wsdl:output>
+				<soap:body use="literal" />
+			</wsdl:output>
+		</wsdl:operation>
+	</wsdl:binding>
+	<wsdl:service name="TestFlowActivityService">
+		<wsdl:port name="TestFlowActivityPort" binding="tns:TestFlowActivityBinding">
+			<soap:address
+				location="http://localhost:8080/ode/processes/TestFlowActivityService" />
+		</wsdl:port>
+	</wsdl:service>
+
+	<plnk:partnerLinkType name="testFlowActivityRequest">
+		<plnk:role name="testFlowActivityService" portType="tns:testFlowActivityPT" />
+	</plnk:partnerLinkType>
+
+	<!--
+
+		<plnk:partnerLinkType name="probeRequest"> <plnk:role
+		name="probeService" portType="prb:probeMessagePT" />
+		</plnk:partnerLinkType>
+	-->
+
+	<vprop:property name="testProbeData" type="xsd:string" />
+	<vprop:propertyAlias propertyName="tns:testProbeData"
+		messageType="tns:requestMessage" part="requestMessageData">
+		<vprop:query queryLanguage="urn:oasis:names:tc:wsbpel:2.0:sublang:xpath2.0">
+			typens:requestText
+    </vprop:query>
+	</vprop:propertyAlias>
+
+	<vprop:property name="testFlow1" type="xsd:boolean" />
+	<vprop:propertyAlias propertyName="tns:testFlow1"
+		messageType="tns:requestMessage" part="requestMessageData">
+
+		<vprop:query queryLanguage="urn:oasis:names:tc:wsbpel:2.0:sublang:xpath2.0">
+			typens:flowIndicators/typens:indicatorOne
+		</vprop:query>
+
+	</vprop:propertyAlias>
+
+
+	<vprop:property name="loopInd" type="xsd:string" />
+	<vprop:propertyAlias propertyName="tns:loopInd"
+		messageType="tns:requestMessage" part="requestMessageData">
+
+		<vprop:query queryLanguage="urn:oasis:names:tc:wsbpel:2.0:sublang:xpath2.0">
+			typens:loopIndicator
+    </vprop:query>
+
+	</vprop:propertyAlias>
+
+
+
+</wsdl:definitions>
\ No newline at end of file

Propchange: ode/trunk/bpel-itest/src/test/bpelunit/TestFlowActivity1/TestActivityFlow.wsdl
------------------------------------------------------------------------------
    svn:eol-style = native

Added: ode/trunk/bpel-itest/src/test/bpelunit/TestFlowActivity1/TestFlowActivity1.bpts
URL: http://svn.apache.org/viewvc/ode/trunk/bpel-itest/src/test/bpelunit/TestFlowActivity1/TestFlowActivity1.bpts?rev=960982&view=auto
==============================================================================
--- ode/trunk/bpel-itest/src/test/bpelunit/TestFlowActivity1/TestFlowActivity1.bpts (added)
+++ ode/trunk/bpel-itest/src/test/bpelunit/TestFlowActivity1/TestFlowActivity1.bpts Tue Jul  6 18:59:09 2010
@@ -0,0 +1,39 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<tes:testSuite xmlns:tes1="http://ode/bpel/unit-test/testFlowActivity1.wsdl" xmlns:tes="http://www.bpelunit.org/schema/testSuite">
+    <tes:name>TestFlowActivity1.bpts</tes:name>
+    <tes:baseURL>http://localhost:7777/ws</tes:baseURL>
+    <tes:deployment>
+        <tes:put type="ode" name="TestActivityFlow">
+            <tes:property name="DeploymentArchive">../TestFlowActivity1</tes:property>
+            <tes:property name="ODEDeploymentServiceURL">http://localhost:8080/ode/processes/DeploymentService</tes:property>
+            <tes:wsdl>TestActivityFlow.wsdl</tes:wsdl>
+        </tes:put>
+    </tes:deployment>
+    <tes:testCases>
+        <tes:testCase name="case1" basedOn="" abstract="false" vary="false">
+            <tes:clientTrack>
+                <tes:sendReceive service="tes2:TestFlowActivityService" port="TestFlowActivityPort" operation="request" xmlns:tes1="http://ode/bpel/unit-test/testFlowActivity1" xmlns:tes2="http://ode/bpel/unit-test/testFlowActivity1.wsdl">
+                    <tes:send service="tes1:TestFlowActivityService" port="TestFlowActivityPort" operation="request" fault="false" delaySequence="">
+                        <tes:data>
+                            <request xmlns="http://ode/bpel/unit-test/testFlowActivity1.wsdl.types">
+                                <requestID>Start Test1.1</requestID>
+                                <requestText>Event Start Test1.1</requestText>
+                                <flowIndicators>
+                                    <indicatorOne>yes</indicatorOne>
+                                    <indicatorTwo>yes</indicatorTwo>
+                                </flowIndicators>
+                                <loopIndicator>min</loopIndicator>
+                            </request>
+                        </tes:data>
+                    </tes:send>
+                    <tes:receive service="tes1:TestFlowActivityService" port="TestFlowActivityPort" operation="request" fault="false">
+                        <tes:condition>
+                            <tes:expression>//reply</tes:expression>
+                            <tes:value><![CDATA['processes A and B merge on process C -&gt; merge into root process -&gt; test switch statement -&gt; case min: set loop iterations = 5 -&gt; test loop iterations -&gt; 2 -&gt; 3 -&gt; 4 -&gt; 5 -&gt; 6 -&gt; test1Process complete.']]></tes:value>
+                        </tes:condition>
+                    </tes:receive>
+                </tes:sendReceive>
+            </tes:clientTrack>
+        </tes:testCase>
+    </tes:testCases>
+</tes:testSuite>
\ No newline at end of file

Added: ode/trunk/bpel-itest/src/test/bpelunit/TestFlowActivity1/deploy.xml
URL: http://svn.apache.org/viewvc/ode/trunk/bpel-itest/src/test/bpelunit/TestFlowActivity1/deploy.xml?rev=960982&view=auto
==============================================================================
--- ode/trunk/bpel-itest/src/test/bpelunit/TestFlowActivity1/deploy.xml (added)
+++ ode/trunk/bpel-itest/src/test/bpelunit/TestFlowActivity1/deploy.xml Tue Jul  6 18:59:09 2010
@@ -0,0 +1,31 @@
+<!--
+	~ Licensed to the Apache Software Foundation (ASF) under one
+	~ or more contributor license agreements.  See the NOTICE file
+	~ distributed with this work for additional information
+	~ regarding copyright ownership.  The ASF licenses this file
+	~ to you under the Apache License, Version 2.0 (the
+	~ "License"); you may not use this file except in compliance
+	~ with the License.  You may obtain a copy of the License at
+	~
+	~    http://www.apache.org/licenses/LICENSE-2.0
+	~
+	~ Unless required by applicable law or agreed to in writing,
+	~ software distributed under the License is distributed on an
+	~ "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+	~ KIND, either express or implied.  See the License for the
+	~ specific language governing permissions and limitations
+	~ under the License.
+-->
+
+<deploy xmlns="http://www.apache.org/ode/schemas/dd/2007/03"
+	xmlns:pns="http://ode/bpel/unit-test/testFlowActivity1" 
+	xmlns:wns="http://ode/bpel/unit-test/testFlowActivity1.wsdl">
+
+
+	<process name="pns:TestActivityFlow">
+		<active>true</active>
+		<provide partnerLink="request">
+			<service name="wns:TestFlowActivityService" port="TestFlowActivityPort"/>
+		</provide>
+	</process>
+</deploy>

Propchange: ode/trunk/bpel-itest/src/test/bpelunit/TestFlowActivity1/deploy.xml
------------------------------------------------------------------------------
    svn:eol-style = native

Added: ode/trunk/bpel-itest/src/test/bpelunit/TestFlowLinks/TestFlowLinks.bpel
URL: http://svn.apache.org/viewvc/ode/trunk/bpel-itest/src/test/bpelunit/TestFlowLinks/TestFlowLinks.bpel?rev=960982&view=auto
==============================================================================
--- ode/trunk/bpel-itest/src/test/bpelunit/TestFlowLinks/TestFlowLinks.bpel (added)
+++ ode/trunk/bpel-itest/src/test/bpelunit/TestFlowLinks/TestFlowLinks.bpel Tue Jul  6 18:59:09 2010
@@ -0,0 +1,110 @@
+<?xml version="1.0"?>
+<!--
+  ~ Licensed to the Apache Software Foundation (ASF) under one
+  ~ or more contributor license agreements.  See the NOTICE file
+  ~ distributed with this work for additional information
+  ~ regarding copyright ownership.  The ASF licenses this file
+  ~ to you under the Apache License, Version 2.0 (the
+  ~ "License"); you may not use this file except in compliance
+  ~ with the License.  You may obtain a copy of the License at
+  ~
+  ~    http://www.apache.org/licenses/LICENSE-2.0
+  ~
+  ~ Unless required by applicable law or agreed to in writing,
+  ~ software distributed under the License is distributed on an
+  ~ "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+  ~ KIND, either express or implied.  See the License for the
+  ~ specific language governing permissions and limitations
+  ~ under the License.
+  -->
+<bpel:process  xmlns:wsa="http://schemas.xmlsoap.org/ws/2003/03/addressing"
+               xmlns:saw="workflowns"
+               xmlns:xs="http://www.w3.org/2001/XMLSchema"
+               name="TestCase" targetNamespace="workflowns"
+               queryLanguage="urn:oasis:names:tc:wsbpel:2.0:sublang:xpath2.0"
+               expressionLanguage="urn:oasis:names:tc:wsbpel:2.0:sublang:xpath2.0"
+               suppressJoinFailure="no" exitOnStandardFault="no" xmlns:bpel="http://docs.oasis-open.org/wsbpel/2.0/process/executable">
+    <bpel:import namespace="workflowns" location="TestFlowLinksArtifacts.wsdl" importType="http://schemas.xmlsoap.org/wsdl/" />
+    <bpel:partnerLinks>
+        <bpel:partnerLink name="TestCase" partnerLinkType="saw:TestCase" myRole="WorkflowRole" />
+    </bpel:partnerLinks>
+    <bpel:variables>
+        <bpel:variable name="In" messageType="saw:ExecuteWorkflowSoapIn" />
+    </bpel:variables>
+    <bpel:sequence name="Outer_Workflow">
+        <bpel:receive name="Receive" partnerLink="TestCase" portType="saw:Workflow" operation="ExecuteWorkflow" variable="In" createInstance="yes"/>
+        <bpel:flow name="EndlessRunningFlowOfPain">
+            <bpel:links>
+                <bpel:link name="transition1"/>
+                <bpel:link name="transition2"/>
+                <bpel:link name="transition3"/>
+                <bpel:link name="transition4" />
+                <bpel:link name="test_foo" />
+            </bpel:links>
+            <bpel:sequence name="State-Actioning_Start">
+                <bpel:sources>
+                    <bpel:source linkName="transition1" />
+                </bpel:sources>
+                <bpel:empty/>
+            </bpel:sequence>
+            <bpel:if name="TransitionResolver">
+                <bpel:targets>
+                    <bpel:target linkName="transition1" />
+                </bpel:targets>
+                <bpel:condition>false()</bpel:condition>
+                <bpel:empty>
+                    <bpel:sources>
+                        <bpel:source linkName="transition2" />
+                    </bpel:sources>
+                </bpel:empty>
+                <bpel:elseif>
+                    <bpel:condition>true()</bpel:condition>
+                    <bpel:empty>
+                        <bpel:sources>
+                            <bpel:source linkName="test_foo" />
+                        </bpel:sources>
+                    </bpel:empty>
+                </bpel:elseif>
+                <bpel:else>
+                    <bpel:throw faultName="saw:TransitionConditionOutOfRangeException" />
+                </bpel:else>
+            </bpel:if>
+            <bpel:empty name="test_foo_flow">
+                <bpel:targets>
+                    <bpel:target linkName="test_foo" />
+                </bpel:targets>
+                <bpel:empty/>
+            </bpel:empty>
+            <bpel:sequence name="State-Inbound_Workflows_Selectors" suppressJoinFailure="yes">
+                <bpel:targets>
+                    <bpel:target linkName="transition2" />
+                </bpel:targets>
+                <bpel:sources>
+                    <bpel:source linkName="transition3" />
+                </bpel:sources>
+                <bpel:empty/>
+            </bpel:sequence>
+            <bpel:if name="TransitionResolver2" suppressJoinFailure="yes">
+                <bpel:targets>
+                    <bpel:target linkName="transition3" />
+                </bpel:targets>
+                <bpel:condition> true() </bpel:condition>
+                <bpel:empty name="should-be-dpe">
+                    <bpel:sources>
+                        <bpel:source linkName="transition4" />
+                    </bpel:sources>
+                </bpel:empty>
+                <bpel:else>
+                    <bpel:empty />
+                </bpel:else>
+            </bpel:if>
+            <bpel:sequence name="State-Simple_Inbound" suppressJoinFailure="yes">
+                <bpel:targets>
+                    <bpel:target linkName="transition4" />
+                </bpel:targets>
+                <bpel:empty />
+            </bpel:sequence>
+        </bpel:flow>
+        <bpel:reply name="Reply" partnerLink="TestCase" portType="saw:Workflow" operation="ExecuteWorkflow" variable="In"/>
+    </bpel:sequence>
+</bpel:process>
\ No newline at end of file

Added: ode/trunk/bpel-itest/src/test/bpelunit/TestFlowLinks/TestFlowLinks.bpts
URL: http://svn.apache.org/viewvc/ode/trunk/bpel-itest/src/test/bpelunit/TestFlowLinks/TestFlowLinks.bpts?rev=960982&view=auto
==============================================================================
--- ode/trunk/bpel-itest/src/test/bpelunit/TestFlowLinks/TestFlowLinks.bpts (added)
+++ ode/trunk/bpel-itest/src/test/bpelunit/TestFlowLinks/TestFlowLinks.bpts Tue Jul  6 18:59:09 2010
@@ -0,0 +1,28 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<tes:testSuite xmlns:tes="http://www.bpelunit.org/schema/testSuite" xmlns:wor="workflowns">
+    <tes:name>TestFlowLinks.bpts</tes:name>
+    <tes:baseURL>http://localhost:7777/ws</tes:baseURL>
+    <tes:deployment>
+        <tes:put name="TestCase" type="ode">
+            <tes:property name="DeploymentArchive">.</tes:property>
+            <tes:property name="ODEDeploymentServiceURL">http://localhost:8080/ode/processes/DeploymentService</tes:property>
+            <tes:wsdl>TestFlowLinksArtifacts.wsdl</tes:wsdl>
+        </tes:put>
+    </tes:deployment>
+    <tes:testCases>
+        <tes:testCase name="case1" basedOn="" abstract="false" vary="false">
+            <tes:clientTrack>
+                <tes:sendReceive service="wor:TestCase" port="Workflow" operation="ExecuteWorkflow">
+                    <tes:send service="wor:TestCase" port="Workflow" operation="ExecuteWorkflow" fault="false" delaySequence="">
+                        <tes:data>
+                            <ns1:ExecuteWorkflow xmlns:ns1="workflowns">
+                                <value>foo</value>
+                            </ns1:ExecuteWorkflow>
+                        </tes:data>
+                    </tes:send>
+                    <tes:receive service="wor:TestCase" port="Workflow" operation="ExecuteWorkflow" fault="false"/>
+                </tes:sendReceive>
+            </tes:clientTrack>
+        </tes:testCase>
+    </tes:testCases>
+</tes:testSuite>
\ No newline at end of file

Added: ode/trunk/bpel-itest/src/test/bpelunit/TestFlowLinks/TestFlowLinksArtifacts.wsdl
URL: http://svn.apache.org/viewvc/ode/trunk/bpel-itest/src/test/bpelunit/TestFlowLinks/TestFlowLinksArtifacts.wsdl?rev=960982&view=auto
==============================================================================
--- ode/trunk/bpel-itest/src/test/bpelunit/TestFlowLinks/TestFlowLinksArtifacts.wsdl (added)
+++ ode/trunk/bpel-itest/src/test/bpelunit/TestFlowLinks/TestFlowLinksArtifacts.wsdl Tue Jul  6 18:59:09 2010
@@ -0,0 +1,80 @@
+<?xml version="1.0" encoding="UTF-8"?>
+	<!--
+		~ Licensed to the Apache Software Foundation (ASF) under one ~ or more
+		contributor license agreements. See the NOTICE file ~ distributed with
+		this work for additional information ~ regarding copyright ownership.
+		The ASF licenses this file ~ to you under the Apache License, Version
+		2.0 (the ~ "License"); you may not use this file except in compliance
+		~ with the License. You may obtain a copy of the License at ~ ~
+		http://www.apache.org/licenses/LICENSE-2.0 ~ ~ Unless required by
+		applicable law or agreed to in writing, ~ software distributed under
+		the License is distributed on an ~ "AS IS" BASIS, WITHOUT WARRANTIES
+		OR CONDITIONS OF ANY ~ KIND, either express or implied. See the
+		License for the ~ specific language governing permissions and
+		limitations ~ under the License.
+	-->
+<wsdl:definitions name="TestCase"
+	xmlns:bpel="http://docs.oasis-open.org/wsbpel/2.0/process/executable"
+	xmlns:saw="workflowns" xmlns:wsa="http://schemas.xmlsoap.org/ws/2003/03/addressing"
+	xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns="http://schemas.xmlsoap.org/wsdl/"
+	targetNamespace="workflowns"
+	xmlns:bpws="http://schemas.xmlsoap.org/ws/2003/03/business-process/"
+	xmlns:plnk="http://docs.oasis-open.org/wsbpel/2.0/plnktype" xmlns:xsd="http://www.w3.org/2001/XMLSchema"
+	xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/" xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/">
+	<wsdl:types>
+		<xsd:schema attributeFormDefault="unqualified"
+			elementFormDefault="qualified" xmlns:xsd="http://www.w3.org/2001/XMLSchema"
+			targetNamespace="workflowns">
+			<xsd:element name="ExecuteWorkflow">
+				<xsd:complexType>
+					<xsd:sequence>
+						<xsd:element name="value" type="xsd:string" />
+					</xsd:sequence>
+				</xsd:complexType>
+			</xsd:element>
+			<xsd:element name="ExecuteWorkflowResponse">
+				<xsd:complexType>
+					<xsd:sequence>
+						<xsd:element name="value" type="xsd:string" />
+					</xsd:sequence>
+				</xsd:complexType>
+			</xsd:element>
+		</xsd:schema>
+	</wsdl:types>
+	<wsdl:message name="ExecuteWorkflowSoapIn">
+		<wsdl:part name="parameters" element="saw:ExecuteWorkflow" />
+	</wsdl:message>
+	<wsdl:message name="ExecuteWorkflowSoapOut">
+		<wsdl:part name="parameters" element="saw:ExecuteWorkflowResponse" />
+	</wsdl:message>
+	<wsdl:portType name="Workflow">
+		<wsdl:operation name="ExecuteWorkflow">
+			<wsdl:input message="saw:ExecuteWorkflowSoapIn" />
+			<wsdl:output message="saw:ExecuteWorkflowSoapIn" />
+		</wsdl:operation>
+	</wsdl:portType>
+	<wsdl:binding name="WorkflowSOAP" type="saw:Workflow">
+		<soap:binding xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/"
+			style="document" transport="http://schemas.xmlsoap.org/soap/http" />
+		<wsdl:operation name="ExecuteWorkflow">
+			<soap:operation xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/"
+				soapAction="workflowns/ExecuteWorkflow" />
+			<wsdl:input>
+				<soap:body xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/"
+					use="literal" />
+			</wsdl:input>
+			<wsdl:output>
+				<soap:body xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/"
+					use="literal" />
+			</wsdl:output>
+		</wsdl:operation>
+	</wsdl:binding>
+	<wsdl:service name="TestCase">
+		<wsdl:port name="Workflow" binding="saw:WorkflowSOAP">
+			<soap:address location="http://localhost:8080/ode/processes/TestCase" />
+		</wsdl:port>
+	</wsdl:service>
+	<plnk:partnerLinkType name="TestCase">
+		<plnk:role name="WorkflowRole" portType="saw:Workflow" />
+	</plnk:partnerLinkType>
+</wsdl:definitions>
\ No newline at end of file

Propchange: ode/trunk/bpel-itest/src/test/bpelunit/TestFlowLinks/TestFlowLinksArtifacts.wsdl
------------------------------------------------------------------------------
    svn:eol-style = native

Added: ode/trunk/bpel-itest/src/test/bpelunit/TestFlowLinks/deploy.xml
URL: http://svn.apache.org/viewvc/ode/trunk/bpel-itest/src/test/bpelunit/TestFlowLinks/deploy.xml?rev=960982&view=auto
==============================================================================
--- ode/trunk/bpel-itest/src/test/bpelunit/TestFlowLinks/deploy.xml (added)
+++ ode/trunk/bpel-itest/src/test/bpelunit/TestFlowLinks/deploy.xml Tue Jul  6 18:59:09 2010
@@ -0,0 +1,31 @@
+<?xml version="1.0"?>
+<!--
+  ~ Licensed to the Apache Software Foundation (ASF) under one
+  ~ or more contributor license agreements.  See the NOTICE file
+  ~ distributed with this work for additional information
+  ~ regarding copyright ownership.  The ASF licenses this file
+  ~ to you under the Apache License, Version 2.0 (the
+  ~ "License"); you may not use this file except in compliance
+  ~ with the License.  You may obtain a copy of the License at
+  ~
+  ~    http://www.apache.org/licenses/LICENSE-2.0
+  ~
+  ~ Unless required by applicable law or agreed to in writing,
+  ~ software distributed under the License is distributed on an
+  ~ "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+  ~ KIND, either express or implied.  See the License for the
+  ~ specific language governing permissions and limitations
+  ~ under the License.
+  -->
+<deploy xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" 
+		xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns="http://www.apache.org/ode/schemas/dd/2007/03">
+  <process xmlns:q1="workflowns" name="q1:TestCase">
+    <provide partnerLink="TestCase">
+      <service name="q1:TestCase" port="Workflow" />
+    </provide>
+  </process>
+  <process-events>
+    <enable-event>dataHandling</enable-event>
+    <enable-event>activityLifecycle</enable-event>
+  </process-events>  
+</deploy>
\ No newline at end of file

Propchange: ode/trunk/bpel-itest/src/test/bpelunit/TestFlowLinks/deploy.xml
------------------------------------------------------------------------------
    svn:eol-style = native

Added: ode/trunk/bpel-itest/src/test/bpelunit/TestIf/TestIf.bpel
URL: http://svn.apache.org/viewvc/ode/trunk/bpel-itest/src/test/bpelunit/TestIf/TestIf.bpel?rev=960982&view=auto
==============================================================================
--- ode/trunk/bpel-itest/src/test/bpelunit/TestIf/TestIf.bpel (added)
+++ ode/trunk/bpel-itest/src/test/bpelunit/TestIf/TestIf.bpel Tue Jul  6 18:59:09 2010
@@ -0,0 +1,84 @@
+<!--
+  ~ Licensed to the Apache Software Foundation (ASF) under one
+  ~ or more contributor license agreements.  See the NOTICE file
+  ~ distributed with this work for additional information
+  ~ regarding copyright ownership.  The ASF licenses this file
+  ~ to you under the Apache License, Version 2.0 (the
+  ~ "License"); you may not use this file except in compliance
+  ~ with the License.  You may obtain a copy of the License at
+  ~
+  ~    http://www.apache.org/licenses/LICENSE-2.0
+  ~
+  ~ Unless required by applicable law or agreed to in writing,
+  ~ software distributed under the License is distributed on an
+  ~ "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+  ~ KIND, either express or implied.  See the License for the
+  ~ specific language governing permissions and limitations
+  ~ under the License.
+  -->
+<process name="TestIf"
+         targetNamespace="http://ode/bpel/unit-test"
+         xmlns:bpws="http://docs.oasis-open.org/wsbpel/2.0/process/executable"
+         xmlns="http://docs.oasis-open.org/wsbpel/2.0/process/executable"
+         xmlns:tns="http://ode/bpel/unit-test"
+         xmlns:xsd="http://www.w3.org/2001/XMLSchema"
+         xmlns:test="http://ode/bpel/unit-test.wsdl">
+
+    <import location="TestIf.wsdl"
+            namespace="http://ode/bpel/unit-test.wsdl"
+            importType="http://schemas.xmlsoap.org/wsdl/" />
+
+    <partnerLinks>
+        <partnerLink name="helloPartnerLink"
+                     partnerLinkType="test:HelloPartnerLinkType"
+                     myRole="me" />
+    </partnerLinks>
+
+    <variables>
+        <variable name="myVar" messageType="test:HelloMessage"/>
+        <variable name="tmpVar" type="xsd:string"/>
+    </variables>
+
+    <sequence>
+        <receive
+                name="start"
+                partnerLink="helloPartnerLink"
+                portType="test:HelloPortType"
+                operation="hello"
+                variable="myVar"
+                createInstance="yes"/>
+
+        <assign name="assign1">
+            <copy>
+                <from variable="myVar" part="TestPart"/>
+                <to variable="tmpVar"/>
+            </copy>
+        </assign>
+        <if>
+            <condition>number($tmpVar)=number(2)</condition>
+            <assign name="assignError">
+                <copy>
+                    <from>
+                        <literal>Worked</literal>
+                    </from>
+                    <to variable="myVar" part="TestPart"/>
+                </copy>
+            </assign>
+            <else>
+                <assign name="assignZut">
+                    <copy>
+                        <from>
+                            <literal>Failed</literal>
+                        </from>
+                        <to variable="myVar" part="TestPart"/>
+                    </copy>
+                </assign>
+            </else>
+        </if>
+        <reply name="end"
+               partnerLink="helloPartnerLink"
+               portType="test:HelloPortType"
+               operation="hello"
+               variable="myVar"/>
+    </sequence>
+</process>

Added: ode/trunk/bpel-itest/src/test/bpelunit/TestIf/TestIf.bpts
URL: http://svn.apache.org/viewvc/ode/trunk/bpel-itest/src/test/bpelunit/TestIf/TestIf.bpts?rev=960982&view=auto
==============================================================================
--- ode/trunk/bpel-itest/src/test/bpelunit/TestIf/TestIf.bpts (added)
+++ ode/trunk/bpel-itest/src/test/bpelunit/TestIf/TestIf.bpts Tue Jul  6 18:59:09 2010
@@ -0,0 +1,31 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<tes:testSuite xmlns:tes="http://www.bpelunit.org/schema/testSuite" xmlns:unit="http://ode/bpel/unit-test.wsdl">
+    <tes:name>TestIf.bpts</tes:name>
+    <tes:baseURL>http://localhost:7777/ws</tes:baseURL>
+    <tes:deployment>
+        <tes:put name="TestIf" type="ode">
+            <tes:property name="DeploymentArchive">.</tes:property>
+            <tes:property name="ODEDeploymentServiceURL">http://localhost:8080/ode/processes/DeploymentService</tes:property>
+            <tes:wsdl>TestIf.wsdl</tes:wsdl>
+        </tes:put>
+    </tes:deployment>
+    <tes:testCases>
+        <tes:testCase name="case1" basedOn="" abstract="false" vary="false">
+            <tes:clientTrack>
+                <tes:sendReceive service="unit:HelloService" port="HelloPort" operation="hello">
+                    <tes:send service="unit:HelloService" port="HelloPort" operation="hello" fault="false" delaySequence="">
+                        <tes:data>
+                            <TestPart>2.0</TestPart>
+                        </tes:data>
+                    </tes:send>
+                    <tes:receive service="unit:HelloService" port="HelloPort" operation="hello" fault="false">
+                        <tes:condition>
+                            <tes:expression>//TestPart</tes:expression>
+                            <tes:value>'Worked'</tes:value>
+                        </tes:condition>
+                    </tes:receive>
+                </tes:sendReceive>
+            </tes:clientTrack>
+        </tes:testCase>
+    </tes:testCases>
+</tes:testSuite>
\ No newline at end of file

Added: ode/trunk/bpel-itest/src/test/bpelunit/TestIf/TestIf.wsdl
URL: http://svn.apache.org/viewvc/ode/trunk/bpel-itest/src/test/bpelunit/TestIf/TestIf.wsdl?rev=960982&view=auto
==============================================================================
--- ode/trunk/bpel-itest/src/test/bpelunit/TestIf/TestIf.wsdl (added)
+++ ode/trunk/bpel-itest/src/test/bpelunit/TestIf/TestIf.wsdl Tue Jul  6 18:59:09 2010
@@ -0,0 +1,68 @@
+<?xml version="1.0" encoding="utf-8" ?>
+<!--
+  ~ Licensed to the Apache Software Foundation (ASF) under one
+  ~ or more contributor license agreements.  See the NOTICE file
+  ~ distributed with this work for additional information
+  ~ regarding copyright ownership.  The ASF licenses this file
+  ~ to you under the Apache License, Version 2.0 (the
+  ~ "License"); you may not use this file except in compliance
+  ~ with the License.  You may obtain a copy of the License at
+  ~
+  ~    http://www.apache.org/licenses/LICENSE-2.0
+  ~
+  ~ Unless required by applicable law or agreed to in writing,
+  ~ software distributed under the License is distributed on an
+  ~ "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+  ~ KIND, either express or implied.  See the License for the
+  ~ specific language governing permissions and limitations
+  ~ under the License.
+  -->
+
+<wsdl:definitions 
+    targetNamespace="http://ode/bpel/unit-test.wsdl"
+    xmlns="http://schemas.xmlsoap.org/wsdl/"
+    xmlns:tns="http://ode/bpel/unit-test.wsdl"
+    xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/" 
+    xmlns:xsd="http://www.w3.org/2001/XMLSchema"
+    xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/"
+    xmlns:plnk="http://docs.oasis-open.org/wsbpel/2.0/plnktype">
+    
+    <wsdl:message name="HelloMessage">
+        <wsdl:part name="TestPart" type="xsd:string"/>
+    </wsdl:message>
+    
+    <wsdl:portType name="HelloPortType">
+        <wsdl:operation name="hello">
+            <wsdl:input message="tns:HelloMessage" name="TestIn"/>
+            <wsdl:output message="tns:HelloMessage" name="TestOut"/>
+        </wsdl:operation>    
+    </wsdl:portType>
+    
+     <wsdl:binding name="HelloSoapBinding" type="tns:HelloPortType">
+        <soap:binding style="rpc" transport="http://schemas.xmlsoap.org/soap/http"/>
+        <wsdl:operation name="hello">
+            <soap:operation soapAction="" style="rpc"/>
+            <wsdl:input>
+                <soap:body
+                    namespace="http://ode/bpel/unit-test.wsdl"
+                    use="literal"/>
+            </wsdl:input>
+            <wsdl:output>
+                <soap:body
+                    namespace="http://ode/bpel/unit-test.wsdl" 
+                    use="literal"/>
+            </wsdl:output>
+        </wsdl:operation>
+    </wsdl:binding>
+    <wsdl:service name="HelloService">
+		<wsdl:port name="HelloPort" binding="tns:HelloSoapBinding">
+     		<soap:address location="http://localhost:8080/ode/processes/helloWorld"/>
+		</wsdl:port>
+    </wsdl:service>
+    
+   <plnk:partnerLinkType name="HelloPartnerLinkType">
+       <plnk:role name="me" portType="tns:HelloPortType"/>
+       <plnk:role name="you" portType="tns:HelloPortType"/>
+   </plnk:partnerLinkType>
+</wsdl:definitions>
+

Propchange: ode/trunk/bpel-itest/src/test/bpelunit/TestIf/TestIf.wsdl
------------------------------------------------------------------------------
    svn:eol-style = native

Added: ode/trunk/bpel-itest/src/test/bpelunit/TestIf/deploy.xml
URL: http://svn.apache.org/viewvc/ode/trunk/bpel-itest/src/test/bpelunit/TestIf/deploy.xml?rev=960982&view=auto
==============================================================================
--- ode/trunk/bpel-itest/src/test/bpelunit/TestIf/deploy.xml (added)
+++ ode/trunk/bpel-itest/src/test/bpelunit/TestIf/deploy.xml Tue Jul  6 18:59:09 2010
@@ -0,0 +1,30 @@
+<!--
+  ~ Licensed to the Apache Software Foundation (ASF) under one
+  ~ or more contributor license agreements.  See the NOTICE file
+  ~ distributed with this work for additional information
+  ~ regarding copyright ownership.  The ASF licenses this file
+  ~ to you under the Apache License, Version 2.0 (the
+  ~ "License"); you may not use this file except in compliance
+  ~ with the License.  You may obtain a copy of the License at
+  ~
+  ~    http://www.apache.org/licenses/LICENSE-2.0
+  ~
+  ~ Unless required by applicable law or agreed to in writing,
+  ~ software distributed under the License is distributed on an
+  ~ "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+  ~ KIND, either express or implied.  See the License for the
+  ~ specific language governing permissions and limitations
+  ~ under the License.
+  -->
+<deploy xmlns="http://www.apache.org/ode/schemas/dd/2007/03"
+	xmlns:pns="http://ode/bpel/unit-test" 
+	xmlns:wns="http://ode/bpel/unit-test.wsdl">
+
+
+	<process name="pns:TestIf">
+		<active>true</active>
+		<provide partnerLink="helloPartnerLink">
+			<service name="wns:HelloService" port="HelloPort"/>
+		</provide>
+	</process>
+</deploy>

Propchange: ode/trunk/bpel-itest/src/test/bpelunit/TestIf/deploy.xml
------------------------------------------------------------------------------
    svn:eol-style = native

Added: ode/trunk/bpel-itest/src/test/bpelunit/TestToQuery/QueryTest.bpel
URL: http://svn.apache.org/viewvc/ode/trunk/bpel-itest/src/test/bpelunit/TestToQuery/QueryTest.bpel?rev=960982&view=auto
==============================================================================
--- ode/trunk/bpel-itest/src/test/bpelunit/TestToQuery/QueryTest.bpel (added)
+++ ode/trunk/bpel-itest/src/test/bpelunit/TestToQuery/QueryTest.bpel Tue Jul  6 18:59:09 2010
@@ -0,0 +1,122 @@
+<!--
+  ~ Licensed to the Apache Software Foundation (ASF) under one
+  ~ or more contributor license agreements.  See the NOTICE file
+  ~ distributed with this work for additional information
+  ~ regarding copyright ownership.  The ASF licenses this file
+  ~ to you under the Apache License, Version 2.0 (the
+  ~ "License"); you may not use this file except in compliance
+  ~ with the License.  You may obtain a copy of the License at
+  ~
+  ~    http://www.apache.org/licenses/LICENSE-2.0
+  ~
+  ~ Unless required by applicable law or agreed to in writing,
+  ~ software distributed under the License is distributed on an
+  ~ "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+  ~ KIND, either express or implied.  See the License for the
+  ~ specific language governing permissions and limitations
+  ~ under the License.
+  -->
+
+<bpws:process exitOnStandardFault="yes"
+    expressionLanguage="urn:oasis:names:tc:wsbpel:2.0:sublang:xpath2.0"
+    name="QueryTest"
+    queryLanguage="urn:oasis:names:tc:wsbpel:2.0:sublang:xpath2.0"
+    suppressJoinFailure="yes" targetNamespace="mynamespace"
+    xmlns:bpws="http://docs.oasis-open.org/wsbpel/2.0/process/executable"
+    xmlns:ode="http://www.apache.org/ode/type/extension"
+    xmlns:tns="mynamespace" xmlns:xs="http://www.w3.org/2001/XMLSchema">
+
+    <bpws:import importType="http://schemas.xmlsoap.org/wsdl/"
+        location="QueryTestArtifacts.wsdl" namespace="mynamespace"/>
+
+    <bpws:partnerLinks>
+        <bpws:partnerLink myRole="QueryTest1Provider" name="client" partnerLinkType="tns:QueryTest1"/>
+    </bpws:partnerLinks>
+
+    <bpws:variables>
+        <bpws:variable messageType="tns:QueryTest1RequestMessage" name="input"/>
+        <bpws:variable messageType="tns:QueryTest1ResponseMessage" name="output"/>
+        <bpws:variable element="tns:RecordSet" name="RecordSet"/>
+        <bpws:variable element="tns:Record" name="Record"/>
+    </bpws:variables>
+
+    <bpws:sequence name="QueryTest1">
+        <bpws:receive createInstance="yes" name="ReceiveInput"
+            operation="process" partnerLink="client"
+            portType="tns:QueryTest1" variable="input"/>
+        <bpws:assign name="InitializeRecordSetVariable" validate="no">
+            <bpws:copy>
+                <bpws:from>
+                    <bpws:literal>
+                        <tns:RecordSet xmlns:tns="mynamespace"
+                            xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="mynamespace QueryTest1.wsdl ">
+                            <tns:Record>
+                                <tns:SomeValue>one</tns:SomeValue>
+                                <tns:AnotherValue>ONE</tns:AnotherValue>
+                            </tns:Record>
+                            <tns:Record>
+                                <tns:SomeValue>two</tns:SomeValue>
+                                <tns:AnotherValue>TWO</tns:AnotherValue>
+                            </tns:Record>
+                            <tns:Record>
+                                <tns:SomeValue>three</tns:SomeValue>
+                                <tns:AnotherValue>THREE</tns:AnotherValue>
+                            </tns:Record>
+                        </tns:RecordSet>
+                    </bpws:literal>
+                </bpws:from>
+                <bpws:to variable="RecordSet"/>
+            </bpws:copy>
+        </bpws:assign>
+        <bpws:assign name="InitializeRecordVariable" validate="no">
+            <bpws:copy>
+                <bpws:from>
+                    <bpws:literal>
+                        <tns:Record xmlns:tns="mynamespace"
+                            xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="mynamespace QueryTest1.wsdl ">
+                            <tns:SomeValue/>
+                            <tns:AnotherValue/>
+                        </tns:Record>
+                    </bpws:literal>
+                </bpws:from>
+                <bpws:to variable="Record"/>
+            </bpws:copy>
+        </bpws:assign>
+        <bpws:assign name="AssignRequestedRecordToVariable" validate="no">
+            <bpws:copy>
+                <bpws:from variable="RecordSet">
+                    <bpws:query queryLanguage="urn:oasis:names:tc:wsbpel:2.0:sublang:xpath2.0"><![CDATA[tns:Record[number($input.payload)]/tns:SomeValue]]></bpws:query>
+                </bpws:from>
+
+				<bpws:to variable="Record">
+					<bpws:query queryLanguage="urn:oasis:names:tc:wsbpel:2.0:sublang:xpath2.0"><![CDATA[tns:SomeValue]]></bpws:query>
+				</bpws:to>
+				
+                <!-- <bpws:to expressionLanguage="urn:oasis:names:tc:wsbpel:2.0:sublang:xpath2.0"><![CDATA[$Record/tns:SomeValue]]></bpws:to> -->
+
+            </bpws:copy>
+            <bpws:copy>
+                <bpws:from variable="RecordSet">
+                    <bpws:query queryLanguage="urn:oasis:names:tc:wsbpel:2.0:sublang:xpath2.0"><![CDATA[tns:Record[number($input.payload)]/tns:AnotherValue]]></bpws:query>
+                </bpws:from>
+
+				<bpws:to variable="Record">
+					<bpws:query queryLanguage="urn:oasis:names:tc:wsbpel:2.0:sublang:xpath2.0"><![CDATA[tns:AnotherValue]]></bpws:query>
+				</bpws:to>
+
+                <!-- <bpws:to expressionLanguage="urn:oasis:names:tc:wsbpel:2.0:sublang:xpath2.0"><![CDATA[$Record/tns:AnotherValue]]></bpws:to> -->
+
+            </bpws:copy>
+        </bpws:assign>
+        <bpws:assign name="AssignFromVariableToOutput" validate="no">
+            <bpws:copy>
+                <bpws:from variable="Record">
+                    <bpws:query queryLanguage="urn:oasis:names:tc:wsbpel:2.0:sublang:xpath2.0"><![CDATA[tns:SomeValue]]></bpws:query>
+                </bpws:from>
+                <bpws:to part="payload" variable="output"/>
+            </bpws:copy>
+        </bpws:assign>
+        <bpws:reply name="ReplyWithOutput" operation="process"
+            partnerLink="client" portType="tns:QueryTest1" variable="output"/>
+    </bpws:sequence>
+</bpws:process>
\ No newline at end of file

Added: ode/trunk/bpel-itest/src/test/bpelunit/TestToQuery/QueryTestArtifacts.wsdl
URL: http://svn.apache.org/viewvc/ode/trunk/bpel-itest/src/test/bpelunit/TestToQuery/QueryTestArtifacts.wsdl?rev=960982&view=auto
==============================================================================
--- ode/trunk/bpel-itest/src/test/bpelunit/TestToQuery/QueryTestArtifacts.wsdl (added)
+++ ode/trunk/bpel-itest/src/test/bpelunit/TestToQuery/QueryTestArtifacts.wsdl Tue Jul  6 18:59:09 2010
@@ -0,0 +1,90 @@
+<?xml version="1.0"?>
+<!--
+  ~ Licensed to the Apache Software Foundation (ASF) under one
+  ~ or more contributor license agreements.  See the NOTICE file
+  ~ distributed with this work for additional information
+  ~ regarding copyright ownership.  The ASF licenses this file
+  ~ to you under the Apache License, Version 2.0 (the
+  ~ "License"); you may not use this file except in compliance
+  ~ with the License.  You may obtain a copy of the License at
+  ~
+  ~    http://www.apache.org/licenses/LICENSE-2.0
+  ~
+  ~ Unless required by applicable law or agreed to in writing,
+  ~ software distributed under the License is distributed on an
+  ~ "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+  ~ KIND, either express or implied.  See the License for the
+  ~ specific language governing permissions and limitations
+  ~ under the License.
+  -->
+<definitions name="QueryTest1"
+        targetNamespace="mynamespace"
+        xmlns:tns="mynamespace"
+        xmlns:plnk="http://docs.oasis-open.org/wsbpel/2.0/plnktype"
+        xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/"
+        xmlns="http://schemas.xmlsoap.org/wsdl/"
+        >
+        
+    <types>
+        <schema attributeFormDefault="unqualified" elementFormDefault="qualified" 
+                targetNamespace="mynamespace" 
+                xmlns="http://www.w3.org/2001/XMLSchema">
+
+            <element name="QueryTest1Request" type="int" />
+            <element name="QueryTest1Response" type="string" />
+        
+            <complexType name="RecordType">
+            	<sequence>
+            		<element name="SomeValue" type="string"></element>
+            		<element name="AnotherValue" type="string"></element>
+            	</sequence>
+            </complexType>
+        
+            <complexType name="RecordSetType">
+            	<sequence>
+            		<element ref="tns:Record" minOccurs="0" maxOccurs="unbounded"></element>
+            	</sequence>
+            </complexType>
+            
+            <element name="Record" type="tns:RecordType"></element>
+            <element name="RecordSet" type="tns:RecordSetType"></element>
+        </schema>
+    </types>
+    
+    <message name="QueryTest1RequestMessage">
+        <part name="payload" element="tns:QueryTest1Request"/>
+    </message>
+    <message name="QueryTest1ResponseMessage">
+        <part name="payload" element="tns:QueryTest1Response"/>
+    </message>
+    
+    <portType name="QueryTest1">
+        <operation name="process">
+            <input  message="tns:QueryTest1RequestMessage" />
+            <output message="tns:QueryTest1ResponseMessage"/>
+        </operation>
+    </portType>
+    
+    <plnk:partnerLinkType name="QueryTest1">
+        <plnk:role name="QueryTest1Provider" portType="tns:QueryTest1"/>
+    </plnk:partnerLinkType>
+    
+    <binding name="QueryTest1Binding" type="tns:QueryTest1">
+    	<soap:binding style="document" transport="http://schemas.xmlsoap.org/soap/http" />
+    	<operation name="process">
+    		<soap:operation soapAction="mynamespace/process" />
+    		<input>
+    			<soap:body use="literal" />
+    		</input>
+    		<output>
+    			<soap:body use="literal" />
+    		</output>
+    	</operation>
+    </binding>
+    
+    <service name="QueryTest1Service">
+        <port name="QueryTest1Port" binding="tns:QueryTest1Binding">
+        	<soap:address location="http://localhost:8080/ode/processes/QueryTest1" />
+        </port>
+    </service>
+</definitions>

Propchange: ode/trunk/bpel-itest/src/test/bpelunit/TestToQuery/QueryTestArtifacts.wsdl
------------------------------------------------------------------------------
    svn:eol-style = native

Added: ode/trunk/bpel-itest/src/test/bpelunit/TestToQuery/TestToQuery.bpts
URL: http://svn.apache.org/viewvc/ode/trunk/bpel-itest/src/test/bpelunit/TestToQuery/TestToQuery.bpts?rev=960982&view=auto
==============================================================================
--- ode/trunk/bpel-itest/src/test/bpelunit/TestToQuery/TestToQuery.bpts (added)
+++ ode/trunk/bpel-itest/src/test/bpelunit/TestToQuery/TestToQuery.bpts Tue Jul  6 18:59:09 2010
@@ -0,0 +1,31 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<tes:testSuite xmlns:tes="http://www.bpelunit.org/schema/testSuite" xmlns:myn="mynamespace">
+    <tes:name>TestToQuery.bpts</tes:name>
+    <tes:baseURL>http://localhost:7777/ws</tes:baseURL>
+    <tes:deployment>
+        <tes:put name="QueryTest" type="ode">
+            <tes:property name="DeploymentArchive">.</tes:property>
+            <tes:property name="ODEDeploymentServiceURL">http://localhost:8080/ode/processes/DeploymentService</tes:property>
+            <tes:wsdl>QueryTestArtifacts.wsdl</tes:wsdl>
+        </tes:put>
+    </tes:deployment>
+    <tes:testCases>
+        <tes:testCase name="case1" basedOn="" abstract="false" vary="false">
+            <tes:clientTrack>
+                <tes:sendReceive service="myn:QueryTest1Service" port="QueryTest1Port" operation="process">
+                    <tes:send service="myn:QueryTest1Service" port="QueryTest1Port" operation="process" fault="false">
+                        <tes:data>
+                            <QueryTest1Request xmlns="mynamespace">1</QueryTest1Request>
+                        </tes:data>
+                    </tes:send>
+                    <tes:receive service="myn:QueryTest1Service" port="QueryTest1Port" operation="process" fault="false">
+                        <tes:condition>
+                            <tes:expression>//myn:QueryTest1Response</tes:expression>
+                            <tes:value>'one'</tes:value>
+                        </tes:condition>
+                    </tes:receive>
+                </tes:sendReceive>
+            </tes:clientTrack>
+        </tes:testCase>
+    </tes:testCases>
+</tes:testSuite>
\ No newline at end of file

Added: ode/trunk/bpel-itest/src/test/bpelunit/TestToQuery/deploy.xml
URL: http://svn.apache.org/viewvc/ode/trunk/bpel-itest/src/test/bpelunit/TestToQuery/deploy.xml?rev=960982&view=auto
==============================================================================
--- ode/trunk/bpel-itest/src/test/bpelunit/TestToQuery/deploy.xml (added)
+++ ode/trunk/bpel-itest/src/test/bpelunit/TestToQuery/deploy.xml Tue Jul  6 18:59:09 2010
@@ -0,0 +1,27 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!--
+  ~ Licensed to the Apache Software Foundation (ASF) under one
+  ~ or more contributor license agreements.  See the NOTICE file
+  ~ distributed with this work for additional information
+  ~ regarding copyright ownership.  The ASF licenses this file
+  ~ to you under the Apache License, Version 2.0 (the
+  ~ "License"); you may not use this file except in compliance
+  ~ with the License.  You may obtain a copy of the License at
+  ~
+  ~    http://www.apache.org/licenses/LICENSE-2.0
+  ~
+  ~ Unless required by applicable law or agreed to in writing,
+  ~ software distributed under the License is distributed on an
+  ~ "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+  ~ KIND, either express or implied.  See the License for the
+  ~ specific language governing permissions and limitations
+  ~ under the License.
+  -->
+<deploy xmlns="http://www.apache.org/ode/schemas/dd/2007/03" xmlns:ns1="mynamespace">
+  <process name="ns1:QueryTest">
+    <active>true</active>
+    <provide partnerLink="client">
+      <service name="ns1:QueryTest1Service" port="QueryTest1Port"/>
+    </provide>
+  </process>
+</deploy>

Propchange: ode/trunk/bpel-itest/src/test/bpelunit/TestToQuery/deploy.xml
------------------------------------------------------------------------------
    svn:eol-style = native

Added: ode/trunk/bpel-itest/src/test/bpelunit/TestXQueryExpression/TestXQueryExpression.bpel
URL: http://svn.apache.org/viewvc/ode/trunk/bpel-itest/src/test/bpelunit/TestXQueryExpression/TestXQueryExpression.bpel?rev=960982&view=auto
==============================================================================
--- ode/trunk/bpel-itest/src/test/bpelunit/TestXQueryExpression/TestXQueryExpression.bpel (added)
+++ ode/trunk/bpel-itest/src/test/bpelunit/TestXQueryExpression/TestXQueryExpression.bpel Tue Jul  6 18:59:09 2010
@@ -0,0 +1,222 @@
+<!--
+  ~ Licensed to the Apache Software Foundation (ASF) under one
+  ~ or more contributor license agreements.  See the NOTICE file
+  ~ distributed with this work for additional information
+  ~ regarding copyright ownership.  The ASF licenses this file
+  ~ to you under the Apache License, Version 2.0 (the
+  ~ "License"); you may not use this file except in compliance
+  ~ with the License.  You may obtain a copy of the License at
+  ~
+  ~    http://www.apache.org/licenses/LICENSE-2.0
+  ~
+  ~ Unless required by applicable law or agreed to in writing,
+  ~ software distributed under the License is distributed on an
+  ~ "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+  ~ KIND, either express or implied.  See the License for the
+  ~ specific language governing permissions and limitations
+  ~ under the License.
+  -->
+<process name="HelloXQueryWorld" 
+    targetNamespace="http://ode/bpel/unit-test"
+    xmlns:bpws="http://docs.oasis-open.org/wsbpel/2.0/process/executable"
+    xmlns="http://docs.oasis-open.org/wsbpel/2.0/process/executable"
+    xmlns:tns="http://ode/bpel/unit-test"
+    xmlns:xsd="http://www.w3.org/2001/XMLSchema"
+    xmlns:types="http://ode/bpel/types"
+    xmlns:test="http://ode/bpel/unit-test.wsdl"
+    xmlns:wsa="http://www.w3.org/2005/08/addressing"
+	xmlns:ode="http://www.apache.org/ode/type/extension"
+    queryLanguage="urn:oasis:names:tc:wsbpel:2.0:sublang:xpath2.0"
+    expressionLanguage="urn:oasis:names:tc:wsbpel:2.0:sublang:xpath2.0">
+
+    <import location="TestXQueryExpressionArtifacts.wsdl"
+        namespace="http://ode/bpel/unit-test.wsdl"
+        importType="http://schemas.xmlsoap.org/wsdl/"/>
+    
+    <partnerLinks>
+        <partnerLink name="HelloXQueryPartnerLink" 
+            partnerLinkType="test:HelloXQueryPartnerLinkType" 
+            myRole="me" />
+    </partnerLinks>
+        
+    <variables>
+        <variable name="myVar" messageType="test:HelloXQueryMessage"/>
+        <variable name="otherVar" type="xsd:string"/>
+        <variable name="tempVar" element="test:content"/>
+        <variable name="stringVar" type="xsd:string"/>
+        <variable name="boolVar" type="xsd:boolean"/>
+        <variable name="i" type="xsd:int"/>
+    </variables>
+            
+    <sequence>   
+        <ext:failureHandling xmlns:ext="http://ode.apache.org/activityRecovery">
+          <ext:faultOnFailure>true</ext:faultOnFailure>
+          <ext:retryFor>5</ext:retryFor>
+          <ext:retryDelay>60</ext:retryDelay>
+        </ext:failureHandling>
+        <receive 
+            name="start"
+            partnerLink="HelloXQueryPartnerLink"
+            portType="test:HelloXQueryPortType"
+            operation="HelloXQuery"
+            variable="myVar"
+            createInstance="yes"/>
+        <assign name="assign1">
+            <copy>
+                <from variable="myVar" part="TestPart"/>
+                <to variable="otherVar"/>
+            </copy>
+            <copy>
+                <from expressionLanguage="urn:oasis:names:tc:wsbpel:2.0:sublang:xquery1.0"><![CDATA[<test:content>Hello</test:content>]]></from>
+                <to variable="tempVar"/>
+            </copy>
+            <copy>
+                <from  expressionLanguage="urn:oasis:names:tc:wsbpel:2.0:sublang:xquery1.0"><![CDATA[
+                <sref:service-ref xmlns:sref="http://docs.oasis-open.org/wsbpel/2.0/serviceref">
+                   <wsa:EndpointReference xmlns:pp="http://some-namespace" xmlns:wsa="http://www.w3.org/2005/08/addressing">
+                      <wsa:Address>http://www.w3.org/2005/08/addressing/anonymous</wsa:Address>
+                      <wsa:Metadata>
+                         <Service EndpointName="MyEndpoint">pp:SomeProxy</Service>
+                      </wsa:Metadata>
+                   </wsa:EndpointReference>
+                </sref:service-ref> 
+                ]]>
+                </from>
+                <to variable="tempVar"/>
+            </copy>
+            <copy>
+                <from expressionLanguage="urn:oasis:names:tc:wsbpel:2.0:sublang:xquery1.0">
+					typeswitch ($myVar.TestPart) 
+				      case $a as xs:string return "test"
+					  default return "default"
+				</from>
+                <to variable="otherVar"/>
+            </copy>
+            <copy>
+                <from  expressionLanguage="urn:oasis:names:tc:wsbpel:2.0:sublang:xquery1.0"><![CDATA[
+					typeswitch ($myVar.TestPart) 
+				      case $a as text() return <test:content/>
+					  default return <test:content/>
+					  ]]>
+				</from>
+                <to variable="otherVar"/>
+            </copy>
+			<!-- this copy will fail since saxon is not schema-aware 
+            <copy>
+                <from expressionLanguage="urn:oasis:names:tc:wsbpel:2.0:sublang:xquery1.0">
+					typeswitch ($myVar.TestPart) 
+				      case $a as element(*, test:content) return "test"
+					  default return "default"
+				</from>
+                <to variable="otherVar"/>
+            </copy>
+			-->
+            <copy>
+                <from  expressionLanguage="urn:oasis:names:tc:wsbpel:2.0:sublang:xquery1.0">
+					for $loopOnce in (1) 
+					return 
+						concat(bpws:getVariableProperty("myVar", "test:content"), "XQuery World")
+				</from>
+                <to variable="myVar" part="TestPart"/>
+            </copy>
+        </assign>
+        <if>
+           <condition>not($tempVar/wsa:EndpointReference/wsa:Metadata/Service/@EndpointName eq "MyEndpoint")</condition>
+           <throw faultName="selectionFailure"/>
+        </if>
+        <assign>
+            <copy>
+                <from>0</from>
+                <to variable="i"/>
+            </copy>
+        </assign>
+        <while>
+            <condition>$i &lt; 2</condition>
+            <sequence>
+                <if>
+                    <condition>$i = 0</condition>
+                    <assign>
+                        <copy>
+                            <from>"false"</from>
+                            <to variable="stringVar"/>
+                        </copy>
+                        <copy>
+                            <from>false()</from>
+                            <to variable="boolVar"/>
+                        </copy>
+                    </assign>
+                    <else>
+                        <assign>
+                            <copy>
+                                <from>"true"</from>
+                                <to variable="stringVar"/>
+                            </copy>
+                            <copy>
+                                <from>true()</from>
+                                <to variable="boolVar"/>
+                            </copy>
+                        </assign>
+                    </else>
+                </if>
+				<!--
+                <assign>
+                    <copy>
+                        <from expressionLanguage="urn:oasis:names:tc:wsbpel:2.0:sublang:xquery1.0">
+        						if (boolean($stringVar)) then "trueValue" else "falseValue"
+        				</from>
+                        <to variable="otherVar"/>
+                    </copy>
+                </assign>
+	           <if>
+                    <condition>not($otherVar = concat($stringVar, "Value"))</condition>
+                    <throw faultName="selectionFailure"/>
+                </if>
+    			-->
+     
+          	    <assign>
+                    <copy>
+                        <from expressionLanguage="urn:oasis:names:tc:wsbpel:2.0:sublang:xquery1.0">
+        						if ($boolVar) then "trueValue" else "falseValue"
+        				</from>
+                        <to variable="otherVar"/>
+                    </copy>
+                </assign>
+                <if>
+                    <condition>not($otherVar = concat($stringVar, "Value"))</condition>
+                    <throw faultName="selectionFailure"/>
+                </if>
+    
+                <assign>
+                    <copy>
+                        <from>$i + 1</from>
+                        <to variable="i"/>
+                    </copy>
+                </assign>
+            </sequence>
+        </while>
+        <scope>
+            <faultHandlers>
+                <catch faultName="subLanguageExecutionFault">
+                    <empty/>
+                </catch>
+            </faultHandlers>
+            <assign>
+              <copy>
+    	        <from variable="myVar" part="TestPart">
+    	          <query queryLanguage="urn:oasis:names:tc:wsbpel:2.0:sublang:xquery1.0">
+    	             let $j := 10 div 0
+    	             return concat("abc", $j)
+    	          </query>
+    	        </from>
+    	        <to variable="myVar" part="TestPart"/>
+    	      </copy>
+    	    </assign>
+        </scope>
+        <reply name="end"  
+                partnerLink="HelloXQueryPartnerLink"
+                portType="test:HelloXQueryPortType" 
+                operation="HelloXQuery"
+                variable="myVar"/>
+    </sequence>
+    
+</process>

Added: ode/trunk/bpel-itest/src/test/bpelunit/TestXQueryExpression/TestXQueryExpression.bpts
URL: http://svn.apache.org/viewvc/ode/trunk/bpel-itest/src/test/bpelunit/TestXQueryExpression/TestXQueryExpression.bpts?rev=960982&view=auto
==============================================================================
--- ode/trunk/bpel-itest/src/test/bpelunit/TestXQueryExpression/TestXQueryExpression.bpts (added)
+++ ode/trunk/bpel-itest/src/test/bpelunit/TestXQueryExpression/TestXQueryExpression.bpts Tue Jul  6 18:59:09 2010
@@ -0,0 +1,33 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<tes:testSuite xmlns:tes="http://www.bpelunit.org/schema/testSuite" xmlns:unit="http://ode/bpel/unit-test.wsdl">
+    <tes:name>TestXQueryExpression.bpts</tes:name>
+    <tes:baseURL>http://localhost:7777/ws</tes:baseURL>
+    <tes:deployment>
+        <tes:put name="HelloXQueryWorld" type="ode">
+            <tes:property name="DeploymentArchive">.</tes:property>
+            <tes:property name="ODEDeploymentServiceURL">http://localhost:8080/ode/processes/DeploymentService</tes:property>
+            <tes:wsdl>TestXQueryExpressionArtifacts.wsdl</tes:wsdl>
+        </tes:put>
+    </tes:deployment>
+    <tes:testCases>
+        <tes:testCase name="case1" basedOn="" abstract="false" vary="false">
+            <tes:clientTrack>
+                <tes:sendReceive service="unit:HelloXQueryService" port="HelloXQueryPort" operation="HelloXQuery">
+                    <tes:send service="unit:HelloXQueryService" port="HelloXQueryPort" operation="HelloXQuery" fault="false" delaySequence="">
+                        <tes:data>
+                            <TestPart>
+                                <content>Hello</content>
+                            </TestPart>
+                        </tes:data>
+                    </tes:send>
+                    <tes:receive service="unit:HelloXQueryService" port="HelloXQueryPort" operation="HelloXQuery" fault="false">
+                        <tes:condition>
+                            <tes:expression>//TestPart/content</tes:expression>
+                            <tes:value>'HelloXQuery World'</tes:value>
+                        </tes:condition>
+                    </tes:receive>
+                </tes:sendReceive>
+            </tes:clientTrack>
+        </tes:testCase>
+    </tes:testCases>
+</tes:testSuite>
\ No newline at end of file

Added: ode/trunk/bpel-itest/src/test/bpelunit/TestXQueryExpression/TestXQueryExpressionArtifacts.wsdl
URL: http://svn.apache.org/viewvc/ode/trunk/bpel-itest/src/test/bpelunit/TestXQueryExpression/TestXQueryExpressionArtifacts.wsdl?rev=960982&view=auto
==============================================================================
--- ode/trunk/bpel-itest/src/test/bpelunit/TestXQueryExpression/TestXQueryExpressionArtifacts.wsdl (added)
+++ ode/trunk/bpel-itest/src/test/bpelunit/TestXQueryExpression/TestXQueryExpressionArtifacts.wsdl Tue Jul  6 18:59:09 2010
@@ -0,0 +1,81 @@
+<?xml version="1.0" encoding="utf-8" ?>
+	<!--
+		~ Licensed to the Apache Software Foundation (ASF) under one ~ or more
+		contributor license agreements. See the NOTICE file ~ distributed with
+		this work for additional information ~ regarding copyright ownership.
+		The ASF licenses this file ~ to you under the Apache License, Version
+		2.0 (the ~ "License"); you may not use this file except in compliance
+		~ with the License. You may obtain a copy of the License at ~ ~
+		http://www.apache.org/licenses/LICENSE-2.0 ~ ~ Unless required by
+		applicable law or agreed to in writing, ~ software distributed under
+		the License is distributed on an ~ "AS IS" BASIS, WITHOUT WARRANTIES
+		OR CONDITIONS OF ANY ~ KIND, either express or implied. See the
+		License for the ~ specific language governing permissions and
+		limitations ~ under the License.
+	-->
+
+<wsdl:definitions targetNamespace="http://ode/bpel/unit-test.wsdl"
+	xmlns="http://schemas.xmlsoap.org/wsdl/" xmlns:tns="http://ode/bpel/unit-test.wsdl"
+	xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/" xmlns:xsd="http://www.w3.org/2001/XMLSchema"
+	xmlns:vprop="http://docs.oasis-open.org/wsbpel/2.0/varprop"
+	xmlns:types="http://ode/bpel/types" xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/"
+	xmlns:bpws="http://docs.oasis-open.org/wsbpel/2.0/process/executable"
+	xmlns:plnk="http://docs.oasis-open.org/wsbpel/2.0/plnktype">
+
+	<wsdl:types>
+		<xsd:schema targetNamespace="http://ode/bpel/types">
+			<xsd:complexType name="ContentCT">
+				<xsd:sequence>
+					<xsd:element name="content" type="xsd:string" />
+				</xsd:sequence>
+			</xsd:complexType>
+		</xsd:schema>
+	</wsdl:types>
+
+	<wsdl:message name="HelloXQueryMessage">
+		<wsdl:part name="TestPart" type="types:ContentCT" />
+	</wsdl:message>
+
+	<wsdl:portType name="HelloXQueryPortType">
+		<wsdl:operation name="HelloXQuery">
+			<wsdl:input message="tns:HelloXQueryMessage" name="TestIn" />
+			<wsdl:output message="tns:HelloXQueryMessage" name="TestOut" />
+		</wsdl:operation>
+	</wsdl:portType>
+
+	<wsdl:binding name="HelloXQuerySoapBinding" type="tns:HelloXQueryPortType">
+		<soap:binding style="rpc"
+			transport="http://schemas.xmlsoap.org/soap/http" />
+		<wsdl:operation name="HelloXQuery">
+			<soap:operation soapAction="" style="rpc" />
+			<wsdl:input>
+				<soap:body namespace="http://ode/bpel/unit-test.wsdl" use="literal" />
+			</wsdl:input>
+			<wsdl:output>
+				<soap:body namespace="http://ode/bpel/unit-test.wsdl" use="literal" />
+			</wsdl:output>
+		</wsdl:operation>
+	</wsdl:binding>
+	<wsdl:service name="HelloXQueryService">
+		<wsdl:port name="HelloXQueryPort" binding="tns:HelloXQuerySoapBinding">
+			<soap:address location="http://localhost:8080/ode/processes/HelloXQueryWorld" />
+		</wsdl:port>
+	</wsdl:service>
+
+	<plnk:partnerLinkType name="HelloXQueryPartnerLinkType">
+		<plnk:role name="me" portType="tns:HelloXQueryPortType" />
+		<plnk:role name="you" portType="tns:HelloXQueryPortType" />
+	</plnk:partnerLinkType>
+
+	<vprop:property name="content" type="xsd:string" />
+	<vprop:propertyAlias propertyName="tns:content"
+		messageType="tns:HelloXQueryMessage" part="TestPart">
+
+		<vprop:query queryLanguage="urn:oasis:names:tc:wsbpel:2.0:sublang:xpath2.0">
+			content
+    </vprop:query>
+
+	</vprop:propertyAlias>
+
+</wsdl:definitions>
+

Propchange: ode/trunk/bpel-itest/src/test/bpelunit/TestXQueryExpression/TestXQueryExpressionArtifacts.wsdl
------------------------------------------------------------------------------
    svn:eol-style = native