[rules-users] Number of days beetween two dates
vdelbart
delbart.v at mipih.fr
Mon Oct 22 08:29:56 EDT 2007
Hi,
I have 2 dates and I want compare them in mvel coding.
example :
public class MyObject
{
Date nextDate;
Date previousDate;
}
a rule :
rule "example"
dialect "mvel"
when
$obj:MyObject( nextDate - previousDate > 30)
then
System.out.println($obj);
end
Of course, it doesn't work but maybe somebody have a solution ?
thanks,
V.
--
View this message in context: http://www.nabble.com/Number-of-days-beetween-two-dates-tf4670492.html#a13342153
Sent from the drools - user mailing list archive at Nabble.com.
More information about the rules-users
mailing list