Thanks Wolfgang, but setting the repeat-interval to 0 seems to have the same effect as omitting the repeat-interval [Tested in 5.1 &amp; 5.4].<div><br></div><div>Thanks Vincent, this seems to work. However I was hoping for a simpler solution :)</div>
<div><br></div><div>- Paul</div><br><div class="gmail_quote">On Wed, Jun 6, 2012 at 5:06 PM, Vincent LEGENDRE <span dir="ltr">&lt;<a href="mailto:vincent.legendre@eurodecision.com" target="_blank">vincent.legendre@eurodecision.com</a>&gt;</span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Yes of course ...<br>
Simpler this way ...<br>
<div class="im HOEnZb"><br>
----- Original Message -----<br>
From: &quot;Wolfgang Laun&quot; &lt;<a href="mailto:wolfgang.laun@gmail.com">wolfgang.laun@gmail.com</a>&gt;<br>
To: &quot;Rules Users List&quot; &lt;<a href="mailto:rules-users@lists.jboss.org">rules-users@lists.jboss.org</a>&gt;<br>
</div><div class="HOEnZb"><div class="h5">Sent: Mercredi 6 Juin 2012 18:02:40<br>
Subject: Re: [rules-users] Initial rule delay<br>
<br>
Try:<br>
   timer( int: &lt;initial&gt; 0 )<br>
-W<br>
<br>
On 06/06/2012, Paul R. &lt;<a href="mailto:reverselogic@gmail.com">reverselogic@gmail.com</a>&gt; wrote:<br>
&gt; Hi,<br>
&gt;<br>
&gt; I&#39;m looking for a way to delay a rules initial execution? In the following<br>
&gt; example, I would like to prevent the rule from firing when the first &quot;Foo&quot;<br>
&gt; event is inserted into the working memory.<br>
&gt;<br>
&gt; rule &quot;DelayTest&quot; when $n : Number() from accumulate( $f : Foo() over<br>
&gt; window:time(10s) count($f) ) then // bla end<br>
&gt;<br>
&gt; The timer attribute seems to almost support what I&#39;m looking for, i.e. it<br>
&gt; allows for an initial-delay to be specified; but if the repeat interval is<br>
&gt; omitted, it uses the initial delay as the repeat interval.<br>
&gt;<br>
&gt; timer ( int: &lt;initial delay&gt; &lt;repeat interval&gt;? )<br>
&gt;<br>
&gt; In my case I would like to block the execution of the rule for an<br>
&gt; &quot;initial-delay&quot; period, but after that time has elapsed the rule should<br>
&gt; fire when every time a new &quot;Foo&quot; event is inserted into the working memory.<br>
&gt; What is the recommended way to do this?<br>
&gt;<br>
&gt; Thanks &amp; Regards,<br>
&gt;<br>
&gt; Paul<br>
&gt;<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>
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>
</div></div></blockquote></div><br>