[
https://issues.jboss.org/browse/DROOLS-1741?page=com.atlassian.jira.plugi...
]
R D updated DROOLS-1741:
------------------------
Description:
I am working with a project with nested objects.
I have a rule in which I need to make use of a function. If I use this function on a
variable in a nested object it does not work (I get a compilation error):
Using the nested object accessor approach (compilation error "Unable to Analyse
Expression"):
ObjectA( objectB. ( (someFunction(someVariable)) == 0 ) )
EDIT: The same compilation error occurs as well when just using a more complex operation
on variables in nested objects as well (updated project on GitHub):
ObjectA( objectB. ( (someVariable == 0 || someVariable == 1 ) || (someVariable
> -1 || someVariable < 2 )) )
was:
I am working with a project with nested objects.
I have a rule in which I need to make use of a function. If I use this function on a
variable in a nested object it does not work (I get a compilation error):
Using the nested object accessor approach (compilation error "Unable to Analyse
Expression"):
ObjectA( objectB. ( (someFunction(someVariable)) == 0 ) )
Using a function in nested objects
----------------------------------
Key: DROOLS-1741
URL:
https://issues.jboss.org/browse/DROOLS-1741
Project: Drools
Issue Type: Bug
Components: core engine
Affects Versions: 6.5.0.Final
Environment: Drools 6.5.0.Final
JDK 1.8
Reporter: R D
Assignee: Mario Fusco
Priority: Minor
Attachments: Compilation_error.PNG
I am working with a project with nested objects.
I have a rule in which I need to make use of a function. If I use this function on a
variable in a nested object it does not work (I get a compilation error):
Using the nested object accessor approach (compilation error "Unable to Analyse
Expression"):
ObjectA( objectB. ( (someFunction(someVariable)) == 0 ) )
EDIT: The same compilation error occurs as well when just using a more complex operation
on variables in nested objects as well (updated project on GitHub):
ObjectA( objectB. ( (someVariable == 0 || someVariable == 1 ) || (someVariable
> -1 || someVariable < 2 )) )
--
This message was sent by Atlassian JIRA
(v7.2.3#72005)