[jboss-svn-commits] JBL Code SVN: r32938 - labs/jbossesb/branches/JBESB_4_7_CP/product/services/jbpm/src/main/java/org/jboss/soa/esb/services/jbpm/cmd.

jboss-svn-commits at lists.jboss.org jboss-svn-commits at lists.jboss.org
Tue May 18 12:55:37 EDT 2010


Author: kevin.conner at jboss.com
Date: 2010-05-18 12:55:37 -0400 (Tue, 18 May 2010)
New Revision: 32938

Modified:
   labs/jbossesb/branches/JBESB_4_7_CP/product/services/jbpm/src/main/java/org/jboss/soa/esb/services/jbpm/cmd/AsyncProcessSignal.java
Log:
Remove explicit hibernate delete of jBPM variable instance: JBESB-3301

Modified: labs/jbossesb/branches/JBESB_4_7_CP/product/services/jbpm/src/main/java/org/jboss/soa/esb/services/jbpm/cmd/AsyncProcessSignal.java
===================================================================
--- labs/jbossesb/branches/JBESB_4_7_CP/product/services/jbpm/src/main/java/org/jboss/soa/esb/services/jbpm/cmd/AsyncProcessSignal.java	2010-05-18 16:43:22 UTC (rev 32937)
+++ labs/jbossesb/branches/JBESB_4_7_CP/product/services/jbpm/src/main/java/org/jboss/soa/esb/services/jbpm/cmd/AsyncProcessSignal.java	2010-05-18 16:55:37 UTC (rev 32938)
@@ -36,8 +36,6 @@
 import org.jbpm.JbpmException;
 import org.jbpm.command.SignalCommand;
 import org.jbpm.context.exe.ContextInstance;
-import org.jbpm.context.exe.TokenVariableMap;
-import org.jbpm.context.exe.VariableInstance;
 import org.jbpm.graph.def.Action;
 import org.jbpm.graph.def.ActionHandler;
 import org.jbpm.graph.def.ProcessDefinition;
@@ -47,7 +45,6 @@
 import org.jbpm.instantiation.Delegation;
 import org.jbpm.job.ExecuteActionJob;
 import org.jbpm.job.executor.JobExecutor;
-import org.jbpm.logging.LoggingService;
 import org.jbpm.msg.MessageService;
 import org.jbpm.svc.Services;
 
@@ -319,25 +316,7 @@
 
             if (value != null)
             {
-                VariableInstance variableInstance = null ;
-                final TokenVariableMap tokenVariableMap = contextInstance.getTokenVariableMap(token) ;
-                if (tokenVariableMap != null)
-                {
-                    final Map variableInstances = tokenVariableMap.getVariableInstances() ;
-                    if (variableInstances != null)
-                    {
-                        variableInstance = (VariableInstance)variableInstances.get(name) ;
-                    }
-                }
                 contextInstance.deleteVariable(name, token) ;
-                if (variableInstance != null)
-                {
-                    final LoggingService loggingService = jbpmContext.getServices().getLoggingService() ;
-                    if (loggingService == null)
-                    {
-                        jbpmContext.getSession().delete(variableInstance) ;
-                    }
-                }
             }
             return value ;
         }



More information about the jboss-svn-commits mailing list