[rules-users] Managing Sets of Rules

tlee findtimlee at gmail.com
Wed Jun 13 06:13:03 EDT 2012


Hi,

Are there any guidelines or recommendations for how best to isolate
different groups of rules?  For example, I'm using decision tables to do
some (initially) simple inter-system value mappings/translation.  The
generated rules look like this:

Decision Table 1:

rule "mapCountry"
    salience 65496
    when
        String(toString == 'SRI LANKA')
    then
        result.put('countryCode', 'apac.sri-lanka');
        drools.halt();
end

I will have other decision tables that also match against String values.

If I want to isolate these decision tables so that only one set of the rules
fire when calling 'execute' on the knowledge session, should I put them in
different knowledge bases?  Or is there another way?  Or am I going about
this the wrong way all together?

Many Thanks,

Tim.

--
View this message in context: http://drools.46999.n3.nabble.com/Managing-Sets-of-Rules-tp4017898.html
Sent from the Drools: User forum mailing list archive at Nabble.com.


More information about the rules-users mailing list