Hide Forgot
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:
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.