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.
_______________________________________________
rules-users mailing list
[email protected]
https://lists.jboss.org/mailman/listinfo/rules-users