<div><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">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 &quot;rule1&quot; agenda-group &quot;rulegroup1&quot;&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(&quot;rule1&quot;);<br>&nbsp;&nbsp; end<br><br><br>rule &quot;rule2&quot; agenda-group &quot;rulegroup2&quot;<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(&quot;rule2&quot;);<br>&nbsp;&nbsp; end<br><br><br>rule &quot;rule2.1&quot; agenda-group &quot;rulegroup2&quot; <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(&quot;
rule2.1&quot;);<br>&nbsp;&nbsp; end<br>&nbsp;&nbsp; <br>rule &quot;rule3&quot; agenda-group &quot;rulegroup3&quot;<br>&nbsp; when<br>&nbsp;&nbsp;&nbsp;&nbsp; eval(true)<br>&nbsp;&nbsp; then<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; System.out.println(&quot;rule3&quot;);<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; drools.setFocus(&quot;rulegroup2&quot;);
<br>&nbsp;&nbsp; end<br>&nbsp;&nbsp; <br>&nbsp;&nbsp; rule &quot;rule4&quot; agenda-group &quot;MAIN&quot;<br>&nbsp; when<br>&nbsp;&nbsp;&nbsp;&nbsp; eval(true)<br>&nbsp;&nbsp; then<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; System.out.println(&quot;rule4&quot;);<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; drools.setFocus(&quot;rulegroup3&quot;);<br>&nbsp;&nbsp; end
<br>&nbsp; <br></div><br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">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=&quot;iso-8859-1&quot;<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=&quot;agenda-group&quot; value=&quot;Check-rfq&quot;/&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>