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).

Re: [rules-users] RuleBase Question

2010-06-11 Thread Moe Alkhafaji
___ 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 message contains information which may be confidential. Unless you are the addressee, you

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.

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?

Re: [rules-users] addKnowledgePackages Delay

2010-05-03 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

Re: [rules-users] addKnowledgePackages Delay

2010-05-03 Thread Moe Alkhafaji
http://rkthinks.wordpress.com/ 2010/5/3 Moe Alkhafaji moe.alkhaf...@medcpu.com 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

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 moe.alkhaf...@medcpu.com Hmmm, so you are suggesting I keep caches all possible combinations of KnowledgePackages? If I have 100 possible

Re: [rules-users] addKnowledgePackages Delay

2010-05-03 Thread Moe Alkhafaji
3, 2010, at 9:36 AM, Moe Alkhafaji moe.alkhaf...@medcpu.com 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

Re: [rules-users] addKnowledgePackages Delay

2010-05-03 Thread Moe Alkhafaji
in 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 moe.alkhaf...@medcpu.comwrote: Is there maybe a way to add those KnowledgePackages at startup time

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

2010-03-09 Thread Moe Alkhafaji
. 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 ed.tire...@gmail.com Thanks for letting us know. Good luck! Edson 2010/3/8 Moe Alkhafaji moe.alkhaf...@medcpu.com I just

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

2010-03-09 Thread Moe Alkhafaji
will fire as default when nothing match. But maybe I'm totally out of scope Pavel 2010/3/9 Moe Alkhafaji moe.alkhaf...@medcpu.com: So, in continuation of the main subject of the email. Unfortunately, I cannot use activation group because that will only allow me to execute one rule out

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

2010-03-09 Thread Moe Alkhafaji
@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 message contains information which may be confidential. Unless you are the addressee, you may not use, copy or disclose to anyone

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

2010-03-09 Thread Moe Alkhafaji
object that action was done? Than you should avoid Status object. Pavel 2010/3/9 Moe Alkhafaji moe.alkhaf...@medcpu.com: Thanks Pavel. I was hoping for more of a transparent functionality supported by Drools than have my users add those control method calls. I am trying to make their rules

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

2010-03-09 Thread Moe Alkhafaji
2010/3/9 Moe Alkhafaji moe.alkhaf...@medcpu.com Thanks Pavel. I was hoping for more of a transparent functionality supported by Drools than have my users add those control method calls. I am trying to make their rules as control logic blind as possible. But, I guess they would have to do

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

2010-03-08 Thread Moe Alkhafaji
should be fine. 2010/3/7 Moe Alkhafaji moe.alkhaf...@medcpu.com 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 am able to compile the code using

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

2010-03-07 Thread Moe Alkhafaji
/hudson/job/drools/lastSuccessfulBuild/artifact/trunk/target/ Eclipse 3.5.2. Drools runtime 5.0.1. Edson 2010/3/5 Moe Alkhafaji moe.alkhaf...@medcpu.com Edson, Just to make sure, can you please send me the link of where you downloaded your Eclipse plugin from? Also, what version

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 moe.alkhaf...@medcpu.com wrote: Hello, I know, from searching this forum and posting before,

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

2010-03-05 Thread Moe Alkhafaji
/mailman/listinfo/rules-users -- Moe Alkhafaji Chief Technology Officer, MedCPU Phone: (630) 290-1113 Email: c...@medcpu.com This message contains information which may be confidential. Unless you are the addressee, you may not use, copy or disclose to anyone the message or any information contained

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

2010-03-05 Thread Moe Alkhafaji
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 defined in the same drl. On Fri, Mar 5, 2010 at 12:04 PM, Moe Alkhafaji moe.alkhaf...@medcpu.comwrote: Thanks Edson

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

2010-03-05 Thread Moe Alkhafaji
(Constants.FINDING_KEYWORD_TEST)) then mpr.print(Rule TermContractions 2.8 Executed); end On Fri, Mar 5, 2010 at 12:33 PM, Moe Alkhafaji moe.alkhaf...@medcpu.comwrote: Specifically speaking, here is what I get on Eclipse when I do that: nds.when cannot be resolved to a type

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

2010-03-05 Thread Moe Alkhafaji
Also, remember that unless you use some of the tricks I mentioned before, both rules will fire. []s Edson 2010/3/5 Moe Alkhafaji moe.alkhaf...@medcpu.com Here are the rules that I created (sorry for breaking that in multiple emails), I hope this is all the information needed: rule

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

2010-03-05 Thread Moe Alkhafaji
ed.tire...@gmail.com 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 before was on line 11, isn't this another problems in rules down in the file? Edson 2010/3/5 Moe Alkhafaji moe.alkhaf