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

jboss-svn-commits at lists.jboss.org jboss-svn-commits at lists.jboss.org
Tue Dec 2 11:42:21 EST 2008


Author: KrisVerlaenen
Date: 2008-12-02 11:42:20 -0500 (Tue, 02 Dec 2008)
New Revision: 24216

Modified:
   labs/jbossrules/trunk/drools-api/src/main/java/org/drools/KnowledgeBase.java
   labs/jbossrules/trunk/drools-core/src/main/java/org/drools/impl/KnowledgeBaseImpl.java
Log:
 - added removeProcess method to drools-api

Modified: labs/jbossrules/trunk/drools-api/src/main/java/org/drools/KnowledgeBase.java
===================================================================
--- labs/jbossrules/trunk/drools-api/src/main/java/org/drools/KnowledgeBase.java	2008-12-02 16:41:21 UTC (rev 24215)
+++ labs/jbossrules/trunk/drools-api/src/main/java/org/drools/KnowledgeBase.java	2008-12-02 16:42:20 UTC (rev 24216)
@@ -57,6 +57,12 @@
                     String ruleName);
 
     /**
+     * Remove a process from the specified package.
+     * @param processId
+     */
+    void removeProcess(String processId);
+
+    /**
      * Create a new StatefulKnolwedgeSession using the given session configuration.
      * Don't forget to dispose() session when you are done.
      * 

Modified: labs/jbossrules/trunk/drools-core/src/main/java/org/drools/impl/KnowledgeBaseImpl.java
===================================================================
--- labs/jbossrules/trunk/drools-core/src/main/java/org/drools/impl/KnowledgeBaseImpl.java	2008-12-02 16:41:21 UTC (rev 24215)
+++ labs/jbossrules/trunk/drools-core/src/main/java/org/drools/impl/KnowledgeBaseImpl.java	2008-12-02 16:42:20 UTC (rev 24216)
@@ -14,7 +14,6 @@
 import org.drools.KnowledgeBase;
 import org.drools.RuleBase;
 import org.drools.SessionConfiguration;
-import org.drools.StatefulSession;
 import org.drools.common.InternalRuleBase;
 import org.drools.definition.KnowledgePackage;
 import org.drools.definitions.impl.KnowledgePackageImp;
@@ -149,6 +148,10 @@
                                   ruleName );
     }
 
+    public void removeProcess(String processId) {
+        this.ruleBase.removeProcess( processId );
+    }
+
     public static class KnowledgeBaseEventListenerWrapper
         implements
         org.drools.event.RuleBaseEventListener {




More information about the jboss-svn-commits mailing list