Strange, but this works:
[when]A Policy=status : PolicyStatus(expiresOn : expiresOn)
[when]- expires within {n}
days=eval(expiresOn.compareTo(DateUtils.add(Calendar.DATE, DateUtils.now(),
{n})) <= 0)
Does that mean I have to bind all fields that are going to be used in evals
in subsequent field constraints?
--
View this message in context:
http://www.nabble.com/Field-constraint-and-eval-tf2495280.html#a6956725
Sent from the drools - user mailing list archive at Nabble.com.
---------------------------------------------------------------------
To unsubscribe from this list please visit:
http://xircles.codehaus.org/manage_email