ode-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From karth...@apache.org
Subject svn commit: r743580 - /ode/branches/APACHE_ODE_1.X/bpel-runtime/src/main/java/org/apache/ode/bpel/engine/BpelProcess.java
Date Thu, 12 Feb 2009 00:38:31 GMT
Author: karthick
Date: Thu Feb 12 00:38:31 2009
New Revision: 743580

URL: http://svn.apache.org/viewvc?rev=743580&view=rev
Log:
Simplify process create and delete methods.

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

Modified: ode/branches/APACHE_ODE_1.X/bpel-runtime/src/main/java/org/apache/ode/bpel/engine/BpelProcess.java
URL: http://svn.apache.org/viewvc/ode/branches/APACHE_ODE_1.X/bpel-runtime/src/main/java/org/apache/ode/bpel/engine/BpelProcess.java?rev=743580&r1=743579&r2=743580&view=diff
==============================================================================
--- ode/branches/APACHE_ODE_1.X/bpel-runtime/src/main/java/org/apache/ode/bpel/engine/BpelProcess.java
(original)
+++ ode/branches/APACHE_ODE_1.X/bpel-runtime/src/main/java/org/apache/ode/bpel/engine/BpelProcess.java
Thu Feb 12 00:38:31 2009
@@ -782,12 +782,8 @@
             ProcessDAO old = conn.getProcess(pid);
             if (old != null) {
                 __log.debug("Found ProcessDAO for " + pid + " with GUID " + old.getGuid());
-                if (oprocess.guid == null) {
-                    // No guid, old version assume its good
-                } else {
-                    if (old.getGuid().equals(oprocess.guid)) {
-                        // Guids match, no need to create
-                    } else {
+                if (oprocess.guid != null) {
+                    if (!old.getGuid().equals(oprocess.guid)) {
                         // GUIDS dont match, delete and create new
                         String errmsg = "ProcessDAO GUID " + old.getGuid() + " does not match
" + oprocess.guid + "; replacing.";
                         __log.debug(errmsg);
@@ -817,10 +813,6 @@
                     if (old.getGuid().equals(oprocess.guid)) {
                         // Guids match, no need to create
                         create = false;
-                    } else {
-                        // GUIDS dont match, delete and create new
-                        String errmsg = "ProcessDAO GUID " + old.getGuid() + " does not match
" + oprocess.guid + "; replacing.";
-                        __log.debug(errmsg);
                     }
                 }
             }



Mime
View raw message