[jboss-svn-commits] JBL Code SVN: r7106 - labs/jbossrules/trunk/drools-core/src/main/java/org/drools/reteoo

jboss-svn-commits at lists.jboss.org jboss-svn-commits at lists.jboss.org
Wed Oct 25 10:14:09 EDT 2006


Author: mark.proctor at jboss.com
Date: 2006-10-25 10:14:07 -0400 (Wed, 25 Oct 2006)
New Revision: 7106

Modified:
   labs/jbossrules/trunk/drools-core/src/main/java/org/drools/reteoo/TerminalNode.java
Log:
-AgendaListener now passes the WorkingMemory

Modified: labs/jbossrules/trunk/drools-core/src/main/java/org/drools/reteoo/TerminalNode.java
===================================================================
--- labs/jbossrules/trunk/drools-core/src/main/java/org/drools/reteoo/TerminalNode.java	2006-10-25 14:13:13 UTC (rev 7105)
+++ labs/jbossrules/trunk/drools-core/src/main/java/org/drools/reteoo/TerminalNode.java	2006-10-25 14:14:07 UTC (rev 7106)
@@ -156,7 +156,7 @@
             memory.getTupleMemory().add( tuple );
 
             item.setActivated( true );
-            workingMemory.getAgendaEventSupport().fireActivationCreated( item );
+            workingMemory.getAgendaEventSupport().fireActivationCreated( item, workingMemory );
         } else {
             // -----------------
             // Lazy instantiation and addition to the Agenda of AgendGroup
@@ -214,7 +214,7 @@
 
             // We only want to fire an event on a truly new Activation and not on an Activation as a result of a modify
             if ( fireActivationCreated ) {
-                workingMemory.getAgendaEventSupport().fireActivationCreated( item );
+                workingMemory.getAgendaEventSupport().fireActivationCreated( item, workingMemory  );
             }
         }
     }
@@ -229,7 +229,7 @@
             final Activation activation = tuple.getActivation();
             if ( activation.isActivated() ) {
                 activation.remove();
-                workingMemory.getAgendaEventSupport().fireActivationCancelled( activation );
+                workingMemory.getAgendaEventSupport().fireActivationCancelled( activation, workingMemory  );
             }
 
             workingMemory.getTruthMaintenanceSystem().removeLogicalDependencies( activation,
@@ -278,7 +278,7 @@
 
                 if ( activation.isActivated() ) {
                     activation.remove();
-                    workingMemory.getAgendaEventSupport().fireActivationCancelled( activation );
+                    workingMemory.getAgendaEventSupport().fireActivationCancelled( activation, workingMemory );
                 }
 
                 final PropagationContext propagationContext = new PropagationContextImpl( workingMemory.getNextPropagationIdCounter(),




More information about the jboss-svn-commits mailing list