[rules-users] Is asterisk no longer valid in temporal constaints?

Nathan Bell Nathan.Bell at pharmacyonesource.com
Mon Jun 13 17:30:33 EDT 2011


In 5.1 this was valid syntax:

 

rule "OrderActiveInLast7Days"

when

                $order : DrugOrder((start != null && start before $now),
(stop == null || stop after[-7d,*] $now))

then

                #stuff

end

 

 

In 5.2.0.CR1 it complains about the asterisk. Is that no longer
supported?

 

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.

 

 

Thank You,

 

Nathan Bell

 

 

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.jboss.org/pipermail/rules-users/attachments/20110613/be2b8f4f/attachment.html 


More information about the rules-users mailing list