Hi David,<div>I got it working, that was indeed the problem, i have two versions on my pc - 5.0 &amp; 5.1. I stupidly thought that the document was referring to all 5.x versions. </div><div>Thanks for your reply.</div><div>
Kind Regards,</div><div>James.<br><br><div class="gmail_quote">2010/7/30 David Sinclair <span dir="ltr">&lt;<a href="mailto:dsinclair@chariotsolutions.com">dsinclair@chariotsolutions.com</a>&gt;</span><br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
This may be a stupid question, but are you running with the latest code or an older version of Drools?<br><br><div class="gmail_quote">2010/7/29 james corrigan <span dir="ltr">&lt;<a href="mailto:jamescorrig@gmail.com" target="_blank">jamescorrig@gmail.com</a>&gt;</span><br>

<blockquote class="gmail_quote" style="border-left:1px solid rgb(204, 204, 204);margin:0pt 0pt 0pt 0.8ex;padding-left:1ex"><div><div></div><div class="h5"><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:rgb(255, 255, 102)">rule &quot; When average temperature is greater than 19 turn on fans&quot;</font></div>
<div><font style="background-color:rgb(255, 255, 102)"></font> </div>
<div><font style="background-color:rgb(255, 255, 102)">   timer(int:0 15m)</font></div>
<div><font style="background-color:rgb(255, 255, 102)"></font> </div>
<div><font style="background-color:rgb(255, 255, 102)">        when</font></div>
<div><font style="background-color:rgb(255, 255, 102)">                 $t : Temperature($room : room)</font></div>
<div><font style="background-color:rgb(255, 255, 102)">                 $fan : Fan( room == $room )</font></div>
<div><font style="background-color:rgb(255, 255, 102)">        then</font></div>
<div><font style="background-color:rgb(255, 255, 102)">                &quot;i need to implement this yet</font></div>
<div><font style="background-color:rgb(255, 255, 102)"></font> </div>
<div><font style="background-color:rgb(255, 255, 102)">end</font></div>
<div> </div>
<div><font style="background-color:rgb(255, 255, 255)">I am getting on the timer: &quot;[ERR 101]Line 61:0 no viable alternative at input &#39;timer&#39; 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" target="_blank">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><font color="#888888">
<div> </div>
</font><br></div></div>_______________________________________________<br>
rules-users mailing list<br>
<a href="mailto:rules-users@lists.jboss.org" target="_blank">rules-users@lists.jboss.org</a><br>
<a href="https://lists.jboss.org/mailman/listinfo/rules-users" target="_blank">https://lists.jboss.org/mailman/listinfo/rules-users</a><br>
<br></blockquote></div><br>
<br>_______________________________________________<br>
rules-users mailing list<br>
<a href="mailto:rules-users@lists.jboss.org">rules-users@lists.jboss.org</a><br>
<a href="https://lists.jboss.org/mailman/listinfo/rules-users" target="_blank">https://lists.jboss.org/mailman/listinfo/rules-users</a><br>
<br></blockquote></div><br></div>