[rules-users] Implement timer in rule

David Sinclair dsinclair at chariotsolutions.com
Fri Jul 30 09:08:03 EDT 2010


This may be a stupid question, but are you running with the latest code or
an older version of Drools?

2010/7/29 james corrigan <jamescorrig at gmail.com>

> Hi All,
>
> I am trying to implement a timer in a rule so that it executes every 15min
> i have the following code:
>
> rule " When average temperature is greater than 19 turn on fans"
>
>    timer(int:0 15m)
>
>         when
>                  $t : Temperature($room : room)
>                  $fan : Fan( room == $room )
>         then
>                 "i need to implement this yet
>
> end
>
> I am getting on the timer: "[ERR 101]Line 61:0 no viable alternative at
> input 'timer' in rule ......
> I read example 2.12. Example timer attribute uses from
> https://hudson.jboss.org/hudson/job/drools/lastSuccessfulBuild/artifact/trunk/target/docs/drools-introduction/html/ch02.html
> and this is how it says to implement a timer.
>
> Any help is greatly appreciated.
>
> Kind regards,
> James.
>
>
> _______________________________________________
> rules-users mailing list
> rules-users at lists.jboss.org
> https://lists.jboss.org/mailman/listinfo/rules-users
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.jboss.org/pipermail/rules-users/attachments/20100730/c4dc96fa/attachment.html 


More information about the rules-users mailing list