[
https://issues.jboss.org/browse/DROOLS-577?page=com.atlassian.jira.plugin...
]
Edson Tirelli commented on DROOLS-577:
--------------------------------------
I did an initial investigation and the problem is that at runtime, Drools is injecting the
Rule instance as the variable "rule" into the MVEL context. This variable
shadows the property name and prevents the condition from succeeding.
I am discussing with Mark what the goal of that injection was and how to properly fix
this, because the variable is only injected at runtime, not compile time. So it isn't
available for use, because it fails compilation.
Meanwhile, a workaround is to reference the property explicitly by using the
"this" keyword:
Fired( this.rule == "my rule name" )
Filter doesn't work if object has "rule" as a
fieldname
-------------------------------------------------------
Key: DROOLS-577
URL:
https://issues.jboss.org/browse/DROOLS-577
Project: Drools
Issue Type: Bug
Security Level: Public(Everyone can see)
Affects Versions: 6.1.0.Final
Reporter: Wayne Price
Assignee: Mark Proctor
Priority: Minor
Engine seems not find objects when trying to filter based on a field name
"rule".
--
This message was sent by Atlassian JIRA
(v6.2.6#6264)