[rules-users] configuring timings for event expiry

rule_dev talal_kamar at hotmail.com
Tue Mar 12 16:03:37 EDT 2013


Hi ,

I was wondering if it is possible to write a rule in such a way that you are
able to set the 'this after' for events using an attribute from a class.

rule "correlate orders"
when
    $bo : BuyOrderEvent( $id : id ) 
    $ae : AckEvent( id == $id, this after[0,10s] $bo )
then
    // do something
end

in the above rule template I would like to set the "this after [0,10]" part
using a custom value from say a date attribute of the BuyOrderEvent class.

Thanks for your time.



--
View this message in context: http://drools.46999.n3.nabble.com/configuring-timings-for-event-expiry-tp4022792.html
Sent from the Drools: User forum mailing list archive at Nabble.com.


More information about the rules-users mailing list