[rules-users] Need Syntax help for a string match
Mauricio Salatino
salaboy at gmail.com
Tue Nov 17 15:50:42 EST 2009
I think that you can do something like:
m : Customer( age == "18" || =="21" || =="33" || =="28" || =="40" || =="41")
2009/11/17 Lindy hagan <lindyhagan at gmail.com>
>
> Need to do some tasks if customers age is in 18,21,33,28,40,41. Can't use
> contains as age is a string value.Could any one help me out. Below rule does
> not work.
>
>
> rule "Age Factor"
> when
> m : Customer( age matches "18,21,33,28,40,41")
> then
> System.out.println("Customer falls in age group ");
> doAgeTasks();
> end
>
> Thanks,
> Lindy.
>
> _______________________________________________
> rules-users mailing list
> rules-users at lists.jboss.org
> https://lists.jboss.org/mailman/listinfo/rules-users
>
>
--
- http://salaboy.wordpress.com
- http://www.jbug.com.ar
- Salatino "Salaboy" Mauricio -
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.jboss.org/pipermail/rules-users/attachments/20091117/66a24710/attachment.html
More information about the rules-users
mailing list