On 12/03/2013, rule_dev <talal_kamar(a)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-tp...
Sent from the Drools: User forum mailing list archive at
Nabble.com.
_______________________________________________
rules-users mailing list
rules-users(a)lists.jboss.org
https://lists.jboss.org/mailman/listinfo/rules-users