ode-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From sean...@apache.org
Subject svn commit: r782478 - /ode/trunk/engine/src/main/java/org/apache/ode/bpel/engine/cron/RuntimeDataCleanupRunnable.java
Date Sun, 07 Jun 2009 23:57:12 GMT
Author: seanahn
Date: Sun Jun  7 23:57:12 2009
New Revision: 782478

URL: http://svn.apache.org/viewvc?rev=782478&view=rev
Log:
Do not throw an error when the filter is empty

Modified:
    ode/trunk/engine/src/main/java/org/apache/ode/bpel/engine/cron/RuntimeDataCleanupRunnable.java

Modified: ode/trunk/engine/src/main/java/org/apache/ode/bpel/engine/cron/RuntimeDataCleanupRunnable.java
URL: http://svn.apache.org/viewvc/ode/trunk/engine/src/main/java/org/apache/ode/bpel/engine/cron/RuntimeDataCleanupRunnable.java?rev=782478&r1=782477&r2=782478&view=diff
==============================================================================
--- ode/trunk/engine/src/main/java/org/apache/ode/bpel/engine/cron/RuntimeDataCleanupRunnable.java
(original)
+++ ode/trunk/engine/src/main/java/org/apache/ode/bpel/engine/cron/RuntimeDataCleanupRunnable.java
Sun Jun  7 23:57:12 2009
@@ -52,11 +52,13 @@
         _log.info("CleanInstances.run().");
         try {
             for( String filter : _cleanupInfo.getFilters() ) {
-                _log.info("CleanInstances.run(" + filter + ")");
-                long numberOfDeletedInstances = 0;
-                do {
-                    numberOfDeletedInstances = cleanInstances(filter, _cleanupInfo.getCategories(),
_transactionSize);
-                } while( numberOfDeletedInstances == _transactionSize );
+                if( filter != null && filter.trim().length() > 0 ) {
+                    _log.info("CleanInstances.run(" + filter + ")");
+                    long numberOfDeletedInstances = 0;
+                    do {
+                        numberOfDeletedInstances = cleanInstances(filter, _cleanupInfo.getCategories(),
_transactionSize);
+                    } while( numberOfDeletedInstances == _transactionSize );
+                }
             }
         } catch( RuntimeException re ) {
             throw re;



Mime
View raw message