You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@ode.apache.org by bo...@apache.org on 2008/04/13 15:16:32 UTC

svn commit: r647566 - in /ode/branches/APACHE_ODE_1.1: bpel-runtime/src/main/java/org/apache/ode/bpel/extvar/jdbc/ bpel-test/src/test/java/org/apache/ode/test/ bpel-test/src/test/resources/ bpel-test/src/test/resources/bpel/2.0/ExtVar3/

Author: boisvert
Date: Sun Apr 13 06:16:29 2008
New Revision: 647566

URL: http://svn.apache.org/viewvc?rev=647566&view=rev
Log:
Test-case and fix for ODE-266: Database external variables: Empty values not handled correctly

Added:
    ode/branches/APACHE_ODE_1.1/bpel-test/src/test/resources/bpel/2.0/ExtVar3/
    ode/branches/APACHE_ODE_1.1/bpel-test/src/test/resources/bpel/2.0/ExtVar3/ExtVar3-EmptyValues.bpel
    ode/branches/APACHE_ODE_1.1/bpel-test/src/test/resources/bpel/2.0/ExtVar3/ExtVar3-EmptyValues.wsdl
    ode/branches/APACHE_ODE_1.1/bpel-test/src/test/resources/bpel/2.0/ExtVar3/ExtVar3.wsdl
    ode/branches/APACHE_ODE_1.1/bpel-test/src/test/resources/bpel/2.0/ExtVar3/deploy.xml
    ode/branches/APACHE_ODE_1.1/bpel-test/src/test/resources/bpel/2.0/ExtVar3/test.properties
    ode/branches/APACHE_ODE_1.1/bpel-test/src/test/resources/log4j.properties
Modified:
    ode/branches/APACHE_ODE_1.1/bpel-runtime/src/main/java/org/apache/ode/bpel/extvar/jdbc/DbExternalVariable.java
    ode/branches/APACHE_ODE_1.1/bpel-runtime/src/main/java/org/apache/ode/bpel/extvar/jdbc/JdbcExternalVariableModule.java
    ode/branches/APACHE_ODE_1.1/bpel-test/src/test/java/org/apache/ode/test/ExternalVariableTest.java

Modified: ode/branches/APACHE_ODE_1.1/bpel-runtime/src/main/java/org/apache/ode/bpel/extvar/jdbc/DbExternalVariable.java
URL: http://svn.apache.org/viewvc/ode/branches/APACHE_ODE_1.1/bpel-runtime/src/main/java/org/apache/ode/bpel/extvar/jdbc/DbExternalVariable.java?rev=647566&r1=647565&r2=647566&view=diff
==============================================================================
--- ode/branches/APACHE_ODE_1.1/bpel-runtime/src/main/java/org/apache/ode/bpel/extvar/jdbc/DbExternalVariable.java (original)
+++ ode/branches/APACHE_ODE_1.1/bpel-runtime/src/main/java/org/apache/ode/bpel/extvar/jdbc/DbExternalVariable.java Sun Apr 13 06:16:29 2008
@@ -278,7 +278,7 @@
         String strdat = c.toText(data);
         if (strdat != null)
             cel.appendChild(doc.createTextNode(strdat));
-        else
+        else if (c.nullok) 
             cel.setAttributeNS(XSI_NS, "xsi:nil", "true");
         parent.appendChild(cel);
     }
@@ -305,13 +305,13 @@
             }
 
 			String nil = ((Element) n).getAttributeNS(XSI_NS, "nil");
-            if (nil != null && "true".equalsIgnoreCase(nil) && (val == null)) {
+            if (nil != null && "true".equalsIgnoreCase(nil) && (val == null || val.trim().length() == 0)) {
                 if (__log.isDebugEnabled()) __log.debug("Extvar key: "+key+" is null (xsi:nil)");
 				ret.put(key, null);
             } else {
 				ret.put(key, column.fromText(val));
+            }
 		}
-        }
 		return ret;
 	}
 
@@ -369,6 +369,10 @@
 			}
 		}
 
+        boolean supportsEmptyValue() {
+            return (dataType == Types.VARCHAR || dataType == Types.LONGVARCHAR || dataType == Types.CLOB); 
+        }
+
 		/**
 		 * Return <code>true</code> if column is a date-like type.
 		 */
