[rules-users] drools fusion: rule of type 2 minutes before event A finishes

Edson Tirelli ed.tirelli at gmail.com
Wed Oct 21 11:35:22 EDT 2009


   Maciek,

   You can use "-*" for negative infinity and "*" for positive infinity.

    Edson




2009/10/21 Maciej Prochniak <mpr at touk.pl>

> Hello,
>
> I have following use case in drools fusion:
>
> event A has specified duration (different for each occurence)
> I would like to fire rule if event B does not happen eventA.endTimestamp
> -2minutes.
> e.g. event A has duration 20minutes, it's inserted on 13:22:00, then
> rule should fire on 13:40 if event B does not occur before.
>
> I looked on temporal operators - but could not find anything suitable,
> it should be sth like:
> when
> $eventA
> not (EventB( this after[ negative infinity, -2m ] $eventA )
> then
> ...
> end
>
> - but there's no infinity symbol in drools, nor java ;)
>
> Any ideas?
>
> thanks & br,
> maciek
>
> _______________________________________________
> rules-users mailing list
> rules-users at lists.jboss.org
> https://lists.jboss.org/mailman/listinfo/rules-users
>



-- 
 Edson Tirelli
 JBoss Drools Core Development
 JBoss by Red Hat @ www.jboss.com
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.jboss.org/pipermail/rules-users/attachments/20091021/47cea871/attachment.html 


More information about the rules-users mailing list