Sounds that you can use the Not Conditional Element for that right?<div>something like</div><div><br></div><div>$a: EventA()</div><div>not EventB(this after[1d] $a)</div><div><br></div><div><br><br><div class="gmail_quote">
On Fri, Oct 22, 2010 at 5:49 PM, Tina Vießmann <span dir="ltr">&lt;<a href="mailto:tviessmann@stud.hs-bremen.de">tviessmann@stud.hs-bremen.de</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
Hi,<br>
<br>
I&#39;m working on a use case where I want to know if 20 events with a<br>
specific value are contained in at maximum the last 150 events. So far I<br>
know what have to do. ;-)<br>
My problem is that as extension to my condition, the rule shall also<br>
trigger if one ore more events are missing. But I don&#39;t know the time<br>
interval with which the events arrive, so that I don&#39;t know when a new<br>
event should arrive and by implication I don&#39;t know about the absence of<br>
an event.<br>
<br>
In our environment events arrive in &quot;counts&quot; and not in a specific time<br>
interval as e.g. ever 1 second.  So we talk about the last two or 150<br>
counts if we talk about the last two ore 150 data packages received.<br>
Yes, behind a count always is a time interval, but only the data source<br>
knows about the time interval. My recipient doesn&#39;t<br>
Also the data of a data package is inserted in the working memory<br>
independently, so that I have e.g. 10 data events instead of a single<br>
package event.<br>
(Now that you know that, my first sentence would be correctly: I want to<br>
know if 20 counts of the max. last 150 counts have contained a specific<br>
event.)<br>
<br>
If my explanation (or my attempt to explain) is difficult to understand,<br>
please ask me what you want to know.<br>
<br>
I would be very happy about any ideas.<br>
<br>
Thank you.<br>
Tina<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>
</blockquote></div><br><br clear="all"><br>-- <br> - CTO @ <a href="http://www.plugtree.com">http://www.plugtree.com</a>  <br> - MyJourney @ <a href="http://salaboy.wordpress.com">http://salaboy.wordpress.com</a><br> - Co-Founder @ <a href="http://www.jbug.com.ar">http://www.jbug.com.ar</a><br>
 <br> - Salatino &quot;Salaboy&quot; Mauricio -<br>
</div>