<!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.3314" name=GENERATOR><!-- converted from rtf -->
<STYLE>.EmailQuote {
        PADDING-LEFT: 4pt; MARGIN-LEFT: 1pt; BORDER-LEFT: #800000 2px solid
}
</STYLE>
</HEAD>
<BODY bgColor=#ffffff>
<DIV dir=ltr align=left><SPAN class=449182513-29042008><FONT face=Arial
color=#0000ff size=2>Actually between yours and Mark's responses this is very
useful.</FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=449182513-29042008><FONT face=Arial
color=#0000ff size=2></FONT></SPAN> </DIV>
<DIV dir=ltr align=left><SPAN class=449182513-29042008><FONT face=Arial
color=#0000ff size=2>Thanks so much!</FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=449182513-29042008><FONT face=Arial
color=#0000ff size=2></FONT></SPAN> </DIV>
<DIV dir=ltr align=left><SPAN class=449182513-29042008><FONT face=Arial
color=#0000ff size=2>-A</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>Kris
Verlaenen<BR><B>Sent:</B> Monday, April 28, 2008 2:39 PM<BR><B>To:</B> Rules
Users List<BR><B>Subject:</B> Re: [rules-users] Agenda group doesn't stay
set?<BR></FONT><BR></DIV>
<DIV></DIV>
<DIV><FONT face=Arial size=2>Ruleflow groups allow you to group rules together
and rules inside a ruleflow group only execute when the ruleflow-group is
active. You can use ruleflow groups inside a ruleflow but they can be used
outside ruleflows as well. You could manually activate and deactivate
ruleflow groups using wo</FONT><FONT face=Arial
size=2>rkingMemory.getAgenda().[de]activateRuleflowGroup(name).
</FONT><FONT face=Arial size=2>You can decide whether a ruleflow group should
auto-deactivate if it contains no more activations or not.</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>I guess it's not exactly what you are looking for
but it might be useful.</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>Kris</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<BLOCKQUOTE
style="PADDING-RIGHT: 0px; PADDING-LEFT: 5px; MARGIN-LEFT: 5px; BORDER-LEFT: #000000 2px solid; MARGIN-RIGHT: 0px">
<DIV style="FONT: 10pt arial">----- Original Message ----- </DIV>
<DIV
style="BACKGROUND: #e4e4e4; FONT: 10pt arial; font-color: black"><B>From:</B>
<A title=afbagwe@sandia.gov href="mailto:afbagwe@sandia.gov">Bagwell, Allen
F</A> </DIV>
<DIV style="FONT: 10pt arial"><B>To:</B> <A title=rules-users@lists.jboss.org
href="mailto:rules-users@lists.jboss.org">Rules Users List</A> </DIV>
<DIV style="FONT: 10pt arial"><B>Sent:</B> Monday, April 28, 2008 8:49
PM</DIV>
<DIV style="FONT: 10pt arial"><B>Subject:</B> [rules-users] Agenda group
doesn't stay set?</DIV>
<DIV><BR></DIV><FONT face="Arial, sans-serif" size=3>
<DIV> </DIV>
<DIV><FONT size=2>I'm writing rules in different agenda groups and witnessing
something curious.</FONT></DIV>
<DIV><FONT size=2></FONT> </DIV>
<DIV><FONT size=2>Right now when I put my fireAllRules() in a callback that is
triggered every couple of seconds I have to do this:</FONT></DIV>
<DIV><FONT size=2></FONT> </DIV>
<DIV><FONT face="Courier New, monospace" size=2>Callback executes on receipt
of a heartbeat message:</FONT></DIV>
<DIV><FONT face="Courier New, monospace" size=2>{</FONT></DIV>
<DIV><FONT face="Courier New, monospace" size=2>
session.setFocus("my_agenda");</FONT></DIV>
<DIV><FONT face="Courier New, monospace" size=2>
session.fireAllRules();</FONT></DIV>
<DIV><FONT face="Courier New, monospace" size=2>}</FONT></DIV>
<DIV><FONT face="Courier New, monospace" size=2></FONT> </DIV>
<DIV><FONT size=2>What I would prefer to do is this is set my agenda group
external to the callback so I have the liberty to simply use the callback to
execute rules on whatever agenda I give focus to elsewhere:</FONT></DIV>
<DIV><FONT size=2></FONT> </DIV>
<DIV><FONT face="Courier New, monospace" size=2>Callback executes on receipt
of a heartbeat message:</FONT></DIV>
<DIV><FONT face="Courier New, monospace" size=2>{</FONT></DIV>
<DIV><FONT face="Courier New, monospace" size=2>
session.fireAllRules();</FONT></DIV>
<DIV><FONT face="Courier New, monospace" size=2>}</FONT></DIV>
<DIV><FONT face="Courier New, monospace" size=2></FONT> </DIV>
<DIV><FONT size=2>But this doesn't work.</FONT></DIV>
<DIV><FONT size=2></FONT> </DIV>
<DIV><FONT size=2>My understanding is that unless you explicitly set the
agenda-group each time, then fireAllRules() resets your agenda group to
"MAIN"?</FONT></DIV>
<DIV><FONT size=2></FONT> </DIV>
<DIV><FONT size=2>Is there a way to get the session to retain focus on the
agenda group I specify until I see fit to change it?</FONT></DIV>
<DIV><FONT size=2></FONT> </DIV>
<DIV><FONT face="Tahoma, sans-serif" color=#008080 size=2>Allen F.
Bagwell</FONT></DIV>
<DIV><FONT face="Tahoma, sans-serif" color=#008080 size=1>e-mail:
afbagwe@sandia.gov</FONT></DIV>
<DIV><FONT face="Tahoma, sans-serif" color=#008080 size=1>phone:
505/284-4517</FONT></DIV>
<DIV><FONT face="Tahoma, sans-serif" color=#008080 size=1>fax: 505/
844-7886</FONT></DIV>
<DIV><FONT face="Tahoma, sans-serif" color=#008080 size=1></FONT> </DIV>
<DIV style="MARGIN-TOP: 5pt; MARGIN-BOTTOM: 5pt"><FONT
face="Tahoma, sans-serif" color=#008080 size=1>There is no monument dedicated
to the memory of a committee. -- Lester J. Pourciau</FONT></DIV>
<DIV><FONT face="Tahoma, sans-serif" size=1></FONT> </DIV>
<DIV><FONT face="Tahoma, sans-serif" size=1></FONT> </DIV>
<DIV><FONT size=2></FONT> </DIV></FONT>
<P>
<HR>
<P></P>_______________________________________________<BR>rules-users mailing
list<BR>rules-users@lists.jboss.org<BR>https://lists.jboss.org/mailman/listinfo/rules-users<BR></BLOCKQUOTE></BODY></HTML>