<div>Hi All,</div>
<div> </div>
<div>I am trying to implement a timer in a rule so that it executes every 15min i have the following code:</div>
<div> </div>
<div><font style="BACKGROUND-COLOR: #ffff66">rule " When average temperature is greater than 19 turn on fans"</font></div>
<div><font style="BACKGROUND-COLOR: #ffff66"></font> </div>
<div><font style="BACKGROUND-COLOR: #ffff66"> timer(int:0 15m)</font></div>
<div><font style="BACKGROUND-COLOR: #ffff66"></font> </div>
<div><font style="BACKGROUND-COLOR: #ffff66"> when</font></div>
<div><font style="BACKGROUND-COLOR: #ffff66"> $t : Temperature($room : room)</font></div>
<div><font style="BACKGROUND-COLOR: #ffff66"> $fan : Fan( room == $room )</font></div>
<div><font style="BACKGROUND-COLOR: #ffff66"> then</font></div>
<div><font style="BACKGROUND-COLOR: #ffff66"> "i need to implement this yet</font></div>
<div><font style="BACKGROUND-COLOR: #ffff66"></font> </div>
<div><font style="BACKGROUND-COLOR: #ffff66">end</font></div>
<div> </div>
<div><font style="BACKGROUND-COLOR: #ffffff">I am getting on the timer: "[ERR 101]Line 61:0 no viable alternative at input 'timer' in rule ......</font></div>
<div>I read example 2.12. Example timer attribute uses from <a href="https://hudson.jboss.org/hudson/job/drools/lastSuccessfulBuild/artifact/trunk/target/docs/drools-introduction/html/ch02.html">https://hudson.jboss.org/hudson/job/drools/lastSuccessfulBuild/artifact/trunk/target/docs/drools-introduction/html/ch02.html</a></div>
<div>and this is how it says to implement a timer.</div>
<div> </div>
<div>Any help is greatly appreciated.</div>
<div> </div>
<div>Kind regards,</div>
<div>James.</div>
<div> </div>