[rules-users] DRL & Year of Date

Saleem Lakhani Saleem.Lakhani at citizensfla.com
Wed Aug 22 11:25:53 EDT 2007


Hi,

 

What is the best way of writing such a rule in drools 4.0 without using
eval ? In the following rule 'date' is a global variable for my own
dateUtil class and {year} is the variable I will pass.

 

brotherDOB != null, $brotherDOB : brotherDOB

 

eval(boy.getYearBorn() < (date.yearOfDate($brotherDOB)-{years}))

 

Saleem Lakhani

 

 

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


More information about the rules-users mailing list