Wouldn&#39;t you just use the single parameter form?<br><br><p class="MsoNormal">$order : DrugOrder((start != null &amp;&amp; start before $now), (stop == null || stop after[-7d] $now))</p><br>I&#39;m not the CEP expert though - I know we don&#39;t support &quot;*&quot; in Guvnor&#39;s guided editors though.<br>
<br><div class="gmail_quote">2011/6/13 Nathan Bell <span dir="ltr">&lt;<a href="mailto:Nathan.Bell@pharmacyonesource.com">Nathan.Bell@pharmacyonesource.com</a>&gt;</span><br><blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">
<div link="blue" vlink="purple" lang="EN-US"><div><p class="MsoNormal">In 5.1 this was valid syntax:</p><p class="MsoNormal"> </p><p class="MsoNormal">rule &quot;OrderActiveInLast7Days&quot;</p><p class="MsoNormal">when</p>
<p class="MsoNormal">                $order : DrugOrder((start != null &amp;&amp; start before $now), (stop == null || stop after[-7d,*] $now))</p><p class="MsoNormal">then</p><p class="MsoNormal">                #stuff</p>
<p class="MsoNormal">end</p><p class="MsoNormal"> </p><p class="MsoNormal"> </p><p class="MsoNormal">In 5.2.0.CR1 it complains about the asterisk. Is that no longer supported?</p><p class="MsoNormal"> </p><p class="MsoNormal">
The error I get is “no viable alternative at input &#39;(&#39; in rule &quot;OrderActiveInLast7Days&quot;”. If I remove the part of the constraint in brackets “[-7d,*]” then it compiles.</p><p class="MsoNormal"> </p><p class="MsoNormal">
 </p><p class="MsoNormal">Thank You,</p><p class="MsoNormal"> </p><font color="#888888"><p class="MsoNormal">Nathan Bell</p><p class="MsoNormal"> </p><p class="MsoNormal"> </p></font></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>