I think that RETE is stored in kbase, and kPackage contains only some kind of AST for
rules.
So adding some rules (of same package or not) in a kbase (or a kbuilder) don't use the
origin ..
And mroe than that, I am pretty sure that rules are shared in RETE even if they are from
different packages (this way the RETE can share more patterns and improve propagation).
But I am not a DEV guy, so all of the previous is only my own conclusions.
When you do that, using your kbuilder, does the kbuilder return 1 or 2 knowledgePackage ?
And anyway, why does it matters ? The rules should work as if they were in a single file
(no matter if the RETE is partionned or not).
Is it for perfs ?
----- Mail original -----
De: "gboro54" <gboro54(a)gmail.com>
À: rules-users(a)lists.jboss.org
Envoyé: Vendredi 11 Mai 2012 15:33:06
Objet: [rules-users] Multiple DRL for one Package
I have created multiple DRLs declaring the same packaged(logical separation
of rules). When I compile this knowledge base with all the files does the
rete tree get built as if all the rules were in the same file or does each
file get it's own built tree?
--
View this message in context:
http://drools.46999.n3.nabble.com/Multiple-DRL-for-one-Package-tp3979955....
Sent from the Drools: User forum mailing list archive at
Nabble.com.
_______________________________________________
rules-users mailing list
rules-users(a)lists.jboss.org
https://lists.jboss.org/mailman/listinfo/rules-users