| 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.GA | CC: | 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: |
|
||||||
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 Please verify the issue on 5.3 ER4. I have fixed our test as well and it works now. |
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: