tkobayas opened a new issue, #6010:
URL: https://github.com/apache/incubator-kie-drools/issues/6010

   When using the Drools executable model (pre-compiled) to execute an 
expression of a Date being between two other Dates like `DateHolder( date < 
$startDate && date > $endDate)`, the related rule does not fire when the date 
value is actually between the two Date constants. Note that `$startDate` and 
`$endDate` are globals.
   
   Switching the order of the greater or less than statements does not fix the 
issue.  Using inclusive between (<= and >=) does not solve the issue for date 
field values (non-inclusively) between the dates.
   
   However if the expression is changed to "DateHolder( date < $startDate && > 
$endDate)" it does fire as expected.
   
   I have not checked to see if this issue effects other data types like long 
or int. 
   
   Also when using the DRL files directly (= non-executable model) in the 
drools engine, this issue does not occur.
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to