@@ -439,22 +443,37 @@
 
 		Object fromText(String val) throws ExternalVariableModuleException {
 			try {
+                if (val == null)
+                    return null;
+                
+                if (!supportsEmptyValue() && val.trim().length() == 0) {
+                    return null;
+                }
+                
 				// TODO: use xsd:date and xsd:time conversions
 				if (isDate())
-					return new java.sql.Date(ISO8601DateParser.parse(val)
-							.getTime());
+                    return new java.sql.Date(ISO8601DateParser.parse(val).getTime());
 				else if (isTime())
-					return new java.sql.Time(ISO8601DateParser.parse(val)
-							.getTime());
+                    return new java.sql.Time(ISO8601DateParser.parse(val).getTime());
 				else if (isTimeStamp())
-					return new java.sql.Timestamp(ISO8601DateParser.parse(val)
-							.getTime());
-				else if (isInteger())
+                    return new java.sql.Timestamp(ISO8601DateParser.parse(val).getTime());
+                else if (isInteger()) {
+                    String v = val.trim().toLowerCase();
+                    if (v.equals("true"))
+                        return 1;
+                    if (v.equals("false"))
+                        return 0;
 					return Long.valueOf(val);
-				else if (isReal())
+                } else if (isReal())
 					return Double.valueOf(val);
-				else if (isBoolean())
+                else if (isBoolean()) {
+                    String v = val.trim();
+                    if (v.equals("1"))
+                        return true;
+                    if (v.equals("0"))
+                        return false;
 					return Boolean.valueOf(val);
+                }
 
 				return val;
 			} catch (Exception ex) {

Modified: ode/branches/APACHE_ODE_1.1/bpel-runtime/src/main/java/org/apache/ode/bpel/extvar/jdbc/JdbcExternalVariableModule.java
URL: http://svn.apache.org/viewvc/ode/branches/APACHE_ODE_1.1/bpel-runtime/src/main/java/org/apache/ode/bpel/extvar/jdbc/JdbcExternalVariableModule.java?rev=647566&r1=647565&r2=647566&view=diff
==============================================================================
--- ode/branches/APACHE_ODE_1.1/bpel-runtime/src/main/java/org/apache/ode/bpel/extvar/jdbc/JdbcExternalVariableModule.java (original)
+++ ode/branches/APACHE_ODE_1.1/bpel-runtime/src/main/java/org/apache/ode/bpel/extvar/jdbc/JdbcExternalVariableModule.java Sun Apr 13 06:16:29 2008
@@ -397,7 +397,10 @@
                 Object val = c.getValue(c.name, keys, values, locator.iid);
                 values.put(c.name, val);
                 if (__log.isDebugEnabled()) __log.debug("Set parameter "+idx+": "+val);
-                stmt.setObject(idx, val);
+                if (val == null)
+                    stmt.setNull(idx, c.dataType);
+                else 
+                    stmt.setObject(idx, val);
                 idx++;
             }
 

Modified: ode/branches/APACHE_ODE_1.1/bpel-test/src/test/java/org/apache/ode/test/ExternalVariableTest.java
URL: http://svn.apache.org/viewvc/ode/branches/APACHE_ODE_1.1/bpel-test/src/test/java/org/apache/ode/test/ExternalVariableTest.java?rev=647566&r1=647565&r2=647566&view=diff
==============================================================================
--- ode/branches/APACHE_ODE_1.1/bpel-test/src/test/java/org/apache/ode/test/ExternalVariableTest.java (original)
+++ ode/branches/APACHE_ODE_1.1/bpel-test/src/test/java/org/apache/ode/test/ExternalVariableTest.java Sun Apr 13 06:16:29 2008
@@ -31,9 +31,6 @@
 
 /**
  * Simple test of external variables.
- * 
- * @author Maciej Szefler <mszefler at gmail dot com>
- * 
  */
 public class ExternalVariableTest extends BPELTestAbstract {
 
@@ -62,9 +59,13 @@
 
         s.execute("CREATE TABLE costPerCustomer (value0 varchar(250), key1 varchar(250) primary key)");
         
+        s.execute("CREATE TABLE DataTypesTest (KEYSTRING VARCHAR(255), STRINGCOL VARCHAR(255), FLOATCOL FLOAT, " 
+            + "INTCOL INTEGER, NUMBERCOL NUMERIC, TIMESTAMPCOL TIMESTAMP, BOOLEANCOL TINYINT)");
+        
         conn.close();
     }
 
+    /*
     @Test
     public void testHelloWorld2() throws Throwable {
         go("/bpel/2.0/ExtVar");
@@ -74,5 +75,10 @@
     public void testExtVar2() throws Throwable {
         go("/bpel/2.0/ExtVar2");
     }
+    */
 
+    @Test
+    public void testExtVar2() throws Throwable {
+        go("/bpel/2.0/ExtVar3");
+    }
 }

