Bug 748741

Summary: Operator isA is not working
Product: [JBoss] JBoss Enterprise BRMS Platform 5 Reporter: Tomas Schlosser <tschloss>
Component: BRE (Expert, Fusion)Assignee: Nobody <nobody>
Status: VERIFIED --- QA Contact: Lukáš Petrovický <lpetrovi>
Severity: medium Docs Contact:
Priority: unspecified    
Version: BRMS 5.3.0.GACC: mproctor
Target Milestone: ---   
Target Release: BRMS 5.3.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:
Attachments:
Description Flags
Simple reproducer none

Description Tomas Schlosser 2011-10-25 08:46:38 UTC
Created attachment 530031 [details]
Simple reproducer

Description of problem:
If I try to use isA operator the condition is always evaluated to false.

Version-Release number of selected component (if applicable):
BRMS-5.3.0.dev4

How reproducible:
Every time

Steps to Reproduce:
1. run attached reproducer
  
Actual results:
Starting execution...
Student is attending Masaryk University
Finished...

Expected results:
Starting execution...
Student is attending Masaryk University
Person is a student: <result of toString method>
Finished...

Additional info:

Comment 2 Edson Tirelli 2012-02-01 18:37:05 UTC
There was a problem in the provided test case, as it was missing the update() call after donning the trait in the first rule's consequence. 

After fixing the test, everything is working. I added it to the codebase:

https://github.com/droolsjbpm/drools/commit/be473a65b185031dc68260e4d5a80a2459e5dceb#L1R1044

https://github.com/droolsjbpm/drools/commit/be473a65b185031dc68260e4d5a80a2459e5dceb#L2R1

Comment 3 Ryan Zhang 2012-02-15 09:13:03 UTC
Please verify the issue on 5.3 ER4.

Comment 4 Tomas Schlosser 2012-02-22 11:59:22 UTC
I have fixed our test as well and it works now.