[jboss-svn-commits] JBL Code SVN: r15133 - in labs/jbossrules/trunk/drools-core/src/main/java/org/drools: ruleflow/core and 1 other directory.

jboss-svn-commits at lists.jboss.org jboss-svn-commits at lists.jboss.org
Fri Sep 14 19:35:51 EDT 2007


Author: KrisVerlaenen
Date: 2007-09-14 19:35:51 -0400 (Fri, 14 Sep 2007)
New Revision: 15133

Modified:
   labs/jbossrules/trunk/drools-core/src/main/java/org/drools/common/RuleFlowGroupImpl.java
   labs/jbossrules/trunk/drools-core/src/main/java/org/drools/ruleflow/core/RuleFlowProcess.java
Log:
Fixed error when manually deactivating ruleflow-group

Modified: labs/jbossrules/trunk/drools-core/src/main/java/org/drools/common/RuleFlowGroupImpl.java
===================================================================
--- labs/jbossrules/trunk/drools-core/src/main/java/org/drools/common/RuleFlowGroupImpl.java	2007-09-14 21:23:01 UTC (rev 15132)
+++ labs/jbossrules/trunk/drools-core/src/main/java/org/drools/common/RuleFlowGroupImpl.java	2007-09-14 23:35:51 UTC (rev 15133)
@@ -99,6 +99,9 @@
                     activation.getActivationGroupNode().getActivationGroup().removeActivation( activation );
                 }
             }
+            if ( getProcessInstance() != null ) {
+                triggerCompleted();
+            }
             ((EventSupport) this.workingMemory).getRuleFlowEventSupport().fireRuleFlowGroupDeactivated( this,
                                                                                                         this.workingMemory );
         }

Modified: labs/jbossrules/trunk/drools-core/src/main/java/org/drools/ruleflow/core/RuleFlowProcess.java
===================================================================
--- labs/jbossrules/trunk/drools-core/src/main/java/org/drools/ruleflow/core/RuleFlowProcess.java	2007-09-14 21:23:01 UTC (rev 15132)
+++ labs/jbossrules/trunk/drools-core/src/main/java/org/drools/ruleflow/core/RuleFlowProcess.java	2007-09-14 23:35:51 UTC (rev 15133)
@@ -71,14 +71,14 @@
     void removeNode(Node node);
 
     /**
-     * Returns the global variables used in this RuleFlow process
+     * Returns the variables used in this RuleFlow process
      * 
      * @return	a list of variables of this RuleFlow process
      */
     List getVariables();
 
     /**
-     * Sets the global variables used in this RuleFlow process
+     * Sets the variables used in this RuleFlow process
      * 
      * @param variables	the variables
      * @throws IllegalArugmentException if <code>variables</code> is null
@@ -86,7 +86,7 @@
     void setVariables(List variables);
 
     /**
-     * Returns the names of the global variables used in this RuleFlow process
+     * Returns the names of the variables used in this RuleFlow process
      * 
      * @return	the variable names of this RuleFlow process
      */




More information about the jboss-svn-commits mailing list