Added: ode/branches/APACHE_ODE_1.1/bpel-test/src/test/resources/bpel/2.0/ExtVar3/ExtVar3-EmptyValues.bpel
URL: http://svn.apache.org/viewvc/ode/branches/APACHE_ODE_1.1/bpel-test/src/test/resources/bpel/2.0/ExtVar3/ExtVar3-EmptyValues.bpel?rev=647566&view=auto
==============================================================================
--- ode/branches/APACHE_ODE_1.1/bpel-test/src/test/resources/bpel/2.0/ExtVar3/ExtVar3-EmptyValues.bpel (added)
+++ ode/branches/APACHE_ODE_1.1/bpel-test/src/test/resources/bpel/2.0/ExtVar3/ExtVar3-EmptyValues.bpel Sun Apr 13 06:16:29 2008
@@ -0,0 +1,81 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<bpel:process xmlns:bpel="http://docs.oasis-open.org/wsbpel/2.0/process/executable" 
+            xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/" 
+            xmlns:xs="http://www.w3.org/2001/XMLSchema" 
+            xmlns:vprop="http://docs.oasis-open.org/wsbpel/2.0/varprop" 
+            xmlns:pnlk="http://docs.oasis-open.org/wsbpel/2.0/plnktype" 
+            xmlns:extvar3="http://test.com/xvar/example" 
+            xmlns:this="http://example.com/process/ExtVar3/EmptyValues" 
+            xmlns:tns="http://www.example.org/TestSchema" 
+            xmlns:external="http://example.com/process/ExtVar3/external" 
+            xmlns:diag="http://example.com/process/ExtVar3" 
+            xmlns:atomic="http://ode.apache.org/atomicScope" 
+            queryLanguage="urn:oasis:names:tc:wsbpel:2.0:sublang:xpath2.0" 
+            expressionLanguage="urn:oasis:names:tc:wsbpel:2.0:sublang:xpath2.0" 
+            name="EmptyValues" targetNamespace="http://example.com/process/ExtVar3/EmptyValues">
+  <bpel:import namespace="http://example.com/process/ExtVar3" location="ExtVar3.wsdl" importType="http://schemas.xmlsoap.org/wsdl/"/>
+  <bpel:import namespace="http://example.com/process/ExtVar3/EmptyValues" location="ExtVar3-EmptyValues.wsdl" importType="http://schemas.xmlsoap.org/wsdl/"/>
+  <bpel:partnerLinks>
+    <bpel:partnerLink name="EmptyValuesAndExternalPlkVar" partnerLinkType="diag:EmptyValuesAndExternal" myRole="EmptyValues_for_external"/>
+  </bpel:partnerLinks>
+  <bpel:variables>
+    <bpel:variable name="thisEventStartMessageRequest" messageType="this:EventStartMessageRequest"/>
+    <bpel:variable name="DataTypesTest-keys" element="extvar3:DataTypesTest-keys"/>
+    <bpel:variable name="DataTypesTest" element="extvar3:DataTypesTest" xmlns:xvar="http://ode.apache.org/externalVariables" xvar:id="DataTypesTest-_X6kAaANuEd23JYbph3XjSA" xvar:relates-to="DataTypesTest-keys"/>
+  </bpel:variables>
+  <bpel:sequence>
+    <bpel:receive partnerLink="EmptyValuesAndExternalPlkVar" 
+                  portType="this:Forexternal" 
+                  operation="EventStartMessage" 
+                  variable="thisEventStartMessageRequest" 
+                  createInstance="yes" />
+    <bpel:assign name="init-variables-EmptyValues">
+      <bpel:copy>
+        <bpel:from>
+          <bpel:literal><extvar3:DataTypesTest><extvar3:keyString/></extvar3:DataTypesTest></bpel:literal>
+        </bpel:from>
+        <bpel:to>$DataTypesTest-keys</bpel:to>
+      </bpel:copy>
+    </bpel:assign>
+    <bpel:assign>
+      <bpel:copy>
+        <bpel:from>concat("key-", current-dateTime())</bpel:from>
+        <bpel:to>$DataTypesTest-keys/extvar3:keyString</bpel:to>
+      </bpel:copy>
+    </bpel:assign>
+    <bpel:assign>
+      <bpel:copy>
+        <bpel:from>concat("test_value_", current-dateTime())</bpel:from>
+        <bpel:to>$DataTypesTest/extvar3:StringCol</bpel:to>
+      </bpel:copy>
+    </bpel:assign>
+    <bpel:assign>
+      <bpel:copy>
+        <bpel:from>123.45</bpel:from>
+        <bpel:to>$DataTypesTest/extvar3:floatCol</bpel:to>
+      </bpel:copy>
+      <bpel:copy>
+        <bpel:from>1</bpel:from>
+        <bpel:to>$DataTypesTest/extvar3:intCol</bpel:to>
+      </bpel:copy>
+      <bpel:copy>
+        <bpel:from>2</bpel:from>
+        <bpel:to>$DataTypesTest/extvar3:numberCol</bpel:to>
+      </bpel:copy>
+    </bpel:assign>
+    <bpel:assign>
+      <bpel:copy>
+        <bpel:from>current-dateTime()</bpel:from>
+        <bpel:to>$DataTypesTest/extvar3:timestampCol</bpel:to>
+      </bpel:copy>
+      <bpel:copy>
+        <bpel:from>true()</bpel:from>
+        <bpel:to>$DataTypesTest/extvar3:booleanCol</bpel:to>
+      </bpel:copy>
+    </bpel:assign>
+    <bpel:reply partnerLink="EmptyValuesAndExternalPlkVar" 
+                portType="this:Forexternal" 
+                operation="EventStartMessage" 
+                variable="thisEventStartMessageRequest" />
+  </bpel:sequence>
+</bpel:process>

