[rules-users] Managing Sets of Rules

Wolfgang Laun wolfgang.laun at gmail.com
Wed Jun 13 06:32:45 EDT 2012


Agenda Group: a set of rules with a common agenda group identifier
that can be activated via the API. The identifier can be set for
decision tables. See the Expert manual on both counts.

-W


On 13/06/2012, tlee <findtimlee at gmail.com> wrote:
> 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.
> _______________________________________________
> rules-users mailing list
> rules-users at lists.jboss.org
> https://lists.jboss.org/mailman/listinfo/rules-users
>


More information about the rules-users mailing list