No, there isn&#39;t - parameters of timer() must be constant values. But this can be solved using java.util.Timer with little additional effort.<br>-W<br><br><div class="gmail_quote">2011/8/17 Shannon Hastings <span dir="ltr">&lt;<a href="mailto:shannon.hastings@inventrio.com">shannon.hastings@inventrio.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 style="word-wrap: break-word;">Is there a way to write a rule in DRL that uses a timer or something that is dynamic.  I.E.  I want the time that rule waits to fire to be dependent on a variable such as below:<div>
<br></div><div><div style="margin: 0px; color: rgb(0, 142, 43);"><span style="color: rgb(170, 18, 14);">rule</span><span style="color: rgb(0, 0, 0);"> </span>&quot;CheckDoseMissed&quot;</div><div style="margin: 0px; color: rgb(170, 18, 14);">
<span style="color: rgb(0, 0, 0);"><span style="white-space: pre-wrap;">        </span></span>no-loop</div><div style="margin: 0px;">   <span style="white-space: pre-wrap;">        </span>timer(<span style="color: rgb(170, 18, 14);">int</span>: $eventA.sleepTime)</div>
<div style="margin: 0px; color: rgb(170, 18, 14);"><span style="color: rgb(0, 0, 0);"><span style="white-space: pre-wrap;">        </span></span>when</div><div style="margin: 0px;"><span style="white-space: pre-wrap;">                </span>$eventA  : MyEvent()</div>
<div style="margin: 0px;">………..</div><div style="margin: 0px;"><br></div><div>
<div>----------<br>Shannon Hastings<br>Inventrio<br><font color="#888888"><a href="mailto:shannon.hastings@inventrio.com" target="_blank">shannon.hastings@inventrio.com</a><br><a href="tel:%28614%29%20389-2795%20ext%3A%20101" value="+16143892795" target="_blank">(614) 389-2795 ext: 101</a><br>
<a href="http://www.inventrio.com/" target="_blank">http://www.inventrio.com</a></font></div><div><br></div><br>
</div>
<br></div></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>