I&#39;d have to defer to the drools-expert people.. as the problem appears to be with 5.3.0.Final of drools-expert.<br><br>As a reminder, the DRL failing in 5.3.0.Final (or giving different results to 5.2.0?) is:-<br><br><span style="font-family: courier new,monospace;">rule &quot;Event Processing Evaluation&quot;</span><br style="font-family: courier new,monospace;">
<span style="font-family: courier new,monospace;">
dialect &quot;mvel&quot;</span><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;">
when</span><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;">   $list:java.util.List() from collect( evalEvent(wam == &#39;D1&#39;, f != null)</span><span style="font-family: courier new,monospace;"> over window:length( 1 ))</span><br style="font-family: courier new,monospace;">
<span style="font-family: courier new,monospace;">
    $average:Double() from accumulate( evalEvent($vf:f) from</span><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;">  
$list,average($vf) )</span><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;">
    eval($average &gt; 5)</span><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;">
then</span><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;">
    internalEvent fact0 = new internalEvent();</span><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;">
    fact0.setDesrc( &quot;Internal Event: &quot;+ $average );</span><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;">
    insert(fact0 );</span><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;">
end</span><br style="font-family: courier new,monospace;"><br><div class="gmail_quote">---------- Forwarded message ----------<br>From: <b class="gmail_sendername">axel</b> <span dir="ltr">&lt;<a href="mailto:axel.poeschmann@solutions.endress.com">axel.poeschmann@solutions.endress.com</a>&gt;</span><br>
Date: 14 November 2011 08:16<br>Subject: Re: [rules-users] Guvnor (5.3.0 Final)- Rule using accumulate with windows:length delivers an unexpected result<br>To: <a href="mailto:rules-users@lists.jboss.org">rules-users@lists.jboss.org</a><br>
<br><br>Thanks Mike.<br>
<br>
So, now I&#39;ve included Drools 5.3.0 Final in my Eclipse Drools Project too<br>
and discovered the same problem as in Guvnor with my example. There is a<br>
difference between 5.2.0 Final (works well) and 5.3.0 Final (fails) in my<br>
case.<br>
<br>
Is there a major change with event processing with sliding windows or is it<br>
a just bug in the new version?<br>
<br>
The DRL between Eclipse and Guvnor is the same, in principle. It means, I<br>
started the project within Guvnor using the build features with the Editor<br>
supporting creating a model in Guvnor and the business rule. These two<br>
files, I couldn&#39;t reuse in my Eclipse project 1:1 (I used New File from<br>
Guvnor Ressource in Eclipse for that), failed to compile and even to open<br>
for the brl-file. So, I made the same model as Java Classes and a new DRL in<br>
Eclipse copy the stuff from the Guvnors view source windows adding the<br>
includes for the Java model and adding the Event declaration by hand. By the<br>
way, are there any other hints for that ...<br>
<br>
With regards,<br>
<span class="HOEnZb"><font color="#888888"><br>
Axel<br>
<br>
<br>
--<br>
View this message in context: <a href="http://drools.46999.n3.nabble.com/rules-users-Guvnor-5-3-0-Final-Rule-using-accumulate-with-windows-length-delivers-an-unexpected-resut-tp3489548p3506191.html" target="_blank">http://drools.46999.n3.nabble.com/rules-users-Guvnor-5-3-0-Final-Rule-using-accumulate-with-windows-length-delivers-an-unexpected-resut-tp3489548p3506191.html</a><br>

</font></span><div class="HOEnZb"><div class="h5">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>
</div></div></div><br>