<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=Content-Type content="text/html; charset=us-ascii">
<META content="MSHTML 6.00.2900.3157" name=GENERATOR></HEAD>
<BODY>
<DIV dir=ltr align=left><SPAN class=981025408-01102007><FONT face=Arial 
color=#0000ff size=2>Hi Sankar,</FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=981025408-01102007><FONT face=Arial 
color=#0000ff size=2></FONT></SPAN>&nbsp;</DIV>
<DIV dir=ltr align=left><SPAN class=981025408-01102007><FONT face=Arial 
color=#0000ff size=2>&nbsp;I am also in prateek team. send me the java code to 
execute this rule. if you have any example for xml based rule file please send 
it to us.</FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=981025408-01102007><FONT face=Arial 
color=#0000ff size=2></FONT></SPAN>&nbsp;</DIV>
<DIV dir=ltr align=left><SPAN class=981025408-01102007><FONT face=Arial 
color=#0000ff size=2>Regards</FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=981025408-01102007><FONT face=Arial 
color=#0000ff size=2>Marimuthu</FONT></SPAN></DIV><BR>
<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>Sankar 
S<BR><B>Sent:</B> Monday, October 01, 2007 12:56 PM<BR><B>To:</B> 
rules-users@lists.jboss.org<BR><B>Subject:</B> Re: [rules-users] executing 
specific rules using agenda group<BR></FONT><BR></DIV>
<DIV></DIV>
<DIV>
<BLOCKQUOTE class=gmail_quote 
style="PADDING-LEFT: 1ex; MARGIN: 0pt 0pt 0pt 0.8ex; BORDER-LEFT: rgb(204,204,204) 1px solid">Hello 
  Prateek,</BLOCKQUOTE>
<DIV><BR>&nbsp;&nbsp; I am using Drools 4.0. I have the sample rule for 
agenda-group with output.Hope it helps&nbsp;&nbsp; you.<BR><BR>Regards<BR>Sankar 
S<BR><BR>OUTPUT 
<BR>rule1<BR>rule4<BR>rule3<BR>rule2<BR>rule2.1<BR><BR>RULE<BR>package 
com.sample.agenda<BR><BR>rule "rule1" agenda-group "rulegroup1"&nbsp; auto-focus 
true <BR>&nbsp; when<BR>&nbsp;&nbsp;&nbsp;&nbsp; eval(true)<BR>&nbsp;&nbsp; 
then<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
System.out.println("rule1");<BR>&nbsp;&nbsp; end<BR><BR><BR>rule "rule2" 
agenda-group "rulegroup2"<BR>&nbsp;salience&nbsp; 12<BR>&nbsp; 
when<BR>&nbsp;&nbsp;&nbsp;&nbsp; eval(true)<BR>&nbsp;&nbsp; then 
<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; System.out.println("rule2");<BR>&nbsp;&nbsp; 
end<BR><BR><BR>rule "rule2.1" agenda-group "rulegroup2" <BR>&nbsp;salience&nbsp; 
10<BR>&nbsp; when<BR>&nbsp;&nbsp;&nbsp;&nbsp; eval(true)<BR>&nbsp;&nbsp; 
then<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; System.out.println(" 
rule2.1");<BR>&nbsp;&nbsp; end<BR>&nbsp;&nbsp; <BR>rule "rule3" agenda-group 
"rulegroup3"<BR>&nbsp; when<BR>&nbsp;&nbsp;&nbsp;&nbsp; 
eval(true)<BR>&nbsp;&nbsp; then<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
System.out.println("rule3");<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
drools.setFocus("rulegroup2"); <BR>&nbsp;&nbsp; end<BR>&nbsp;&nbsp; 
<BR>&nbsp;&nbsp; rule "rule4" agenda-group "MAIN"<BR>&nbsp; 
when<BR>&nbsp;&nbsp;&nbsp;&nbsp; eval(true)<BR>&nbsp;&nbsp; 
then<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
System.out.println("rule4");<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
drools.setFocus("rulegroup3");<BR>&nbsp;&nbsp; end <BR>&nbsp; <BR></DIV><BR>
<BLOCKQUOTE class=gmail_quote 
style="PADDING-LEFT: 1ex; MARGIN: 0pt 0pt 0pt 0.8ex; BORDER-LEFT: rgb(204,204,204) 1px solid">Date: 
  Mon, 1 Oct 2007 10:43:28 +0530<BR>From: &lt;<A 
  href="mailto:prateek.katiyar@wipro.com"> 
  prateek.katiyar@wipro.com</A>&gt;<BR>Subject: [rules-users] executing specific 
  rules using agenda group<BR>To: &lt;<A 
  href="mailto:rules-users@lists.jboss.org">rules-users@lists.jboss.org</A>&gt;<BR>Message-ID:<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt; 
  <A 
  href="mailto:A94AD757879CE142B7CEBC3E6FF5D3EC02C6A9BE@BLR-EC-MBX02.wipro.com">A94AD757879CE142B7CEBC3E6FF5D3EC02C6A9BE@BLR-EC-MBX02.wipro.com</A>&gt;<BR>Content-Type: 
  text/plain; charset="iso-8859-1"<BR><BR><BR>Hi<BR><BR>I am using Drools 
  4.0.<BR>First time I want to fire some specific rules from my rule file(in 
  .xml format) and then other rules for the second time.<BR>I have defined 
  agenda-group attribute for the rules as follows: <BR><BR>&lt;rule-attribute 
  name="agenda-group" value="Check-rfq"/&gt;<BR><BR>how can I execute specific 
  rules using agenda group or is there any other options are available.<BR>When 
  I had gone through Drools documentation ,they mentioned Listener api can be 
  used to execute specific rules but I did not find enough information on 
  Listener. <BR>Please let me know how can I implement Listener api to execute 
  specific rules.<BR><BR>Thanks<BR><BR>With 
Regards<BR>Prateek<BR><BR></BLOCKQUOTE></DIV><BR></BODY></HTML>

<table><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></table>