Hi all:<br><br>I have a Guvnor Repository with same rules.<br><br>Then, I have a web application with a KnowledgeAgent. The agent has the &quot;drools.agent.newInstance&quot; property in &quot;false&quot;, to update the KnowledgeStatefulSession with every change in the KnowledgeBase, and the scanning interval setted in 10 seconds.<br>
<br>In my rules, I use temporal operator of Fusion with &quot;befores&quot; and &quot;afters&quot;, and time intervals.<br><br>In my web application I have a long running KnowledgeStatefulSession and I use an AgendaEventListener to fire rules in every activationCreated() event.<br>
<br>My problem is that in each KnowledgeBase update, the session cancels all the activations created and then creates all activations cancelled again. I see this because I have a logger in each method of the AgendaEventListener instance.<br>
<br>If I had a rule of this style in progress:<br><br>rule &quot;Basic Rule&quot;<br>dialect &#39;mvel&#39;<br>when<br>    $eventA: EventA($aId: id) from entry-point &quot;time stream&quot;<br>    not EventB($aId == id, this after [0s,5m] $eventA) from entry-point &quot;time stream&quot;<br>
then<br>    System.out.println(&quot;Event A &quot; + $aId + &quot; at &quot; + $eventA.timestamp);<br>end<br><br>And this rule had been activated 2 minutes ago... When the KnowledgeAgent updates the KnowledgeSession, after a KnowledgeBase update from Guvnor, the time intervals resets to zero. I guess it must be because the agent cancels the activations and creates them again.<br>
<br>The result is that the System.out fires 7 minutes after the event was inserted... 2 minutes later.<br><br>I hope you have understood me, despite my english.<br><br>Thanks!!<br><br>Adrian<br clear="all"><br>-- <br><span style="font-family:arial,sans-serif;font-size:12px;border-collapse:collapse;color:rgb(0,84,128)"><b><span style="color:rgb(0,0,0);font-weight:normal;font-size:13px"><font><span style="font-family:arial,sans-serif;font-size:12px;border-collapse:collapse;color:rgb(0,84,128)"><b>Epidata Consulting | Deploying Ideas</b></span><br>




</font><div><font><span style="font-family:arial,sans-serif;font-size:12px;border-collapse:collapse;color:rgb(149,151,154)">Ing. Adrián M. Paredes | Arquitecto Desarrollador<br></span></font></div>
<div><span style="font-family:arial,sans-serif;font-size:12px;border-collapse:collapse;color:rgb(149,151,154)"><a href="mailto:adrianp@epidataconsulting.com" target="_blank">adrianp@epidataconsulting.com</a> | Cel: (54911) 3297 1713<br>
</span></div><div>
<div><font><span style="font-family:arial,sans-serif;font-size:12px;border-collapse:collapse;color:rgb(149,151,154)">----------------------------------------------------------------------------------------------------------------------------</span></font></div>




<div><font><span style="font-family:arial,sans-serif;font-size:12px;border-collapse:collapse;color:rgb(0,84,128)">Argentina: </span></font><span style="font-family:arial,sans-serif;font-size:12px;border-collapse:collapse;color:rgb(149,151,154)">Maipú 521 Piso 1 Of. A | Buenos Aires | Of: (5411) 5031 0060</span></div>




<div><font><span style="font-family:arial,sans-serif;font-size:12px;border-collapse:collapse;color:rgb(0,84,128)">Chile:</span> </font><span style="font-family:arial,sans-serif;font-size:12px;border-collapse:collapse;color:rgb(149,151,154)">Apoquindo 3600 Piso 7 y 9 | Las Condes - Santiago | Of: (+56) 2 495 8450</span></div>




<div><font><span style="font-family:arial,sans-serif;font-size:12px;border-collapse:collapse;color:rgb(149,151,154)">---------------------------------------------------------------------------------------------------------------------------</span></font></div>




<div><span style="font-size:12px;color:rgb(0,84,128)"><b><span style="color:rgb(0,0,0);font-weight:normal;font-size:13px"><div style="display:inline!important"><font><span style="color:rgb(149,151,154);font-family:arial,sans-serif;font-size:12px;border-collapse:collapse"><span style="color:rgb(0,84,128)"><b><span style="color:rgb(0,0,0);font-weight:normal;font-size:13px"><div style="display:inline!important">




<span style="font-family:arial,sans-serif;font-size:12px;border-collapse:collapse;color:rgb(149,151,154)"><a href="http://www.epidataconsulting.com/" target="_blank">www.epidataconsulting.com</a></span></div></span></b></span></span></font></div>




</span></b></span></div><div><span style="font-size:12px;color:rgb(0,84,128)"><b><span style="color:rgb(0,0,0);font-weight:normal;font-size:13px"><div style="display:inline!important"><font><span style="font-family:arial,sans-serif;font-size:12px;color:rgb(0,84,128)"><b><span style="color:rgb(0,0,0);font-weight:normal;font-size:13px"><div style="display:inline!important">




<font><span style="font-family:arial,sans-serif;font-size:12px;border-collapse:collapse;color:rgb(149,151,154)"><a href="http://bit.ly/epidatalinkedin" target="_blank">Linkedin</a> | <a href="http://www.facebook.com/epidata.consulting" target="_blank">Facebook</a> | <a href="http://twitter.com/epidata" target="_blank">Twitter</a></span></font></div>




</span></b></span></font></div></span></b></span></div></div></span></b></span><br>