[jbpm-commits] JBoss JBPM SVN: r5066 - jbpm4/trunk/modules/integration/spi/src/main/java/org/jbpm/integration/spi.

do-not-reply at jboss.org do-not-reply at jboss.org
Fri Jun 19 07:51:05 EDT 2009


Author: camunda
Date: 2009-06-19 07:51:05 -0400 (Fri, 19 Jun 2009)
New Revision: 5066

Modified:
   jbpm4/trunk/modules/integration/spi/src/main/java/org/jbpm/integration/spi/DeploymentAdaptor.java
Log:
changed deployer to suspend a process definition if the deployment artefact gets undeployed.

Modified: jbpm4/trunk/modules/integration/spi/src/main/java/org/jbpm/integration/spi/DeploymentAdaptor.java
===================================================================
--- jbpm4/trunk/modules/integration/spi/src/main/java/org/jbpm/integration/spi/DeploymentAdaptor.java	2009-06-19 11:23:43 UTC (rev 5065)
+++ jbpm4/trunk/modules/integration/spi/src/main/java/org/jbpm/integration/spi/DeploymentAdaptor.java	2009-06-19 11:51:05 UTC (rev 5066)
@@ -111,7 +111,9 @@
           log.info("The deployment artifact for process '"+deploymentRef+" has been deleted."+
               " The process definition will be removed.");
 
-          repositoryService.deleteDeploymentCascade(deploymentRef.getDeploymentDbid());
+          // just suspend the process instance (not delete it), see
+          // http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4238250
+          repositoryService.suspendDeployment(deploymentRef.getDeploymentDbid());
         }
         else
         {




More information about the jbpm-commits mailing list