[jbpm-commits] JBoss JBPM SVN: r4156 - jbpm3/branches/jbpm-3.2.6.GA/modules/core/src/main/java/org/jbpm/graph/def.

do-not-reply at jboss.org do-not-reply at jboss.org
Thu Mar 5 11:23:48 EST 2009


Author: alex.guizar at jboss.com
Date: 2009-03-05 11:23:48 -0500 (Thu, 05 Mar 2009)
New Revision: 4156

Modified:
   jbpm3/branches/jbpm-3.2.6.GA/modules/core/src/main/java/org/jbpm/graph/def/EventCallback.java
Log:
throw exception if wait for event cannot be completed

Modified: jbpm3/branches/jbpm-3.2.6.GA/modules/core/src/main/java/org/jbpm/graph/def/EventCallback.java
===================================================================
--- jbpm3/branches/jbpm-3.2.6.GA/modules/core/src/main/java/org/jbpm/graph/def/EventCallback.java	2009-03-05 15:42:16 UTC (rev 4155)
+++ jbpm3/branches/jbpm-3.2.6.GA/modules/core/src/main/java/org/jbpm/graph/def/EventCallback.java	2009-03-05 16:23:48 UTC (rev 4156)
@@ -34,6 +34,7 @@
 import org.apache.commons.logging.LogFactory;
 
 import org.jbpm.JbpmContext;
+import org.jbpm.JbpmException;
 
 public class EventCallback implements Serializable {
 
@@ -161,12 +162,11 @@
         log.debug("received '" + event + "' notification");
       }
       else {
-        log.warn("event '" + event + "' did not occur within " + timeout + " ms");
+        throw new JbpmException("event '" + event + "' did not occur within " + timeout + " ms");
       }
     }
     catch (InterruptedException e) {
-      // reassert interruption
-      Thread.currentThread().interrupt();
+      throw new JbpmException("wait for event '" + event + "' was interrupted", e);
     }
   }
 




More information about the jbpm-commits mailing list