Details
-
Bug
-
Resolution: Done
-
Major
-
6.3.0.Final
-
None
-
-
NEW
-
NEW
Description
When I insert the PseudoClock as a global in my KieSession, and I use the clock in combination with a temporal operator in a rule, I get the following CCE:
Caused by: java.lang.ClassCastException: java.lang.Long cannot be cast to java.util.Date at org.drools.core.base.evaluators.BeforeEvaluatorDefinition$BeforeEvaluator.evaluate(BeforeEvaluatorDefinition.java:301) at org.drools.core.base.EvaluatorWrapper.evaluate(EvaluatorWrapper.java:94) ... 61 more
The interesting thing is that this line works:
$s: SimpleEvent(clock.currentTime after[300s] timestamp)
while this one fails:
$s: SimpleEvent(timestamp before[300s] clock.currentTime)
Reproducer can be found here: https://github.com/DuncanDoyle/drools-cce-issue
Just run 'mvn clean test'.