[rules-users] How to use contains with a function

Vincent Legendre vincent.legendre at eurodecision.com
Wed Nov 23 10:55:38 EST 2011


I think this could work :
> *rule*"verify time"
> *when*
>             $now: java.util.Date() from getTimeByID(ETimeID.NOW)
>             $tc: TaskContext(times *contains*$now)
> *then*
> //something
> *end*

or an eval :
> *rule*"verify time"
> *when*
>             $tc: TaskContext(eval( 
> this.getTimes().*contains*(getTimeByID(ETimeID.NOW)) ))
> *then*
> //something
> *end*

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


More information about the rules-users mailing list