[jbpm-commits] JBoss JBPM SVN: r2407 - jbpm3/branches/aguizar/modules/core/src/main/java/org/jbpm/job/executor.

do-not-reply at jboss.org do-not-reply at jboss.org
Sat Sep 27 02:40:16 EDT 2008


Author: alex.guizar at jboss.com
Date: 2008-09-27 02:40:16 -0400 (Sat, 27 Sep 2008)
New Revision: 2407

Modified:
   jbpm3/branches/aguizar/modules/core/src/main/java/org/jbpm/job/executor/JobExecutorThread.java
Log:
have job executor thread rollback on persistence exception

Modified: jbpm3/branches/aguizar/modules/core/src/main/java/org/jbpm/job/executor/JobExecutorThread.java
===================================================================
--- jbpm3/branches/aguizar/modules/core/src/main/java/org/jbpm/job/executor/JobExecutorThread.java	2008-09-27 06:37:01 UTC (rev 2406)
+++ jbpm3/branches/aguizar/modules/core/src/main/java/org/jbpm/job/executor/JobExecutorThread.java	2008-09-27 06:40:16 UTC (rev 2407)
@@ -168,7 +168,7 @@
         }
       } catch (Exception e) {
         log.debug("exception while executing " + job, e);
-        if (isPersistenceException(e)) {
+        if (!isPersistenceException(e)) {
           StringWriter memoryWriter = new StringWriter();
           e.printStackTrace(new PrintWriter(memoryWriter));
           job.setException(memoryWriter.toString());




More information about the jbpm-commits mailing list