Bug 980466

Summary: Live queries are not live when fireAllRules() is not called
Product: [Retired] JBoss BRMS Platform 6 Reporter: Marek Winkler <mwinkler>
Component: BREAssignee: Mario Fusco <mfusco>
Status: CLOSED NOTABUG QA Contact: Marek Winkler <mwinkler>
Severity: high Docs Contact:
Priority: unspecified    
Version: 6.0.0CC: mfusco, rzhang
Target Milestone: ER2   
Target Release: 6.0.0   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2013-09-02 10:54:06 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Marek Winkler 2013-07-02 13:05:54 UTC
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):

Drools 6.0.0-SNAPSHOT
Drools 6.0.0.Beta4

Comment 1 Mario Fusco 2013-08-05 17:06:25 UTC
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.

Comment 2 Marek Winkler 2013-09-02 10:54:06 UTC
Confirmed that this is the expected behaviour.