Re: [rules-users] Use of function in Drools Test Scenario

2011-01-23 Thread Moe Alkhafaji
This means that it cannot find your method. To be able to call a method from within a rule you will need to import the respective class that has the method and then use an instance to reference that method with (or just the method without an instance if it is static and you did static import). T

Re: [rules-users] RuleBase Question

2010-06-11 Thread Moe Alkhafaji
ontext: >> http://drools-java-rules-engine.46999.n3.nabble.com/RuleBase-Question-tp887326p887326.html >> Sent from the Drools - User mailing list archive at Nabble.com. >> ___ >> rules-users mailing list >> rules-users@lists.jboss.org >> https://lists.jboss.org/mailman/

Re: [rules-users] Firing a rule if at least its two conditions are satified

2010-06-03 Thread Moe Alkhafaji
I had to do something like this. The way I did it is by prividing a method in my object in working memory that takes multiple Boolean conditions and loops through them and return true if at least N of the conditions were true. So, this funtions will take N and a list of all conditions. Then

Re: [rules-users] Drools Classloader Leak?

2010-05-07 Thread Moe Alkhafaji
Interesting. Is there a reason for that? That doesn't sound too efficient. How can I get around it so that everything in the drools API uses the same default application classloader? Is there a setting or configuration somewhere that would tell drools to just use the default classloader? Th

Re: [rules-users] addKnowledgePackages Delay

2010-05-03 Thread Moe Alkhafaji
the documentations or the historic threads on this board. Maybe someone can shed some light on how this works behind the scenes. Thank you. On Mon, May 3, 2010 at 9:55 AM, Moe Alkhafaji wrote: > Is there maybe a way to add those KnowledgePackages at startup time but > somehow make them &

Re: [rules-users] addKnowledgePackages Delay

2010-05-03 Thread Moe Alkhafaji
iPhone On May 3, 2010, at 9:36 AM, Moe Alkhafaji wrote: I see. Thanks Rajnikant. I appreciate the assistance. I hope there would be a way to maybe make this more internal to the KnowledgeBase object itself, or define another object for this type of caching instead of creating this complexi

Re: [rules-users] addKnowledgePackages Delay

2010-05-03 Thread Moe Alkhafaji
; > In case of our application it does so by a very significant factor. > > Regards, > > Rajnikant Gupta > http://rkthinks.wordpress.com/ > > > 2010/5/3 Moe Alkhafaji > >> Hmmm, so you are suggesting I keep caches all possible combinations of >> KnowledgePa

Re: [rules-users] addKnowledgePackages Delay

2010-05-03 Thread Moe Alkhafaji
his is valid only if you are not changing your rules. If your rules are changing from time to time, you may have to look at caching at more lower levels. I am not sure whether this can be helpful in your case but this is often helpful. Regards, Rajnikant Gupta http://rkthinks.wordpress

Re: [rules-users] addKnowledgePackages Delay

2010-05-02 Thread Moe Alkhafaji
Thanks for the reply. But I don't understand what you mean by caching the KnowledgeBase. This is about adding a pre compiled KnowledgePackage to a KnowledgeBase. So, how does caching a KnowledgeBase makes addition of new KnowledgePackage faster? Please excuse my ignorance if I am not catchi

Re: [rules-users] Inheritance-Like Design Question

2010-03-09 Thread Moe Alkhafaji
You will > need to add constraints for that in a similar way to Pavel's suggestion. > >[]s >Edson > > > 2010/3/9 Moe Alkhafaji > >> Thanks Pavel. I was hoping for more of a transparent functionality >> supported by Drools than have my users add tho

Re: [rules-users] Inheritance-Like Design Question

2010-03-09 Thread Moe Alkhafaji
Can't you deduce from some other > object that action was done? Than you should avoid Status object. > > Pavel > > 2010/3/9 Moe Alkhafaji : > > Thanks Pavel. I was hoping for more of a transparent functionality > > supported by Drools than have my users add those

Re: [rules-users] Inheritance-Like Design Question

2010-03-09 Thread Moe Alkhafaji
> Pavel > ___ > rules-users mailing list > rules-users@lists.jboss.org > https://lists.jboss.org/mailman/listinfo/rules-users > -- Moe Alkhafaji Chief Technology Officer, MedCPU Phone: (630) 290-1113 Email: c...@medcpu.com This messa

