<div><br></div>   Hi Robert,<div><br></div><div>   Good catch. I fixed this and will commit it in a few minutes. It will be included in the next release. You will be able to download fixed binaries from hudson or you can build them yourself.</div>
<div><br></div><div>   Edson<br><br><div class="gmail_quote">2011/10/22 Robert Crawford <span dir="ltr">&lt;<a href="mailto:crawford@kloognome.com">crawford@kloognome.com</a>&gt;</span><br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
It seems like ever since I found this, I can&#39;t stop tripping this condition.<br>
<br>
Basically, while adding the DRL files to the KnowledgeBuilder,<br>
ReteooRuleBase decides it has to reconcile event definitions from different<br>
&quot;packages&quot;, so it looks for any that are assignable. At first I thought this<br>
was just a guard against having a parent expire quicker than a child class<br>
and breaking rules for the child. But now I&#39;m getting this condition for A<br>
SINGLE CLASS WITH NO INHERITANCE.<br>
<br>
At the root of the problem is ReteooRuleBase line 477:<br>
node.setExpirationOffset( Math.max( node.getExpirationOffset(),<br>
typeDeclaration.getExpirationOffset()+1 ) );<br>
<br>
Since neither node nor typeDeclaration have declared expirations, they both<br>
have expirationOffset values of -1. The code evaluates:<br>
<br>
max(-1, -1 + 1)<br>
<br>
sets the expirationOffset for node to zero, and from then on my objects are<br>
expired literally as I insert them.<br>
<br>
If someone could more clearly state the conditions that trip this code, I&#39;d<br>
do my best to avoid them. I&#39;ve already eliminated inheritance among my<br>
events, but that doesn&#39;t seem to be enough.<br>
<font color="#888888"><br>
<br>
<br>
--<br>
View this message in context: <a href="http://drools.46999.n3.nabble.com/JBRULES-3260-Events-forced-to-zero-expirationOffset-tp3444069p3444069.html" target="_blank">http://drools.46999.n3.nabble.com/JBRULES-3260-Events-forced-to-zero-expirationOffset-tp3444069p3444069.html</a><br>

Sent from the Drools: User forum mailing list archive at Nabble.com.<br>
_______________________________________________<br>
rules-users mailing list<br>
<a href="mailto:rules-users@lists.jboss.org">rules-users@lists.jboss.org</a><br>
<a href="https://lists.jboss.org/mailman/listinfo/rules-users" target="_blank">https://lists.jboss.org/mailman/listinfo/rules-users</a><br>
</font></blockquote></div><br><br clear="all"><div><br></div>-- <br>  Edson Tirelli<br>  JBoss Drools Core Development<br>  JBoss by Red Hat @ <a href="http://www.jboss.com">www.jboss.com</a><br>
</div>