[rules-users] in 4.0.1 "this" required in nested accessors?

Manukyan, Sergey SManukyan at lear.com
Tue Sep 4 14:57:23 EDT 2007


Also,

Just found,

In nested acessors the order has meaning?

f.e.

TestSupplier(this.testBusiness.statusActive == oldStatus)  --> OK!
TestSupplier(oldStatus = this.testBusiness.statusActive)  --> FAILED TO
COMPILE!


Bug ???

-Sergey





-----Original Message-----
From: rules-users-bounces at lists.jboss.org
[mailto:rules-users-bounces at lists.jboss.org] On Behalf Of Manukyan,
Sergey
Sent: Tuesday, September 04, 2007 2:44 PM
To: Rules Users List
Subject: [rules-users] in 4.0.1 "this" required in nested accessors?


Edson,

Didn't receive reply on my previous post.

Please take a look, below is the copy of the post:

---------------

I started using 4.0.1,

Regarding nested accessors, looks like they work, but they require to
put "this" at the beginning.

So rule

when
TestSupplier(testBusiness.statusActive == true)  --> FAILS

When
TestSupplier(this.testBusiness.statusActive == true)  --> OK!

It fails with the following exception:

org.drools.rule.InvalidRulePackage: Unable to determine the used
declarations : [Rule name=MY_RULE, agendaGroup=MAIN, salience=10,
no-loop=false]

	at org.drools.rule.Package.checkValidity(Package.java:419)


Please confirm this to be a bug and then I will open JIRA for this, or
please let me know the reason behind this functionality,

Thanks,

-Sergey


**********************
** LEGAL DISCLAIMER **
**********************

This E-mail message and any attachments may contain 
legally privileged, confidential or proprietary 
information. If you are not the intended recipient(s),
or the employee or agent responsible for delivery of 
this message to the intended recipient(s), you are 
hereby notified that any dissemination, distribution 
or copying of this E-mail message is strictly 
prohibited. If you have received this message in 
error, please immediately notify the sender and 
delete this E-mail message from your computer.

_______________________________________________
rules-users mailing list
rules-users at lists.jboss.org
https://lists.jboss.org/mailman/listinfo/rules-users




More information about the rules-users mailing list