ode-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From mi...@apache.org
Subject svn commit: r786335 - /ode/branches/APACHE_ODE_1.X/bpel-runtime/src/main/java/org/apache/ode/bpel/runtime/ASSIGN.java
Date Thu, 18 Jun 2009 23:37:58 GMT
Author: midon
Date: Thu Jun 18 23:37:58 2009
New Revision: 786335

URL: http://svn.apache.org/viewvc?rev=786335&view=rev
Log:
be more liberal: accept attributes in endpoint assignment

Modified:
    ode/branches/APACHE_ODE_1.X/bpel-runtime/src/main/java/org/apache/ode/bpel/runtime/ASSIGN.java

Modified: ode/branches/APACHE_ODE_1.X/bpel-runtime/src/main/java/org/apache/ode/bpel/runtime/ASSIGN.java
URL: http://svn.apache.org/viewvc/ode/branches/APACHE_ODE_1.X/bpel-runtime/src/main/java/org/apache/ode/bpel/runtime/ASSIGN.java?rev=786335&r1=786334&r2=786335&view=diff
==============================================================================
--- ode/branches/APACHE_ODE_1.X/bpel-runtime/src/main/java/org/apache/ode/bpel/runtime/ASSIGN.java
(original)
+++ ode/branches/APACHE_ODE_1.X/bpel-runtime/src/main/java/org/apache/ode/bpel/runtime/ASSIGN.java
Thu Jun 18 23:37:58 2009
@@ -463,10 +463,9 @@
 	}
 	
 	private void replaceEndpointRefence(PartnerLinkInstance plval, Node rvalue) throws FaultException
{
-      if (rvalue.getNodeType() == Node.ATTRIBUTE_NODE)
-          throw new FaultException(getOAsssign().getOwner().constants.qnMismatchedAssignmentFailure,
-                "Can't assign an attribute to an endpoint, you probably want to select the
attribute text.");
-
+      if (rvalue.getNodeType() == Node.ATTRIBUTE_NODE){
+          rvalue = rvalue.getOwnerDocument().createTextNode(((Attr) rvalue).getValue());
+      }
         // Eventually wrapping with service-ref element if we've been directly assigned some
         // value that isn't wrapped.
         if (rvalue.getNodeType() == Node.TEXT_NODE ||



Mime
View raw message