Thanks! I converted over to these and my tests are all passing so far.
Examples (snippets):
// > one day old
when
$step : Step(status == Status.ACTIVE, task.job.statuteOfLimitationsDate !=
null)
Date($now : time) from Calendar.getInstance().getTime()
Date($solDate : time before[1d] $now) from
$step.task.job.statuteOfLimitationsDate
// > 13 hours old
when
$step : Step(status == Status.ACTIVE)
Date($now : time) from Calendar.getInstance().getTime()
$checkpointTO : ArrayList(size > 0) from collect (cp : CheckPoint(type ==
CheckPointType.ABCOffice, created before[13h] $now) from
$step.getCheckPoints() )
--
View this message in context:
http://drools.46999.n3.nabble.com/rules-users-Date-arithmetic-in-when-par...
Sent from the Drools: User forum mailing list archive at
Nabble.com.