Wouldn't you just use the single parameter form?<br><br><p class="MsoNormal">$order : DrugOrder((start != null && start before $now), (stop == null || stop after[-7d] $now))</p><br>I'm not the CEP expert though - I know we don't support "*" in Guvnor's guided editors though.<br>
<br><div class="gmail_quote">2011/6/13 Nathan Bell <span dir="ltr"><<a href="mailto:Nathan.Bell@pharmacyonesource.com">Nathan.Bell@pharmacyonesource.com</a>></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 "OrderActiveInLast7Days"</p><p class="MsoNormal">when</p>
<p class="MsoNormal"> $order : DrugOrder((start != null && 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 '(' in rule "OrderActiveInLast7Days"”. 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>