Added: ode/branches/APACHE_ODE_1.1/bpel-test/src/test/resources/bpel/2.0/ExtVar3/ExtVar3-EmptyValues.wsdl
URL: http://svn.apache.org/viewvc/ode/branches/APACHE_ODE_1.1/bpel-test/src/test/resources/bpel/2.0/ExtVar3/ExtVar3-EmptyValues.wsdl?rev=647566&view=auto
==============================================================================
--- ode/branches/APACHE_ODE_1.1/bpel-test/src/test/resources/bpel/2.0/ExtVar3/ExtVar3-EmptyValues.wsdl (added)
+++ ode/branches/APACHE_ODE_1.1/bpel-test/src/test/resources/bpel/2.0/ExtVar3/ExtVar3-EmptyValues.wsdl Sun Apr 13 06:16:29 2008
@@ -0,0 +1,34 @@
+<?xml version='1.0' encoding='utf-8'?>
+<wsdl:definitions xmlns:bpel="http://docs.oasis-open.org/wsbpel/2.0/process/executable" xmlns:diag="http://example.com/process/ExtVar3" xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/" xmlns:tns="http://www.example.org/TestSchema" xmlns:bamtest="http://test.com/xvar/example" xmlns:external="http://example.com/process/ExtVar3/external" xmlns:xs="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/" xmlns:pnlk="http://docs.oasis-open.org/wsbpel/2.0/plnktype" xmlns:this="http://example.com/process/ExtVar3/EmptyValues" targetNamespace="http://example.com/process/ExtVar3/EmptyValues">
+    <wsdl:types>
+        <xs:schema elementFormDefault="qualified" targetNamespace="http://example.com/process/ExtVar3/EmptyValues">
+            <xs:element name="EventStartMessageRequest" type="xs:string"/>
+        </xs:schema>
+    </wsdl:types>
+    <wsdl:message name="EventStartMessageRequest">
+        <wsdl:part name="body" element="this:EventStartMessageRequest"/>
+    </wsdl:message>
+    <wsdl:portType name="Forexternal">
+        <wsdl:operation name="EventStartMessage">
+            <wsdl:input message="this:EventStartMessageRequest" name="EventStartMessage"/>
+            <wsdl:output message="this:EventStartMessageRequest"/>
+        </wsdl:operation>
+    </wsdl:portType>
+    <wsdl:binding name="CanonicBindingForexternal" type="this:Forexternal">
+        <soap:binding style="document" transport="http://schemas.xmlsoap.org/soap/http"/>
+        <wsdl:operation name="EventStartMessage">
+            <soap:operation style="document" soapAction="http://example.com/process/ExtVar3/EmptyValues/Forexternal/EventStartMessage"/>
+            <wsdl:input>
+                <soap:body use="literal"/>
+            </wsdl:input>
+            <wsdl:output>
+                <soap:body use="literal"/>
+            </wsdl:output>
+        </wsdl:operation>
+    </wsdl:binding>
+    <wsdl:service name="CanonicServiceForexternal">
+        <wsdl:port name="canonicPort" binding="this:CanonicBindingForexternal">
+            <soap:address location="http://localhost:8080/ode/processes/BamTestProject/process/ExtVar3/EmptyValues/external"/>
+        </wsdl:port>
+    </wsdl:service>
+</wsdl:definitions>

