<br>   Maciek,<br><br>   You can use &quot;-*&quot; for negative infinity and &quot;*&quot; for positive infinity. <br><br>    Edson<br><br><br><br><br><div class="gmail_quote">2009/10/21 Maciej Prochniak <span dir="ltr">&lt;<a href="mailto:mpr@touk.pl">mpr@touk.pl</a>&gt;</span><br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">Hello,<br>
<br>
I have following use case in drools fusion:<br>
<br>
event A has specified duration (different for each occurence)<br>
I would like to fire rule if event B does not happen eventA.endTimestamp<br>
-2minutes.<br>
e.g. event A has duration 20minutes, it&#39;s inserted on 13:22:00, then<br>
rule should fire on 13:40 if event B does not occur before.<br>
<br>
I looked on temporal operators - but could not find anything suitable,<br>
it should be sth like:<br>
when<br>
$eventA<br>
not (EventB( this after[ negative infinity, -2m ] $eventA )<br>
then<br>
...<br>
end<br>
<br>
- but there&#39;s no infinity symbol in drools, nor java ;)<br>
<br>
Any ideas?<br>
<br>
thanks &amp; br,<br>
maciek<br>
<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>  Edson Tirelli<br>  JBoss Drools Core Development<br>  JBoss by Red Hat @ <a href="http://www.jboss.com">www.jboss.com</a><br>