You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@ode.apache.org by lw...@apache.org on 2006/10/06 05:31:04 UTC
svn commit: r453478 - in
/incubator/ode/trunk/bpel-test/src/test/resources/bpel/2.0/TestDynamicPick:
./ TestDynamicPick.bpel TestDynamicPick.wsdl deploy.xml test1.properties
test2.properties test3.properties
Author: lwaterman
Date: Thu Oct 5 20:31:04 2006
New Revision: 453478
URL: http://svn.apache.org/viewvc?view=rev&rev=453478
Log:
Add new test TestDynamicPick
Added:
incubator/ode/trunk/bpel-test/src/test/resources/bpel/2.0/TestDynamicPick/
incubator/ode/trunk/bpel-test/src/test/resources/bpel/2.0/TestDynamicPick/TestDynamicPick.bpel
incubator/ode/trunk/bpel-test/src/test/resources/bpel/2.0/TestDynamicPick/TestDynamicPick.wsdl
incubator/ode/trunk/bpel-test/src/test/resources/bpel/2.0/TestDynamicPick/deploy.xml
incubator/ode/trunk/bpel-test/src/test/resources/bpel/2.0/TestDynamicPick/test1.properties
incubator/ode/trunk/bpel-test/src/test/resources/bpel/2.0/TestDynamicPick/test2.properties
incubator/ode/trunk/bpel-test/src/test/resources/bpel/2.0/TestDynamicPick/test3.properties
Added: incubator/ode/trunk/bpel-test/src/test/resources/bpel/2.0/TestDynamicPick/TestDynamicPick.bpel
URL: http://svn.apache.org/viewvc/incubator/ode/trunk/bpel-test/src/test/resources/bpel/2.0/TestDynamicPick/TestDynamicPick.bpel?view=auto&rev=453478
==============================================================================
--- incubator/ode/trunk/bpel-test/src/test/resources/bpel/2.0/TestDynamicPick/TestDynamicPick.bpel (added)
+++ incubator/ode/trunk/bpel-test/src/test/resources/bpel/2.0/TestDynamicPick/TestDynamicPick.bpel Thu Oct 5 20:31:04 2006
@@ -0,0 +1,120 @@
+<process xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
+ xsi:schemaLocation="http://schemas.xmlsoap.org/ws/2004/03/business-process/ ../../../../../../../bpel-schemas/src/main/resources/wsbpel_main-draft-Apr-29-2006.xsd"
+ targetNamespace="http://ode/bpel/unit-test/TestDynamicPick"
+ xmlns:tns="http://ode/bpel/unit-test/TestDynamicPick"
+ xmlns:wns="http://ode/bpel/unit-test/TestDynamicPick.wsdl"
+ xmlns:prb="http://ode/bpel/unit-test/ProbeService.wsdl"
+ xmlns="http://schemas.xmlsoap.org/ws/2004/03/business-process/"
+ name="TestDynamicPick"
+ queryLanguage="urn:oasis:names:tc:wsbpel:2.0:sublang:xpath2.0"
+ expressionLanguage="urn:oasis:names:tc:wsbpel:2.0:sublang:xpath2.0"
+ suppressJoinFailure="yes">
+
+ <!-- test pick with blocking dynamic key -->
+
+ <import location="TestDynamicPick.wsdl"
+ namespace="http://ode/bpel/unit-test/TestDynamicPick.wsdl"
+ importType="http://schemas.xmlsoap.org/wsdl/" />
+ <import location="../ProbeService/probeService.wsdl"
+ namespace="http://ode/bpel/unit-test/ProbeService.wsdl"
+ importType="http://schemas.xmlsoap.org/wsdl/"/>
+
+
+ <partnerLinks>
+ <partnerLink name="request" partnerLinkType="wns:TestDynamicPickRequest" myRole="TestDynamicPickService"/>
+ <partnerLink name="probe" partnerLinkType="wns:probeRequest" partnerRole="probeService" initializePartnerRole="yes"/>
+ </partnerLinks>
+ <variables>
+ <variable name="request" messageType="wns:requestMessage"/>
+ <variable name="probeInput" messageType="prb:probeMessage"/>
+ <variable name="reply" messageType="wns:replyMessage"/>
+ </variables>
+ <correlationSets>
+ <correlationSet name="testCorr1" properties="wns:testProbeID wns:testProbeKey1"/>
+ <correlationSet name="testCorr2" properties="wns:testProbeID wns:testProbeKey2"/>
+ </correlationSets>
+ <sequence>
+ <receive name="receive1" partnerLink="request" portType="wns:TestDynamicPickPT" operation="request" variable="request" createInstance="yes">
+ <correlations>
+ <correlation set="testCorr1" initiate="yes"/>
+ <correlation set="testCorr2" initiate="yes"/>
+ </correlations>
+ </receive>
+ <assign name="assign1">
+ <copy>
+ <from variable="request" property="wns:testProbeID"/>
+ <to variable="probeInput" part="probeName"/>
+ </copy>
+ <copy>
+ <from variable="request" property="wns:testProbeData"/>
+ <to variable="probeInput" part="probeData"/>
+ </copy>
+ </assign>
+ <assign>
+ <copy>
+ <from>
+ <literal><![CDATA[loop on pick until message includes requestEnd = yes]]></literal>
+ </from>
+ <to variable="probeInput" part="probeName"/>
+ </copy>
+ </assign>
+ <invoke name="probe" partnerLink="probe" portType="prb:probeMessagePT" operation="probe" inputVariable="probeInput" outputVariable="probeInput"> </invoke>
+ <while>
+ <condition>$request.requestMessageData/requestEnd = 'no'</condition>
+ <pick name="testPick">
+ <onMessage partnerLink="request" portType="wns:TestDynamicPickPT" operation="continue1" variable="request">
+ <correlations>
+ <correlation set="testCorr1"/>
+ </correlations>
+ <sequence>
+ <assign>
+ <copy>
+ <from>
+ <literal><![CDATA[pick branch one invoked]]></literal>
+ </from>
+ <to variable="probeInput" part="probeName"/>
+ </copy>
+ </assign>
+ <invoke name="probe" partnerLink="probe" portType="prb:probeMessagePT" operation="probe" inputVariable="probeInput" outputVariable="probeInput"> </invoke>
+ </sequence>
+ </onMessage>
+ <onMessage partnerLink="request" portType="wns:TestDynamicPickPT" operation="continue2" variable="request">
+ <correlations>
+ <correlation set="testCorr2"/>
+ </correlations>
+ <sequence>
+ <assign>
+ <copy>
+ <from>
+ <literal><![CDATA[pick branch two invoked]]></literal>
+ </from>
+ <to variable="probeInput" part="probeName"/>
+ </copy>
+ </assign>
+ <invoke name="probe" partnerLink="probe" portType="prb:probeMessagePT" operation="probe" inputVariable="probeInput" outputVariable="probeInput"> </invoke>
+ </sequence>
+ </onMessage>
+ </pick>
+ </while>
+ <assign>
+ <copy>
+ <from>
+ <literal>!CDATA[[process complete]]</literal>
+ </from>
+ <to variable="probeInput" part="probeName"/>
+ </copy>
+ </assign>
+ <invoke name="probe" partnerLink="probe" portType="prb:probeMessagePT" operation="probe" inputVariable="probeInput" outputVariable="probeInput"> </invoke>
+ <assign name="assign2">
+ <copy>
+ <from variable="probeInput" part="probeName"/>
+ <to variable="reply" part="replyID"/>
+ </copy>
+ <copy>
+ <from variable="probeInput" part="probeData"/>
+ <to variable="reply" part="replyText"/>
+ </copy>
+ </assign>
+ <reply name="reply" partnerLink="request" portType="wns:TestDynamicPickPT" operation="request" variable="reply"> </reply>
+ </sequence>
+</process>
Added: incubator/ode/trunk/bpel-test/src/test/resources/bpel/2.0/TestDynamicPick/TestDynamicPick.wsdl
URL: http://svn.apache.org/viewvc/incubator/ode/trunk/bpel-test/src/test/resources/bpel/2.0/TestDynamicPick/TestDynamicPick.wsdl?view=auto&rev=453478
==============================================================================
--- incubator/ode/trunk/bpel-test/src/test/resources/bpel/2.0/TestDynamicPick/TestDynamicPick.wsdl (added)
+++ incubator/ode/trunk/bpel-test/src/test/resources/bpel/2.0/TestDynamicPick/TestDynamicPick.wsdl Thu Oct 5 20:31:04 2006
@@ -0,0 +1,125 @@
+<!--
+ ~ 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/TestDynamicPick.wsdl"
+ xmlns:tns="http://ode/bpel/unit-test/TestDynamicPick.wsdl"
+ xmlns:typens="http://ode/bpel/unit-test/TestDynamicPick.wsdl.types"
+ xmlns="http://ode/bpel/unit-test/TestDynamicPick.wsdl"
+ xmlns:prb="http://ode/bpel/unit-test/ProbeService.wsdl"
+ xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/"
+ xmlns:plnk="http://schemas.xmlsoap.org/ws/2004/03/partner-link/"
+ xmlns:xsd="http://www.w3.org/2001/XMLSchema"
+ xmlns:bpws="http://schemas.xmlsoap.org/ws/2004/03/business-process/">
+
+ <import namespace="urn:sybase:bpel:testProbe"
+ location="bpelTests/probeService/probeService.wsdl"/>
+
+ <wsdl:types>
+ <xsd:schema
+ targetNamespace="http://ode/bpel/unit-test/TestDynamicPick.wsdl.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:element name="requestEnd" type="xsd:string"/>
+ </xsd:sequence>
+ </xsd:complexType>
+
+ </xsd:schema>
+ </wsdl:types>
+
+ <wsdl:message name="requestMessage">
+ <wsdl:part name="requestMessageData" type="typens:testMessage"/>
+ </wsdl:message>
+
+ <wsdl:message name="replyMessage">
+ <wsdl:part name="replyID" type="xsd:string"/>
+ <wsdl:part name="replyText" type="xsd:string"/>
+ </wsdl:message>
+
+
+ <wsdl:portType name="TestDynamicPickPT">
+ <wsdl:operation name="request">
+ <wsdl:input message="requestMessage"/>
+ <wsdl:output message="replyMessage"/>
+ </wsdl:operation>
+ <wsdl:operation name="continue1">
+ <wsdl:input message="requestMessage"/>
+ </wsdl:operation>
+ <wsdl:operation name="continue2">
+ <wsdl:input message="requestMessage"/>
+ </wsdl:operation>
+ </wsdl:portType>
+
+ <wsdl:binding name="TestDynamicPickBinding" type="tns:TestDynamicPickPT">
+ <wsdl:operation name="request">
+ </wsdl:operation>
+ <wsdl:operation name="continue1">
+ </wsdl:operation>
+ <wsdl:operation name="continue2">
+ </wsdl:operation>
+ </wsdl:binding>
+ <wsdl:service name="TestDynamicPickService">
+ <wsdl:port name="TestDynamicPickPort" binding="tns:TestDynamicPickBinding">
+ </wsdl:port>
+ </wsdl:service>
+
+ <plnk:partnerLinkType name="TestDynamicPickRequest">
+ <plnk:role name="TestDynamicPickService" portType="TestDynamicPickPT"/>
+ </plnk:partnerLinkType>
+
+ <plnk:partnerLinkType name="probeRequest">
+ <plnk:role name="probeService" portType="prb:probeMessagePT"/>
+ </plnk:partnerLinkType>
+
+ <bpws:property name="testProbeKey1" type="xsd:string"/>
+ <bpws:propertyAlias propertyName="tns:testProbeKey1" messageType="tns:requestMessage" part="requestMessageData">
+ <bpws:query queryLanguage="urn:oasis:names:tc:wsbpel:2.0:sublang:xpath2.0">
+ testMessage/requestKey1
+ </bpws:query>
+ </bpws:propertyAlias>
+
+ <bpws:property name="testProbeKey2" type="xsd:string"/>
+ <bpws:propertyAlias propertyName="tns:testProbeKey2" messageType="tns:requestMessage" part="requestMessageData">
+ <bpws:query queryLanguage="urn:oasis:names:tc:wsbpel:2.0:sublang:xpath2.0">
+ testMessage/requestKey2
+ </bpws:query>
+ </bpws:propertyAlias>
+
+ <bpws:property name="testProbeID" type="xsd:string"/>
+ <bpws:propertyAlias propertyName="tns:testProbeID" messageType="tns:requestMessage" part="requestMessageData">
+ <bpws:query queryLanguage="urn:oasis:names:tc:wsbpel:2.0:sublang:xpath2.0">
+ testMessage/requestID
+ </bpws:query>
+ </bpws:propertyAlias>
+
+ <bpws:property name="testProbeData" type="xsd:string"/>
+ <bpws:propertyAlias propertyName="tns:testProbeData" messageType="tns:requestMessage" part="requestMessageData">
+ <bpws:query queryLanguage="urn:oasis:names:tc:wsbpel:2.0:sublang:xpath2.0">
+ testMessage/requestText
+ </bpws:query>
+ </bpws:propertyAlias>
+
+
+</wsdl:definitions>
Added: incubator/ode/trunk/bpel-test/src/test/resources/bpel/2.0/TestDynamicPick/deploy.xml
URL: http://svn.apache.org/viewvc/incubator/ode/trunk/bpel-test/src/test/resources/bpel/2.0/TestDynamicPick/deploy.xml?view=auto&rev=453478
==============================================================================
--- incubator/ode/trunk/bpel-test/src/test/resources/bpel/2.0/TestDynamicPick/deploy.xml (added)
+++ incubator/ode/trunk/bpel-test/src/test/resources/bpel/2.0/TestDynamicPick/deploy.xml Thu Oct 5 20:31:04 2006
@@ -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://ode.fivesight.com/schemas/2006/06/27/dd"
+ xmlns:pns="http://ode/bpel/unit-test/TestDynamicPick"
+ xmlns:wns="http://ode/bpel/unit-test/TestDynamicPick.wsdl">
+
+
+ <process name="pns:TestDynamicPick">
+ <active>true</active>
+ <provide partnerLink="request">
+ <service name="wns:TestDynamicPickService" port="wns:TestDynamicPickPort"/>
+ </provide>
+ </process>
+</deploy>
Added: incubator/ode/trunk/bpel-test/src/test/resources/bpel/2.0/TestDynamicPick/test1.properties
URL: http://svn.apache.org/viewvc/incubator/ode/trunk/bpel-test/src/test/resources/bpel/2.0/TestDynamicPick/test1.properties?view=auto&rev=453478
==============================================================================
--- incubator/ode/trunk/bpel-test/src/test/resources/bpel/2.0/TestDynamicPick/test1.properties (added)
+++ incubator/ode/trunk/bpel-test/src/test/resources/bpel/2.0/TestDynamicPick/test1.properties Thu Oct 5 20:31:04 2006
@@ -0,0 +1,5 @@
+namespace=http://ode/bpel/unit-test/TestDynamicPick.wsdl
+service=TestDynamicPickService
+operation=request
+request1=<message><requestMessageData><testMessage><requestID>Start Test Dynamic Pick</requestID><requestKey1>Test Dynamic Pick Key 1</requestKey1><requestKey2>Test Dynamic Pick Key 2</requestKey2><requestText>Event Test Dynamic Pick Start</requestText><requestEnd>no</requestEnd></testMessage></requestMessageData></message>
+response1=null
Added: incubator/ode/trunk/bpel-test/src/test/resources/bpel/2.0/TestDynamicPick/test2.properties
URL: http://svn.apache.org/viewvc/incubator/ode/trunk/bpel-test/src/test/resources/bpel/2.0/TestDynamicPick/test2.properties?view=auto&rev=453478
==============================================================================
--- incubator/ode/trunk/bpel-test/src/test/resources/bpel/2.0/TestDynamicPick/test2.properties (added)
+++ incubator/ode/trunk/bpel-test/src/test/resources/bpel/2.0/TestDynamicPick/test2.properties Thu Oct 5 20:31:04 2006
@@ -0,0 +1,5 @@
+namespace=http://ode/bpel/unit-test/TestDynamicPick.wsdl
+service=TestDynamicPickService
+operation=continue1
+request1=<message><requestMessageData><testMessage><requestID>Start Test Dynamic Pick</requestID><requestKey1>Test Dynamic Pick Key 1</requestKey1><requestKey2>Test Dynamic Pick Key 2</requestKey2><requestText>Event Test Dynamic Pick Continue1</requestText><requestEnd>no</requestEnd></testMessage></requestMessageData></message>
+response1=ASYNC
Added: incubator/ode/trunk/bpel-test/src/test/resources/bpel/2.0/TestDynamicPick/test3.properties
URL: http://svn.apache.org/viewvc/incubator/ode/trunk/bpel-test/src/test/resources/bpel/2.0/TestDynamicPick/test3.properties?view=auto&rev=453478
==============================================================================
--- incubator/ode/trunk/bpel-test/src/test/resources/bpel/2.0/TestDynamicPick/test3.properties (added)
+++ incubator/ode/trunk/bpel-test/src/test/resources/bpel/2.0/TestDynamicPick/test3.properties Thu Oct 5 20:31:04 2006
@@ -0,0 +1,5 @@
+namespace=http://ode/bpel/unit-test/TestDynamicPick.wsdl
+service=TestDynamicPickService
+operation=continue2
+request1=<message><requestMessageData><testMessage><requestID>Start Test Dynamic Pick</requestID><requestKey1>Test Dynamic Pick Key 1</requestKey1><requestKey2>Test Dynamic Pick Key 2</requestKey2><requestText>Event Test Dynamic Pick Continue2</requestText><requestEnd>yes</requestEnd></testMessage></requestMessageData></message>
+response1=.*test.*