[rules-users] Rules writing best practice?

Brice Figureau brice+drools at daysofwonder.com
Tue Feb 9 04:40:25 EST 2010


Hi,

Is there a rules writing best practice document somewhere?

I'm asking the question because as a newbie rule writer (which doesn't
know anything about the underlying drools matching algorithm), I'm
wondering if my rules will behave gracefully.

For instance, I (ab)use a lot the from/accumulate to bring in the
knowledge some external facts coming from some DAO. 
All my rules use one time or more the same "from
dao.getInformationFromDatabase( <inserted fact> )" structure and I'm not
sure the algorithm is smart enough to cache this information which is
constant for a given inserted fact.

Should I instead insert all this information as facts prior to the rules
firing?
-- 
Brice Figureau
My Blog: http://www.masterzen.fr/




More information about the rules-users mailing list