<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML dir=ltr><HEAD>
<META http-equiv=Content-Type content="text/html; charset=us-ascii">
<META content="MSHTML 6.00.2900.3132" name=GENERATOR></HEAD>
<BODY>
<DIV dir=ltr align=left><SPAN class=558370714-24102007><FONT face=Arial
color=#0000ff size=2>Based upon the documentation I'd say "no" and
"no".</FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=558370714-24102007><FONT face=Arial
color=#0000ff size=2></FONT></SPAN> </DIV>
<DIV dir=ltr align=left><SPAN class=558370714-24102007><FONT face=Arial
color=#0000ff size=2>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 box".</FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=558370714-24102007><FONT face=Arial
color=#0000ff size=2></FONT></SPAN> </DIV>
<DIV dir=ltr align=left><SPAN class=558370714-24102007><FONT face=Arial
color=#0000ff size=2>Also, calls to myPackage.removeRuleFlow(ruleFlowId)
removes RuleFlows (I believe the API changed from
removeProcess).</FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=558370714-24102007><FONT face=Arial
color=#0000ff size=2></FONT></SPAN> </DIV>
<DIV dir=ltr align=left><SPAN class=558370714-24102007><FONT face=Arial
color=#0000ff size=2>With kind regards,</FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=558370714-24102007><FONT face=Arial
color=#0000ff size=2></FONT></SPAN> </DIV>
<DIV dir=ltr align=left><SPAN class=558370714-24102007><FONT face=Arial
color=#0000ff size=2>Mike</FONT></SPAN></DIV><BR>
<BLOCKQUOTE style="MARGIN-RIGHT: 0px">
<DIV class=OutlookMessageHeader lang=en-us dir=ltr align=left>
<HR tabIndex=-1>
<FONT face=Tahoma size=2><B>From:</B> rules-users-bounces@lists.jboss.org
[mailto:rules-users-bounces@lists.jboss.org] <B>On Behalf Of
</B>prateek.katiyar@wipro.com<BR><B>Sent:</B> 24 October 2007
14:53<BR><B>To:</B> rules-users@lists.jboss.org<BR><B>Subject:</B>
[rules-users] Abour removing the rules from the rulebase<BR></FONT><BR></DIV>
<DIV></DIV>
<DIV id=idOWAReplyText61004 dir=ltr>
<DIV dir=ltr><FONT face=Arial color=#000000 size=2>Hello all</FONT></DIV>
<DIV dir=ltr><FONT face=Arial size=2></FONT> </DIV>
<DIV dir=ltr><FONT face=Arial size=2>Many congratulations on the release of
Drools 4.0.3</FONT></DIV>
<DIV dir=ltr><FONT face=Arial size=2>I want to remove all the rules
belonging to a specific <STRONG>AgendaGroup</STRONG> from the rulebase
containing only one package.</FONT></DIV>
<DIV dir=ltr><FONT face=Arial size=2>I want to use only the name of the
<STRONG>AgendaGroup </STRONG>,not the names of the rules.</FONT></DIV>
<DIV dir=ltr><FONT face=Arial size=2>Is there any method in the API that can
solve this purpose.</FONT></DIV>
<DIV dir=ltr><FONT face=Arial size=2>Can I use <STRONG>removeProcess(String
id) </STRONG>method from the <STRONG>RuleBase </STRONG>interface for this
problem?</FONT></DIV>
<DIV dir=ltr><FONT face=Arial color=#000000 size=2></FONT> </DIV></DIV>
<DIV id=idSignature14307 dir=ltr>
<DIV><FONT face=Arial size=2><EM><STRONG>With
Regards</STRONG></EM></FONT></DIV>
<DIV><FONT face=Arial
size=2><EM><STRONG>Prateek</STRONG></EM></FONT></DIV></DIV>
<TABLE>
<TBODY>
<TR>
<TD bgColor=#ffffff><FONT color=#000000><BR>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. <BR><BR>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.<BR><BR>www.wipro.com<BR></FONT></TD></TR></TBODY></TABLE></BLOCKQUOTE></BODY></HTML>