Hi David and Leo,
thanks for the info.
our plan is to get brms exposed to business users so they can manage rules with the guided
editor(with template and guidance for sure). was thinking they need to be able to create
new packages, which should not require any app side change.
what i can do is to pre-define packages for different domains and let users use categories
to organize their rules(always assigned to the proper pre-defined package or so).
thanks
Jeff
----- Original Message ----
From: Leonardo Figueiredo <leo.lists(a)gmail.com>
To: Rules Users List <rules-users(a)lists.jboss.org>
Sent: Wednesday, October 1, 2008 8:34:56 AM
Subject: Re: [rules-users] to have some hierarchical control over rules in the same
package
Hi,
Why dont you build an RuleBase for each package and runs it when and where needed? Or add
an remove the packages from RuleBase as needed?
ruleBase.addPackage( pkg ); // Add a package instance
ruleBase.removePackage( "org.com.sample" ); // remove a package, and all its
parts, by it's namespace
Is it what you want to do?
Regards,
Leo
On Mon, Sep 29, 2008 at 7:18 PM, hongyu lu <hl_107(a)yahoo.com> wrote:
Hi,
I have a use case where I would like to group rules by package(each package would be one
experiment in my app). There are a couple attributes at the package level, which will
enable/disable all rules of that package(not being fired). What would be the best way to
achieve this? I am new to Drools and it looks like the rule definition is kinda flat. I
would like to avoid defining package level conditions within each rule.
thanks
Jeff
_______________________________________________
rules-users mailing list
rules-users(a)lists.jboss.org
https://lists.jboss.org/mailman/listinfo/rules-users