You could hold them all in a single KnowledgeBase with "State", "FactorY" and "FactorX" as Facts themselves checked in the Rules' RHS.

You could still have multiple DRL files (to aid authoring and maintenance) but load them all at once. The RETE network shares nodes for patterns shared across multiple rules. If your DRLs therefore share RHS patterns (e.g. simplistically State XX premium for criteria A = 100, State YY premium for criteria A = 110) the "criteria" patterns will be shared.

With kind regards,

Mike

2011/3/17 Esteban Aliverti <esteban.aliverti@gmail.com>

You could also use drools (maybe a decision table) to select the different drl files.

Best regards,

El mar 16, 2011 8:24 p.m., "marunam" <sutavis@gmail.com> escribió:


Hi,

We are developing an insurance application and we have decided to use drool
rules for our business rules
Now, we could have global business rules(applies to all states), specific to
state, specific to factor X, specific to factor Y etc. This way we are
expecting many drl files.

Now, when the application runs, we would know the values for state, factor
X, factor Y etc. and using these values we would determine(using database)
which drl files to load dynamically and just run the rules in those drls.

Is this approach recommended? Do you have any suggestions?

Thanks

--
View this message in context: http://drools-java-rules-engine.46999.n3.nabble.com/drools-design-question-tp2691182p2691182.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/listinfo/rules-users

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