<!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> </DIV>
<DIV dir=ltr align=left><SPAN class=981025408-01102007><FONT face=Arial
color=#0000ff size=2> 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> </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> I am using Drools 4.0. I have the sample rule for
agenda-group with output.Hope it helps 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" auto-focus
true <BR> when<BR> eval(true)<BR>
then<BR>
System.out.println("rule1");<BR> end<BR><BR><BR>rule "rule2"
agenda-group "rulegroup2"<BR> salience 12<BR>
when<BR> eval(true)<BR> then
<BR> System.out.println("rule2");<BR>
end<BR><BR><BR>rule "rule2.1" agenda-group "rulegroup2" <BR> salience
10<BR> when<BR> eval(true)<BR>
then<BR> System.out.println("
rule2.1");<BR> end<BR> <BR>rule "rule3" agenda-group
"rulegroup3"<BR> when<BR>
eval(true)<BR> then<BR>
System.out.println("rule3");<BR>
drools.setFocus("rulegroup2"); <BR> end<BR>
<BR> rule "rule4" agenda-group "MAIN"<BR>
when<BR> eval(true)<BR>
then<BR>
System.out.println("rule4");<BR>
drools.setFocus("rulegroup3");<BR> end <BR> <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: <<A
href="mailto:prateek.katiyar@wipro.com">
prateek.katiyar@wipro.com</A>><BR>Subject: [rules-users] executing specific
rules using agenda group<BR>To: <<A
href="mailto:rules-users@lists.jboss.org">rules-users@lists.jboss.org</A>><BR>Message-ID:<BR> <
<A
href="mailto:A94AD757879CE142B7CEBC3E6FF5D3EC02C6A9BE@BLR-EC-MBX02.wipro.com">A94AD757879CE142B7CEBC3E6FF5D3EC02C6A9BE@BLR-EC-MBX02.wipro.com</A>><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><rule-attribute
name="agenda-group" value="Check-rfq"/><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>