You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@ode.apache.org by mi...@apache.org on 2009/06/19 01:37:58 UTC
svn commit: r786335 -
/ode/branches/APACHE_ODE_1.X/bpel-runtime/src/main/java/org/apache/ode/bpel/runtime/ASSIGN.java
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 ||