Re: [rules-users] Inheritance-Like Design Question

2010-03-09 Thread Moe Alkhafaji
g. salience -100 which > will fire as "default" when nothing match. > > But maybe I'm totally out of scope > > Pavel > > 2010/3/9 Moe Alkhafaji : > > So, in continuation of the main subject of the email. Unfortunately, I > > cannot use activation gr

Re: [rules-users] Inheritance-Like Design Question

2010-03-09 Thread Moe Alkhafaji
is, super, etc. with no success. If it is inaccessible, then why the heck it is telling me it is a duplicate when I try to declare it? :) Thanks guys and gals! 2010/3/8 Edson Tirelli > > Thanks for letting us know. Good luck! > > Edson > > 2010/3/8 Moe Alkhafaji > &

Re: [rules-users] Inheritance-Like Design Question

2010-03-08 Thread Moe Alkhafaji
e fine. > > 2010/3/7 Moe Alkhafaji > > OK. I am using the following environment items: >> >> Eclipse: 3.3.2. >> Plugins/Features from the link you provided below. >> >> Drools runtime 5.0.1 >> >> I still see the same error in Eclipse, however, I

Re: [rules-users] Inheritance-Like Design Question

2010-03-07 Thread Moe Alkhafaji
ob/drools/lastSuccessfulBuild/artifact/trunk/target/ > >Eclipse 3.5.2. > >Drools runtime 5.0.1. > > >Edson > > 2010/3/5 Moe Alkhafaji > >> Edson, >> >> Just to make sure, can you please send me the link of where you downloaded >> your E

Re: [rules-users] Inheritance-Like Design Question

2010-03-05 Thread Moe Alkhafaji
no error in my eclipse either, so I guess you have some other > problem (maybe in your environment) going on there... > > >Edson > > > 2010/3/5 Moe Alkhafaji > >> Thanks Edson. I wish I can send a screen shot, but I just had a bunch of >> white lines in the file

Re: [rules-users] Inheritance-Like Design Question

2010-03-05 Thread Moe Alkhafaji
60:266='extends',<7>,11:28]; expecting type THENMPU/src/rulesEEphratOBMain.drl 2010/3/5 Edson Tirelli > >These error messages don't make much sense to me, but it is accusing > error on line 19 now... considering that I removed lines and the error

Re: [rules-users] Inheritance-Like Design Question

2010-03-05 Thread Moe Alkhafaji
ions > 1.1" > when > > eval(!mpr.isImportant(Constants.FINDING_KEYWORD_TEST)) > then > mpr.print("Rule TermContractions 2.8 Executed"); > end > > Also, remember that unless you use some of the tricks I mentioned > before, bo

Re: [rules-users] Inheritance-Like Design Question

2010-03-05 Thread Moe Alkhafaji
s_Frequency)) eval(!mpr.isImportant(Constants.FINDING_KEYWORD_TEST)) then mpr.print("Rule TermContractions 2.8 Executed"); end On Fri, Mar 5, 2010 at 12:33 PM, Moe Alkhafaji wrote: > Specifically speaking, here is what I get on Eclipse when

Re: [rules-users] Inheritance-Like Design Question

2010-03-05 Thread Moe Alkhafaji
rlline 11 Syntax error, insert ";" to complete Statement MPU/src/rules EEphratOBMain.drlline 11 Line 11 is: * rule "TermContractions 2.8" extends "Definitions TermContractions 1.1"* and "Definitions TermContractions 1.1" is another rule

Re: [rules-users] Inheritance-Like Design Question

2010-03-05 Thread Moe Alkhafaji
this message in context: >> http://n3.nabble.com/Inheritance-Like-Design-Question-tp430848p430848.html >> Sent from the Drools - User mailing list archive at Nabble.com. >> ___ >> rules-users mailing list >> rules-users@lists.jboss.org >

Re: [rules-users] Inheritance-Like Design Question

2010-03-05 Thread Moe Alkhafaji
Is there a way to maybe annotate rules so my server side application can interpret this annotation as inheritance flag or something? Sent from my iPhone On Mar 5, 2010, at 11:09 AM, malkhafaji wrote: > > Hello, > > I know, from searching this forum and posting before, that the > concept o