[rules-users] removing all packages
hypnosat7
ablarbi at yahoo.fr
Fri Aug 31 12:25:43 EDT 2007
I'm tried this :
.....
// get the compiled package
Package pkg = builder.getPackage();
// remove the old packages
List<Package> oldPackages = Arrays.asList(ruleBase.getPackages());
for (Package oldPkg : oldPackages)
{
ruleBase.removePackage(oldPkg.getName());
}
// add the package
ruleBase.addPackage(pkg);
But my behavior's rule flow is changing !!
hypnosat7 wrote:
>
> Hi,
>
> How can I remove all the packages from a rule base without creating a
> new rulebase ?
>
--
View this message in context: http://www.nabble.com/removing-all-packages-tf4359507.html#a12429713
Sent from the drools - user mailing list archive at Nabble.com.
More information about the rules-users
mailing list