[rules-users] Drools Timers

Demian Calcaprina calcacuervo at gmail.com
Tue Sep 23 23:59:26 EDT 2014


Hey Guys, I am trying to use to use the timer in the rule, but I don't
fully understand it.
I have a simple rule which says

rule "Test"

timer(int: 1s)
    when
       Something()
    then
       System.out.println("Something Happens");
end

And I insert 100 Someting() object, after 1 second I see 100 activations.
- Can I do with the timer something like "run this rule once per minute"
for example?
- When does the timer start to run?

Thanks in advance,

Demian
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.jboss.org/pipermail/rules-users/attachments/20140924/e2fcc1a8/attachment.html 


More information about the rules-users mailing list