[rules-users] Should lhs pattern be the same for diffrent Rules in a Rule Base?

2008-05-09 Thread Mehak
Hi I have a rule using xml. outterMap.get("fact") innerMap.get("filterabl

Re: [rules-users] Accessing maps (hashmaps) keys and values in rules

2008-03-12 Thread Mehak
Hi I am using xml drl files for my rules. I pass the facts in HashMap. Map factAgendaMap = new HashMap(); factAgendaMap.put("group", ruleConfig.getRuleName()); factAgendaMap.put("fact", fact); session.execute(factAgendaMap); In my drl file I m calling the

Re: [rules-users] How do you use Ruleflows with StatelessSession's?

2008-03-11 Thread Mehak
Hi I am using StatelessSession code in Java file and my rules are in drl file. Which drools variable are you talking about? How can I use it in java file to set focus? Mark Proctor wrote: > > > The drools variable is available and you can get the working memory from > that. >> Do we have a s

[rules-users] Making my own agenda Filter

2008-03-10 Thread Mehak
Hi I am using this code to make my own agenda filter. In this case if the type of rule is agenda then agenda filter to focus on that agenda is set else agenda filter for rule is set. private static AgendaFilter buildAgendaFilter(RuleConfig rule) { final String searchName = rule.getRuleName(

Re: [rules-users] Problem using Package Builder

2008-03-10 Thread Mehak
Hi Thank you so much for the solution. Yes the dependent jars were missing and i added them up Thank you once again! -- View this message in context: http://www.nabble.com/Problem-using-Package-Builder-tp15891216p15950725.html Sent from the drools - user mailing list archive at Nabble.com. __

Re: [rules-users] Problem using Package Builder and Jar files in web application

2008-03-10 Thread Mehak
Thank you john. The problem was that I had not included some jar file. Again I am getting a problem while constructing a new Package Builder : java.lang.NoClassDefFoundError: org/mvel/integration/impl/BaseVariableResolverFactory Thoudh I have included the jar file mvel14-1.2.20 that contains t

[rules-users] Problem using Package Builder

2008-03-07 Thread Mehak
Hi I am using Package Builder for making rule base in my web application. The code is: public class DroolSetUp implements ResourceLoaderAware{ private static RuleBase ruleBase; private Resource drlFiles; public void setResourceLoader(ResourceLoader arg0) {

[rules-users] Performance Issue when multiple drl files loaded

2008-03-06 Thread Mehak
Hi I have numerous .drl files that contain around 100 rules, in 5 packages. Please tell me what can be an optimsed solution so that my application performance is not made to suffer? I should load all the drl files in and form a Rule Base. After this depending on my application logic I go on pickin

Re: [rules-users] How do you use Ruleflows with StatelessSession's?

2008-03-05 Thread Mehak
Hi Similarly can we set the focus on a particular agenda in stateless session. Like for statefull session, to fire the rules belonging to a given agenda, the code is : workingMemory.setFocus("agenda group name"); Do we have a similar method in stateless session as well? -- View this message i

[rules-users] modifying individual facts in rule drl file

2008-02-20 Thread Mehak
Hi I am using drool to put my application business logic In my java service class, I am adding into an ArrayList objects: task1,task2 and task3. list.add(task1); list.add(task2); list.add(task3); new RuleRunner().runRules(new String[] { "ruleTraverseFacts.drl" }, list); Code in the Ru