<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=us-ascii">
<meta name="Generator" content="Microsoft Exchange Server">
<!-- converted from rtf -->
<style>.EmailQuote { margin-left: 1pt; padding-left: 4pt; border-left: #800000 2px solid; }</style>
</head>
<body>
<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" size="2" color="#008080">Allen F. Bagwell</font></div>
<div><font face="Tahoma, sans-serif" size="1" color="#008080">e-mail: afbagwe@sandia.gov</font></div>
<div><font face="Tahoma, sans-serif" size="1" color="#008080">phone: 505/284-4517</font></div>
<div><font face="Tahoma, sans-serif" size="1" color="#008080">fax: 505/ 844-7886</font></div>
<div><font face="Tahoma, sans-serif" size="1" color="#008080"> </font></div>
<div style="margin-top: 5pt; margin-bottom: 5pt; "><font face="Tahoma, sans-serif" size="1" color="#008080">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>
</body>
</html>