[rules-users] Events older than x minutes

Edson Tirelli tirelli at post.com
Mon Jul 19 14:05:05 EDT 2010


   Hi,

   Did you tried this?

rule X
when
    $a : A()
    not( B( this $after[0,5m] $a ) )
then
    // perform xyz
end

   Edson

2010/7/19 Mike Love <mike.love at symbiotics.co.za>

>  Hi,
>
>
>
> I have a requirement to identify events added to a stream that are older
> that x minutes. E.g. Event A is added to the stream and when event B is
> added then event A is removed, if no event B is added within 5 minutes of
> event A being added then perform xyz().
>
>
>
> Any assistance would be greatly appreciated.
>
>
>
>
>
> Regards,
>
> Mike
>
>
>
> _______________________________________________
> 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/20100719/62fabda5/attachment.html 


More information about the rules-users mailing list