Bug 726620

Summary: No difference between reactive and pull query
Product: [JBoss] JBoss Enterprise BRMS Platform 5 Reporter: Tomas Schlosser <tschloss>
Component: BRE (Expert, Fusion)Assignee: Mark Proctor <mproctor>
Status: VERIFIED --- QA Contact: Lukáš Petrovický <lpetrovi>
Severity: medium Docs Contact:
Priority: high    
Version: BRMS 5.2.0-ER1CC: atangrin, lpetrovi
Target Milestone: ---   
Target Release: BRMS 5.2.0.GA   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Bug Depends On: 732726    
Bug Blocks:    
Attachments:
Description Flags
Java class and DRL file to reproduce this bug none

Description Tomas Schlosser 2011-07-29 08:23:54 UTC
Created attachment 515840 [details]
Java class and DRL file to reproduce this bug

Description of problem:
When using reactive query (one without ?) the result is the same as with pull query (starting with ?) therefore the result is dependant on the ordering of inserted facts. To reproduce it run the test included.
  
Actual results (with BRMS-5.2.0-ER1):
Run#1 - insert place first

test1: ?contains1
  []

test2: contains1
  []

test3: ?contains2
  []

test4: contains2
  []


Run#2 - insert place last

test1: ?contains1
  [apple, table, fork, box, sweets]

test2: contains1
  [apple, table, fork, box, sweets]

test3: ?contains2
  [apple, table, fork, box, sweets]

test4: contains2
  [apple, table, fork, box, sweets]



Expected results (with Drools-5.3.0-SNAPSHOT):
Run#1 - insert place first

test1: ?contains1
  []

test2: contains1
  [apple, table]

test3: ?contains2
  []

test4: contains2
  [apple, table, fork, box]


Run#2 - insert place last

test1: ?contains1
  [apple, table, fork, box, sweets]

test2: contains1
  [apple, table, fork, box, sweets]

test3: ?contains2
  [apple, table, fork, box, sweets]

test4: contains2
  [apple, table, fork, box, sweets]

Comment 1 Mark Proctor 2011-09-19 08:02:53 UTC
This was fixed as part of all the BC fixes, see Bug732726.

Comment 2 Lukáš Petrovický 2011-09-19 08:06:47 UTC
Sending to QA.

Comment 3 Tomas Schlosser 2011-09-21 07:20:32 UTC
This bug is fixed in BRMS-5.2.0.ER4