Red Hat Bugzilla – Bug 980466
Live queries are not live when fireAllRules() is not called
Last modified: 2013-09-02 06:54:06 EDT
Description of problem:
With Phreak, live queries require calling fireAllRules() to produce correct results. This is quite confusing, has it been designed to work this way?
If this behaviour was not anticipated, and this is really a bug, I will attach a reproducer.
Version-Release number of selected component (if applicable):
This is how phreak is expected to work. The correct way to use this, is to setup a Runnable that calls fireAllRules every x seconds. This is a performance related aspect too, as it also allows the engine to exploit batching and the user to get control of the regularity of the batch eval.
Confirmed that this is the expected behaviour.