Re: [rules-users] How to call a another drl file from one drl file

2009-07-08 Thread Corneil du Plessis
If you want to control the order of execution or rules you will have to look into agendas or ruleflow. On Thu, 2009-07-02 at 15:36 +0530, Amila Silva wrote: hi, I have requirement to execute a chain of rules. One rule after another and they are reusable.I need to know how to call another

Re: [rules-users] How to call a another drl file from one drl file

2009-07-08 Thread James Owen
Greetings: If the requirement is to control the order of execution of the rules then (to quote Dr. EF-H) you probably are using a hammer when you needed a screwdriver. Meaning that you are trying to use a rulebase for a procedural problem. There are many times that a rulebase should

RE: [rules-users] How to call a another drl file from one drl file

2009-07-02 Thread Anstis, Michael (M.)
I believe you will need to add each DRL file into a single RuleBase (Drools 4.x terminology; I think KnowledgeBase in 5.0 but I'm a little rusty). Don't forget rules aren't evaluated when fireAllRules is called but as objects are inserted into WorkingMemory, so all rules need to be compiled into

Re: [rules-users] How to call a another drl file from one drl file

2009-07-02 Thread David Sinclair
Michael is correct. You need to add each resource to the knowledgebase ensuring that functions needed by rules are added before the rules themselves. 2009/7/2 Anstis, Michael (M.) manst...@ford.com I believe you will need to add each DRL file into a single RuleBase (Drools 4.x terminology; I