Based upon the documentation I'd say "no" and "no".
You can use myPackage.getRules() to return Rule which you can iterate and
call myPackage.removeRule(aRule) but I did not see anything "out of the
Also, calls to myPackage.removeRuleFlow(ruleFlowId) removes RuleFlows (I
believe the API changed from removeProcess).
With kind regards,
[mailto:email@example.com] On Behalf Of
Sent: 24 October 2007 14:53
Subject: [rules-users] Abour removing the rules from the rulebase
Many congratulations on the release of Drools 4.0.3
I want to remove all the rules belonging to a specific AgendaGroup from the
rulebase containing only one package.
I want to use only the name of the AgendaGroup ,not the names of the rules.
Is there any method in the API that can solve this purpose.
Can I use removeProcess(String id) method from the RuleBase interface for
The information contained in this electronic message and any attachments to
this message are intended for the exclusive use of the addressee(s) and may
contain proprietary, confidential or privileged information. If you are not
the intended recipient, you should not disseminate, distribute or copy this
e-mail. Please notify the sender immediately and destroy all copies of this
message and any attachments.
WARNING: Computer viruses can be transmitted via email. The recipient should
check this email and any attachments for the presence of viruses. The
company accepts no liability for any damage caused by any virus transmitted
by this email.