[
http://jira.jboss.com/jira/browse/JBRULES-1136?page=all ]
Sergey Manukyan updated JBRULES-1136:
-------------------------------------
Description:
Rule that use nested accessors in expressions don't fire. Although simple accessors
fire just fine:
For example :
when exists( TestSupplier( testBusinessStatus.active == true ) ) -> NEVER FIRES
when exists( TestSupplier( name == "TEST SUPPLIER" ) ) -> FIRES JUST FINE
I am using StatefulSession. Will attach the unit test to reproduce the problem.
Just found same issue happens in other construct like collect :
when ArrayList(size > 0) from collect(TestSupplier(testBusinessStatus.active == true))
->NEVER FIRES
was:
Rule that use nested accessors in expressions don't fire. Although simple accessors
fire just fine:
For example :
when exists( TestSupplier( testBusinessStatus.active == true ) ) -> NEVER FIRES
when exists( TestSupplier( name == "TEST SUPPLIER" ) ) -> FIRES JUST FINE
I am using StatefulSession. Will attach the unit test to reproduce the problem.
Rule not firing when expression contains nested accessors
---------------------------------------------------------
Key: JBRULES-1136
URL:
http://jira.jboss.com/jira/browse/JBRULES-1136
Project: JBoss Rules
Issue Type: Bug
Security Level: Public(Everyone can see)
Affects Versions: 4.0.0.GA
Environment: Wintel XP Pro SP2
Reporter: Sergey Manukyan
Assigned To: Mark Proctor
Attachments: action_rules.drl, RuleBaseFacade.java, TestBug.java,
TestBusinessStatus.java, TestSupplier.java
Rule that use nested accessors in expressions don't fire. Although simple accessors
fire just fine:
For example :
when exists( TestSupplier( testBusinessStatus.active == true ) ) -> NEVER FIRES
when exists( TestSupplier( name == "TEST SUPPLIER" ) ) -> FIRES JUST FINE
I am using StatefulSession. Will attach the unit test to reproduce the problem.
Just found same issue happens in other construct like collect :
when ArrayList(size > 0) from collect(TestSupplier(testBusinessStatus.active == true))
->NEVER FIRES
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
http://jira.jboss.com/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
http://www.atlassian.com/software/jira