Added: ode/branches/APACHE_ODE_1.1/bpel-test/src/test/resources/bpel/2.0/ExtVar3/ExtVar3.wsdl
URL: http://svn.apache.org/viewvc/ode/branches/APACHE_ODE_1.1/bpel-test/src/test/resources/bpel/2.0/ExtVar3/ExtVar3.wsdl?rev=647566&view=auto
==============================================================================
--- ode/branches/APACHE_ODE_1.1/bpel-test/src/test/resources/bpel/2.0/ExtVar3/ExtVar3.wsdl (added)
+++ ode/branches/APACHE_ODE_1.1/bpel-test/src/test/resources/bpel/2.0/ExtVar3/ExtVar3.wsdl Sun Apr 13 06:16:29 2008
@@ -0,0 +1,7 @@
+<?xml version='1.0' encoding='utf-8'?>
+<wsdl:definitions xmlns:bpdm="http://www.intalio/designer/business-process-data-modeling" xmlns:bpel="http://docs.oasis-open.org/wsbpel/2.0/process/executable" xmlns:diag="http://example.com/process/ExtVar3" xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/" xmlns:tns="http://www.example.org/TestSchema" xmlns:external="http://example.com/process/ExtVar3/external" xmlns:bamtest="http://test.com/xvar/example" xmlns:xs="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/" xmlns:pnlk="http://docs.oasis-open.org/wsbpel/2.0/plnktype" xmlns:EmptyValues="http://example.com/process/ExtVar3/EmptyValues" targetNamespace="http://example.com/process/ExtVar3">
+    <wsdl:import namespace="http://example.com/process/ExtVar3/EmptyValues" location="ExtVar3-EmptyValues.wsdl"/>
+    <pnlk:partnerLinkType name="EmptyValuesAndExternal">
+        <pnlk:role name="EmptyValues_for_external" portType="EmptyValues:Forexternal"/>
+    </pnlk:partnerLinkType>
+</wsdl:definitions>

