I am unfamiliar with the &quot;date-effective&quot; attribute so will not comment.<div><br></div><div>However, regarding getting a r<span class="Apple-style-span" style="font-family: Arial; ">ule to run on a specified time every day, I would suggest use of an external scheduler (Windows Task Scheduler, CRON, Quartz etc) that invokes a process to trigger execution of the activations on the agenda (i.e. fireAllRules) at the specified time every day. It is important to remember that Rule activations are determined when Facts are inserted into WorkingMemory. The activations collect on the agenda and are executed when fireAllRules() is invoked. So you *could* perform your WorkingMemory actions (insert, update, retract etc) throughout the day and only trigger the resulting actions when you want. </span></div>
<div><span class="Apple-style-span" style="font-family: Arial; "><br></span></div><div><span class="Apple-style-span" style="font-family: Arial; ">If any of your Rules match temporal patterns you might be better moving to 5.1 and leveraging it&#39;s CEP facilities.</span></div>
<div><span class="Apple-style-span" style="font-family: Arial; "><br></span></div><div><span class="Apple-style-span" style="font-family: Arial; "><span class="Apple-style-span" style="font-family: arial; "><div><span class="Apple-style-span" style="font-family: Arial; ">It is difficult to say much more without understanding what you are trying to achieve.</span></div>
<div><span class="Apple-style-span" style="font-family: Arial; "><br></span></div></span></span></div><div><span class="Apple-style-span" style="font-family: Arial; ">With kind regards,</span></div><div><span class="Apple-style-span" style="font-family: Arial; "><br>
</span></div><div><span class="Apple-style-span" style="font-family: Arial; ">Mike</span></div><div><font class="Apple-style-span" face="Arial"><br></font><div class="gmail_quote">2010/9/29  <span dir="ltr">&lt;<a href="mailto:devyani.sapre@wipro.com">devyani.sapre@wipro.com</a>&gt;</span><br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">



<div>
<div><font face="Arial" size="2"><span>Hi All 
</span></font></div>
<div><font face="Arial" size="2"><span></span></font> </div>
<div><font face="Arial" size="2"><span>I am using 4.0. I 
have a requirement to execute a rule only during a specified time of a given 
day</span></font></div>
<div><font face="Arial" size="2"><span></span></font> </div>
<div><font face="Arial" size="2"><span>While going through 
the documentation I found that I could use the date-effective attribute to 
specify the date and time</span></font></div>
<div><font face="Arial" size="2"><span></span></font> </div>
<div><font size="2"><span>
<div lang="en">
<div>
<div>
<div>
<h4><a name="12b5c1f7b8fd728f_d0e3110"></a><em><font face="Arial">6.5.1.8. date-effective</font></em></h4></div></div></div>
<p><em><font face="Arial">default value : N/A</font></em></p>
<p><em><font face="Arial">type : String, which contains a Date/Time 
definition</font></em></p>
<p><em><font face="Arial">A rule can only activate if the current date and time is 
after date-effective attribute.</font></em></p>
<p><span><font face="Arial">But while trying out the 
same, the engine recognizes only the day and not the time. How do I specify the 
time? So far I have been using the std format HH:MM:SS , tried both 12-hr and 24 
-hr format but no luck. Please help.</font></span></p>
<p><span><font face="Arial">Also, I would like to know 
how can I make a rule run on a specified time everyday. With date-effective 
specifying a date would be mandatory? Is thr a way or I need to put that in the 
rule condition part.</font></span></p>
<p><span><font face="Arial"></font></span> </p>
<p><span><font face="Arial">Thanks</font></span></p>
<p><span><font face="Arial">Devyani</font></span></p></div></span></font></div><p><strong><span style="font-size:10.0pt;font-family:&quot;Palatino Linotype&quot;,&quot;serif&quot;;color:green"> Please do not print this email unless it is absolutely necessary. </span></strong><span></span></p>



<p> The information contained in this electronic message and any attachments to this message are intended for the exclusive use of the addressee(s) and may contain proprietary, confidential or privileged information. If you are not the intended recipient, you should not disseminate, distribute or copy this e-mail. Please notify the sender immediately and destroy all copies of this message and any attachments. </p>


<p>WARNING: Computer viruses can be transmitted via email. The recipient should check this email and any attachments for the presence of viruses. The company accepts no liability for any damage caused by any virus transmitted by this email. </p>

<p>
<a href="http://www.wipro.com" target="_blank">www.wipro.com</a>
</p>
</div>
<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>