[rules-users] configuring timings for event expiry
Wolfgang Laun
wolfgang.laun at gmail.com
Wed Mar 13 08:04:55 EDT 2013
On 12/03/2013, rule_dev <talal_kamar at hotmail.com> wrote:
> 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
This is one operand plus one operator, which will be difficult to
replace by data. Can you describe your problem in terms of data types
and operations (and not by "textual replacement")?
-W
> 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.
> _______________________________________________
> rules-users mailing list
> rules-users at lists.jboss.org
> https://lists.jboss.org/mailman/listinfo/rules-users
>
More information about the rules-users
mailing list