Added: ode/branches/APACHE_ODE_1.1/bpel-test/src/test/resources/bpel/2.0/ExtVar3/deploy.xml
URL: http://svn.apache.org/viewvc/ode/branches/APACHE_ODE_1.1/bpel-test/src/test/resources/bpel/2.0/ExtVar3/deploy.xml?rev=647566&view=auto
==============================================================================
--- ode/branches/APACHE_ODE_1.1/bpel-test/src/test/resources/bpel/2.0/ExtVar3/deploy.xml (added)
+++ ode/branches/APACHE_ODE_1.1/bpel-test/src/test/resources/bpel/2.0/ExtVar3/deploy.xml Sun Apr 13 06:16:29 2008
@@ -0,0 +1,30 @@
+<?xml version='1.0' encoding='UTF-8'?>
+<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:diag="http://example.com/process/ExtVar3" 
+                xmlns:tns="http://www.example.org/TestSchema" 
+                xmlns:external="http://example.com/process/ExtVar3/external" 
+                xmlns:bamtest="http://test.com/xvar/example" 
+                xmlns:xs="http://www.w3.org/2001/XMLSchema" 
+                xmlns:this="http://example.com/process/ExtVar3/EmptyValues" 
+                name="this:EmptyValues" 
+                fileName="process/ExtVar3-EmptyValues.bpel">
+      <xvar:externalVariable xmlns:xvar="http://ode.apache.org/externalVariables" id="DataTypesTest-_X6kAaANuEd23JYbph3XjSA">
+        <xjdbc:jdbc xmlns:xjdbc="http://ode.apache.org/externalVariables/jdbc">
+          <xjdbc:datasource-ref>testds</xjdbc:datasource-ref>
+          <xjdbc:table>DataTypesTest</xjdbc:table>
+          <xjdbc:column name="keyString" key="yes" sql-type="VARCHAR" xsd-type="xs:string" />
+          <xjdbc:column name="StringCol" key="no" sql-type="VARCHAR" xsd-type="xs:string" />
+          <xjdbc:column name="floatCol" key="no" sql-type="FLOAT" xsd-type="xs:float" />
+          <xjdbc:column name="intCol" key="no" sql-type="INTEGER" xsd-type="xs:integer" />
+          <xjdbc:column name="numberCol" key="no" sql-type="NUMERIC" xsd-type="xs:decimal" />
+          <xjdbc:column name="timestampCol" key="no" sql-type="TIMESTAMP" xsd-type="xs:dateTime" />
+          <xjdbc:column name="booleanCol" key="no" sql-type="BOOLEAN" xsd-type="xs:boolean" />
+          <xjdbc:init mode="update-insert" />
+        </xjdbc:jdbc>
+      </xvar:externalVariable>
+      <dd:provide partnerLink="EmptyValuesAndExternalPlkVar">
+        <dd:service name="this:CanonicServiceForexternal" port="canonicPort" />
+      </dd:provide>
+    </dd:process>
+</dd:deploy>

Added: ode/branches/APACHE_ODE_1.1/bpel-test/src/test/resources/bpel/2.0/ExtVar3/test.properties
URL: http://svn.apache.org/viewvc/ode/branches/APACHE_ODE_1.1/bpel-test/src/test/resources/bpel/2.0/ExtVar3/test.properties?rev=647566&view=auto
==============================================================================
--- ode/branches/APACHE_ODE_1.1/bpel-test/src/test/resources/bpel/2.0/ExtVar3/test.properties (added)
+++ ode/branches/APACHE_ODE_1.1/bpel-test/src/test/resources/bpel/2.0/ExtVar3/test.properties Sun Apr 13 06:16:29 2008
@@ -0,0 +1,23 @@
+#
+#    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.
+#
+
+namespace=http://example.com/process/ExtVar3/EmptyValues
+service=CanonicServiceForexternal
+operation=EventStartMessage
+request1=<message><body><tns:EventStartMessageRequest xmlns:tns="http://example.com/process/ExtVar3/EmptyValues">foo</tns:EventStartMessageRequest></body></message>
+response1=.*foo.*
+

Added: ode/branches/APACHE_ODE_1.1/bpel-test/src/test/resources/log4j.properties
URL: http://svn.apache.org/viewvc/ode/branches/APACHE_ODE_1.1/bpel-test/src/test/resources/log4j.properties?rev=647566&view=auto
==============================================================================
--- ode/branches/APACHE_ODE_1.1/bpel-test/src/test/resources/log4j.properties (added)
+++ ode/branches/APACHE_ODE_1.1/bpel-test/src/test/resources/log4j.properties Sun Apr 13 06:16:29 2008
@@ -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.
+#
+
+# Set root logger level to WARN and its only appender to CONSOLE
+log4j.rootLogger=WARN, CONSOLE
+
+# log4j properties to work with commandline tools.
+log4j.category.org.mortbay=ERROR
+log4j.category.org.hibernate.type=WARN
+log4j.category.org.objectweb=ERROR
+log4j.category.org.apache.ode=DEBUG
+log4j.category.org.apache.ode.bpel.runtime=DEBUG
+
+# Console appender
+log4j.appender.CONSOLE=org.apache.log4j.ConsoleAppender
+log4j.appender.CONSOLE.layout=org.apache.log4j.PatternLayout
+log4j.appender.CONSOLE.layout.ConversionPattern=%p - %C{1}.%M(%L) | %m%n