[rules-users] Problem passing objects to a method via the eval statement

2008-03-06 Thread Joshua Undesser
I am curious if anyone else has run into this problem.It seems like there is something wrong in the Drools LogicMy issue can be very easily be recreated in about 5 minutes >From eclipse I set up a new drools project.Where DroolTest.java is defined I create 4 new classes, ClassA,

Re: [rules-users] List all the rule by name in a rule base

2008-03-06 Thread Scott Reed
That's a lot to expect from a clean API. The RuleBase has Packages, not Rules. Methods concerning rules are found in the Package class. It's easy enough to roll your own. perhaps something like public ListgetRuleNames( RuleBase rulebase ) { List ruleNamess = new ArrayList(); for( Package pkg : r

[rules-users] List all the rule by name in a rule base

2008-03-06 Thread Christie, Blair
Is there a command to list all the rules by name in a rule base? Cheers, Blair Christie ___ rules-users mailing list rules-users@lists.jboss.org https://lists.jboss.org/mailman/listinfo/rules-users

[rules-users] RuleAgent(insuranceconfig) EXCEPTION (Thu Mar 06 12:18:45 PST 2008): Was unable to reach server

2008-03-06 Thread SB.Raghavendra
Hi All, When i ran the sample Insurance Example outside of Eclipse with Tomcat v6.0.It worked fine but when i am trying to run the same inside the eclipse and deployed in Eclipse configured tomcat then iam getting the following error : RuleAgent(insuranceconfig) WARNING (Thu Mar 06 12:18:45 PST 2

Re: [rules-users] Setting date during execution of rules.

2008-03-06 Thread Scott Reed
I am probably still misunderstanding, but it seems that the effective and expires dates are constants that can be used in the left hand side of the rules: rule "Commission Calculation 07-08" when $agent: Agent( promotedDate >= "01-Apr-2007",

Re: [rules-users] Problem removing rules at run time

2008-03-06 Thread Edson Tirelli
Please, read my e-mail about the dynamic rules fixes in 4.0.x branch. []s Edson 2008/3/6, Héron Nicolas <[EMAIL PROTECTED]>: > > Hello, > I am using drools 4.0.4 on a loyalty system and we have problems removing > rules at run-time. > In fact, it removes the rule (it says) but the effec

[rules-users] IMPORTANT: if you use dynamic rules and serialization, please READ

2008-03-06 Thread Edson Tirelli
I mentioned that in a few e-mails already, but since some people missed, I decided to send an specific e-mail for that. We made a focused effort in the last few weeks to add test cases and fix a few bugs related to dynamic rules (adding/removing rules at runtime) and also related to serializ

[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-06 Thread Mark Proctor
Mehak wrote: 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"); The drools variable is available and you can get the working memo