[rules-users] Drools Timers

Mauricio Salatino salaboy at gmail.com
Wed Sep 24 03:44:10 EDT 2014


Hi Demian,
As far as I remember you can use a CRON like expression in the timer
definition which will allow you to do that exactly.


On Wed, Sep 24, 2014 at 4:59 AM, Demian Calcaprina <calcacuervo at gmail.com>
wrote:

> 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
>
> _______________________________________________
> rules-users mailing list
> rules-users at lists.jboss.org
> https://lists.jboss.org/mailman/listinfo/rules-users
>



-- 
 - MyJourney @ http://salaboy.com <http://salaboy.wordpress.com>
 - Co-Founder @ http://www.jugargentina.org
 - Co-Founder @ http://www.jbug.com.ar

 - Salatino "Salaboy" Mauricio -
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.jboss.org/pipermail/rules-users/attachments/20140924/21b3b26b/attachment-0001.html 


More information about the rules-users mailing list