[jboss-jira] [JBoss JIRA] (DROOLS-1741) Using a function in nested objects
R D (JIRA)
issues at jboss.org
Fri Sep 22 08:00:00 EDT 2017
[ https://issues.jboss.org/browse/DROOLS-1741?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
R D updated DROOLS-1741:
------------------------
Attachment: Compilation_error.PNG
> 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, 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)
More information about the jboss-jira
mailing list