[jboss-svn-commits] JBL Code SVN: r20461 - labs/jbossesb/workspace/dbevenius/ruleservice/product/services/jbrules/src/main/java/org/jboss/internal/soa/esb/services/rules.

jboss-svn-commits at lists.jboss.org jboss-svn-commits at lists.jboss.org
Fri Jun 13 07:17:31 EDT 2008


Author: beve
Date: 2008-06-13 07:17:31 -0400 (Fri, 13 Jun 2008)
New Revision: 20461

Modified:
   labs/jbossesb/workspace/dbevenius/ruleservice/product/services/jbrules/src/main/java/org/jboss/internal/soa/esb/services/rules/DroolsRuleService.java
Log:
Minor clean up


Modified: labs/jbossesb/workspace/dbevenius/ruleservice/product/services/jbrules/src/main/java/org/jboss/internal/soa/esb/services/rules/DroolsRuleService.java
===================================================================
--- labs/jbossesb/workspace/dbevenius/ruleservice/product/services/jbrules/src/main/java/org/jboss/internal/soa/esb/services/rules/DroolsRuleService.java	2008-06-13 10:58:21 UTC (rev 20460)
+++ labs/jbossesb/workspace/dbevenius/ruleservice/product/services/jbrules/src/main/java/org/jboss/internal/soa/esb/services/rules/DroolsRuleService.java	2008-06-13 11:17:31 UTC (rev 20461)
@@ -23,21 +23,19 @@
 
 import java.io.IOException;
 import java.util.ArrayList;
-import java.util.HashMap;
 import java.util.List;
 import java.util.Map;
 import java.util.Set;
 import java.util.Map.Entry;
 import java.util.concurrent.ConcurrentHashMap;
 
+import org.apache.log4j.Level;
 import org.apache.log4j.Logger;
-import org.apache.log4j.Level;
 import org.drools.RuleBase;
 import org.drools.StatefulSession;
 import org.drools.StatelessSession;
 import org.drools.WorkingMemory;
 import org.drools.compiler.DroolsParserException;
-import org.drools.rule.Package;
 import org.jboss.internal.soa.esb.services.routing.cbr.JBRulesCounter;
 import org.jboss.soa.esb.helpers.ConfigTree;
 import org.jboss.soa.esb.lifecycle.LifecyclePriorities;
@@ -58,7 +56,6 @@
 public class DroolsRuleService implements RuleService {
 
 	private static final String MESSAGE = "message";
-	private static final String DESTINATIONS = "destinations";
 	
 	/**
 	 * The lifecycle resource factory.
@@ -97,6 +94,8 @@
 	 *            the ruleSet.
 	 * @param message -
 	 *            Message that is updated with the results.
+	 * @param globals -
+	 *            Map of globals variables that should be set in the working memory
 	 * @param objectList -
 	 *            a list with additional objects (typically pulled from the
 	 *            message) to be inserted into working memory
@@ -137,6 +136,8 @@
 	 *            the ruleSet.
 	 * @param message -
 	 *            Message that is updated with the results.
+	 * @param globals -
+	 *            Map of globals variables that should be set in the working memory
 	 * @param objectList - a list with additional objects (typically pulled from the message) to be inserted into 
 	 *            working memory 
 	 * 
@@ -173,6 +174,8 @@
 	 *            String reference to a file which contains properties used by the RuleAgent to locate a rule package.
 	 * @param message -
 	 *            Message that is updated with the results.
+	 * @param globals -
+	 *            Map of globals variables that should be set in the working memory
 	 * @param objectList - a list with additional objects (typically pulled from the message) to be inserted into 
 	 *            working memory 
 	 * 
@@ -227,6 +230,8 @@
 	 *            if set to true, working memory will be disposed after the rules are fired
 	 * @param message -
 	 *            Message that is updated with the results.
+	 * @param globals -
+	 *            Map of globals variables that should be set in the working memory
 	 * @param objectList - a list with additional objects (typically pulled from the message) to be inserted into 
 	 *            working memory 
 	 * 
@@ -269,6 +274,8 @@
 	 *            if set to true, working memory will be disposed after the rules are fired
 	 * @param message -
 	 *            Message that is updated with the results.
+	 * @param globals -
+	 *            Map of globals variables that should be set in the working memory
 	 * @param objectList - a list with additional objects (typically pulled from the message) to be inserted into 
 	 *            working memory 
 	 * 
@@ -308,6 +315,8 @@
 	 *            if set to true, working memory will be disposed after the rules are fired
 	 * @param message -
 	 *            Message that is updated with the results.
+	 * @param globals -
+	 *            Map of globals variables that should be set in the working memory
 	 * @param objectList - a list with additional objects (typically pulled from the message) to be inserted into 
 	 *            working memory 
 	 * 
@@ -359,6 +368,8 @@
 	 *            if set to true, working memory will be disposed after the rules are fired
 	 * @param message -
 	 *            Message that is updated with the results.
+	 * @param globals -
+	 *            Map of globals variables that should be set in the working memory
 	 * @param objectList - a list with additional objects (typically pulled from the message) to be inserted into 
 	 *            working memory 
 	 * 
@@ -714,16 +725,6 @@
 		}
 	}
 	
-	private Map<String,Class> getAllGlobals( final RuleBase ruleBase )
-	{
-		Map<String,Class> globals = new HashMap<String,Class>();
-		for (Package pack : ruleBase.getPackages() )
-		{
-			globals.putAll( pack.getGlobals() );
-		}
-		return globals;
-	}
-	
 	private void insertObjectsIntoWorkingMemory(final List<Object> objectList, final WorkingMemory workingMemory)
 	{
 		if (objectList != null) {




More information about the jboss-svn-commits mailing list