Control facts could be a good solution if a execution (of rules) can use some multiple DRL, and if you are using a lot of facts.

For example, if you want to do DRL1 and then DRL5 (because of some logic) on the same facts, in that order, you can add "control rules" to your KB that set/update the Context fact according to some conditions.

Note that you can do the same with multiple KB, but then you have to re-insert the objects from one session to another (but it is not so complex, nor so costly).

 

But for the number of DRL you have, I really think that cutting them in KB will be better. Moreover you can implement a "big chief controller", that stores the KB in a map, lazily complied when needed. This way, you may not have the whole 300 KB in memory ...

And you can even distribute the KB in distributed Agents, and implement the "big chief controller" with drools (with fusion?) to store some logic about launching the suitable KB according to the event you get, or chain KB, or whatever you can imagine.


 


De: "Michael Anstis" <michael.anstis@gmail.com>
À: "Rules Users List" <rules-users@lists.jboss.org>
Envoyé: Mercredi 20 Juillet 2011 11:32:12
Objet: Re: [rules-users] [Drools4]: Filter executed rules by *.drl file

It was just a feeling, but Vincent's words from (presumably) experience gives the individual rulebase option more credence.

On 20 July 2011 09:29, magendo <robert.heisenberg@yahoo.com> wrote:
Thanks for your answers.

The context fact thing would work, but it is really polluting the rules and
makes a lot of unnecessary constraint checks. Furthermore the extends is not
implemented in Drools 4 or I am blind (maybe it would be a good idea to
switch to drools 5 anyway...).

So I think I will go with the one drl per rulebase solution.
@manstis: Could you explain why you think the control fact solution is
better?

--
View this message in context: http://drools.46999.n3.nabble.com/Drools4-Filter-executed-rules-by-drl-file-tp3182568p3184864.html
Sent from the Drools: User forum mailing list archive at Nabble.com.
_______________________________________________


_______________________________________________
rules-users mailing list
rules-users@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/rules-users