<!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 text=#000000 bgColor=#ffffff>
<DIV dir=ltr align=left><SPAN class=018352312-01102007><FONT face=Arial
color=#0000ff size=2>Hi Mark/Sundar,</FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=018352312-01102007><FONT face=Arial
color=#0000ff size=2></FONT></SPAN> </DIV>
<DIV dir=ltr align=left><SPAN class=018352312-01102007><FONT face=Arial
color=#0000ff size=2>Sorry for the mistake. I am not asking the
entire </FONT></SPAN><SPAN class=018352312-01102007><FONT face=Arial
color=#0000ff size=2>source code. I didn't find syntax how to mention
agenda group in xml file.</FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=018352312-01102007><FONT face=Arial
color=#0000ff size=2>I know what are steps to following to fire all rules. just
i am asking what are apis i have to look in to fire specific
rule.</FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=018352312-01102007><FONT face=Arial
color=#0000ff size=2>it might be few lines of code needs to be
added. </FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=018352312-01102007><FONT face=Arial
color=#0000ff size=2></FONT></SPAN> </DIV>
<DIV dir=ltr align=left><SPAN class=018352312-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>Mark
Proctor<BR><B>Sent:</B> Monday, October 01, 2007 4:35 PM<BR><B>To:</B> Rules
Users List<BR><B>Cc:</B> sankar.laks@gmail.com<BR><B>Subject:</B> Re:
[rules-users] executing specific rules using agenda group<BR></FONT><BR></DIV>
<DIV></DIV><A class=moz-txt-link-abbreviated
href="mailto:marimuthu.balasubramanian@wipro.com">marimuthu.balasubramanian@wipro.com</A>
wrote:
<BLOCKQUOTE
cite=mid:A800F8578764634C957957BED9B8895E6202F3@BLR-SJP-MBX01.wipro.com
type="cite">
<META content="MSHTML 6.00.2900.3157" name=GENERATOR>
<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></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></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></BLOCKQUOTE>Sankar, I would
request that you don't send them the java code, if it's obvious they haven't
even read the basics from the manual. You have no object model and thus no data
to assert, so this should be trivial for people to figure out how to execute, as
it's literally cutting and pasting.<BR><BR>Also anyone can get an xml example by
dumping out a drl to xml, using the XMLDumper - so there is no need to ask
people for XML versions of an example.<BR>
<BLOCKQUOTE
cite=mid:A800F8578764634C957957BED9B8895E6202F3@BLR-SJP-MBX01.wipro.com
type="cite"><BR>
<DIV class=OutlookMessageHeader lang=en-us dir=ltr align=left>
<HR tabIndex=-1>
<FONT face=Tahoma size=2><B>From:</B> <A class=moz-txt-link-abbreviated
href="mailto:rules-users-bounces@lists.jboss.org">rules-users-bounces@lists.jboss.org</A>
[<A class=moz-txt-link-freetext
href="mailto:rules-users-bounces@lists.jboss.org">mailto:rules-users-bounces@lists.jboss.org</A>]
<B>On Behalf Of </B>Sankar S<BR><B>Sent:</B> Monday, October 01, 2007 12:56
PM<BR><B>To:</B> <A class=moz-txt-link-abbreviated
href="mailto:rules-users@lists.jboss.org">rules-users@lists.jboss.org</A><BR><B>Subject:</B>
Re: [rules-users] executing specific rules using agenda
group<BR></FONT><BR></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" moz-do-not-send="true">
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"
moz-do-not-send="true">rules-users@lists.jboss.org</A>><BR>Message-ID:<BR> <
<A
href="mailto:A94AD757879CE142B7CEBC3E6FF5D3EC02C6A9BE@BLR-EC-MBX02.wipro.com"
moz-do-not-send="true">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>
<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><A class=moz-txt-link-abbreviated
href="http://www.wipro.com">www.wipro.com</A><BR></FONT></TD></TR></TBODY></TABLE><PRE wrap=""><HR width="90%" SIZE=4>
_______________________________________________
rules-users mailing list
<A class=moz-txt-link-abbreviated href="mailto:rules-users@lists.jboss.org">rules-users@lists.jboss.org</A>
<A class=moz-txt-link-freetext href="https://lists.jboss.org/mailman/listinfo/rules-users">https://lists.jboss.org/mailman/listinfo/rules-users</A>
</PRE></BLOCKQUOTE><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>