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