[rules-users] Expiry of events not occurring for sliding window

cfuser cfuser at yahoo.com
Thu Sep 29 16:59:10 EDT 2011


I've done a bit more looking -- based upon what I've read and what I've seen
via testing, you don't need to have a temporal constraint on a CE for it to
be expired, provided there is an explicit one declared.  Is that correct?

That said...

Ok, maybe there is a silly mistake here, but I'm seeing the following expire
and retract objects (note no temporal constraint)


        imports....

        declare CheeseTime
           @role(event)
           @expires(10s)
           @timestamp(timeStamp)
        end       


        rule "Print Objects"
        when
            $m:Object( )
                from entry-point "stat-stream"
        then
            logger.warn( "------------CheeseTime--------------" );
            logger.warn( "--"+$m);
        end



(note the Object() ) but not this

(same declarations except replacing the rule)


        rule "Print CheeseTime"
        when
            $m:CheeseTime()
                from entry-point "stat-stream"
        then
            logger.warn( "------------Object--------------" );
            logger.warn( "--"+$m);
        end




For CheeseTime


public class CheeseTime {

    private String type;
    private long cost;
    private Date timeStamp;
      :
}



Clearly, I'm missing something...

--
View this message in context: http://drools.46999.n3.nabble.com/Expiry-of-events-not-occurring-for-sliding-window-tp3362402p3380503.html
Sent from the Drools: User forum mailing list archive at Nabble.com.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.jboss.org/pipermail/rules-users/attachments/20110929/f2d2037f/attachment.html 


More information about the rules-users mailing list