Author: mriou
Date: Thu Apr 10 15:46:02 2008
New Revision: 646996

URL: http://svn.apache.org/viewvc?rev=646996&view=rev
Log:
Optimization on assign, no need to save twice when a variable is initialized 
and then set.

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

Modified: 
ode/branches/APACHE_ODE_1.1/bpel-runtime/src/main/java/org/apache/ode/bpel/runtime/ASSIGN.java
URL: 
http://svn.apache.org/viewvc/ode/branches/APACHE_ODE_1.1/bpel-runtime/src/main/java/org/apache/ode/bpel/runtime/ASSIGN.java?rev=646996&r1=646995&r2=646996&view=diff
==============================================================================
--- 
ode/branches/APACHE_ODE_1.1/bpel-runtime/src/main/java/org/apache/ode/bpel/runtime/ASSIGN.java
 (original)
+++ 
ode/branches/APACHE_ODE_1.1/bpel-runtime/src/main/java/org/apache/ode/bpel/runtime/ASSIGN.java
 Thu Apr 10 15:46:02 2008
@@ -121,7 +121,9 @@
                     tempwrapper.appendChild(val);
                     val = tempwrapper;
                 } else doc.appendChild(val);
-                lval = initializeVariable(lvar, val);
+                // Only external variables need to be initialized, others are 
new and going to be overwtitten
+                if (lvar.declaration.extVar != null) lval = 
initializeVariable(lvar, val);
+                else lval = val;
             } else
                 lval = fetchVariableData(lvar, true);
         }


Reply via email to