Red Hat Bugzilla – Bug 967441
Query doesn't work without other queries defined
Last modified: 2014-08-06 16:17:44 EDT
Description of problem:
When there is a query with temporal operator in dlr file and no other queries are defined in same file, query doesn't return required results.
Version-Release number of selected component (if applicable):
Pull request #201 submited in Drools.
Steps to Reproduce:
1. Write a simple test with one KieSession and two SessionEntryPoints. Into first SessionEntryPoint insert Event at time 0s. Into second SessionEntryPoint insert three event at times 0s, 10s and 20s.
2. Make a drl file with one query, which should returns events from second SessionEntryPoint with time in interval <0s, 9s> after event from first SessionEntryPoint.
3. Run Test.
Zero events are returned.
There should be one event with time 0s.
If more queries are defined, result is correctly one event with time 0s.
I couldn't reproduce this issue on the master. I am assuming that it has been fixed by a previous commit. I added a unit test to demonstrate that it is working now: https://github.com/droolsjbpm/drools/commit/f6f4543ef
Verified on BRMS 6.0.0.ER5.