[rules-users] using Drools global variables inside operator timer(int: <variable name> s)

Davide Sottara dsotty at gmail.com
Tue May 8 13:02:08 EDT 2012


Hi, there's a recently added feature that should allow you to do so.
It's the "expr" mode for timers:

timer( expr: <delay MVEL expr here>, <optional period MVEL expr here> ; ) 

It supports up to two valid MVEL expressions, which resolve to delay and
period. 
They need to be separated by a "," if you use both, and need at ";" at the
end.
The expressions need to evaluate to a timer String or to a long (assumed to
be milliseconds).
Locally bound variables are known to work, globals should be usable too

Cheers,
Davide


--
View this message in context: http://drools.46999.n3.nabble.com/using-Drools-global-variables-inside-operator-timer-int-variable-name-s-tp3950828p3971912.html
Sent from the Drools: User forum mailing list archive at Nabble.com.


More information about the rules-users mailing list