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

Manukyan, Sergey SManukyan at lear.com
Tue Sep 4 15:45:54 EDT 2007


Sorry... Yes it is a typo

 

________________________________

From: rules-users-bounces at lists.jboss.org
[mailto:rules-users-bounces at lists.jboss.org] On Behalf Of Edson Tirelli
Sent: Tuesday, September 04, 2007 3:24 PM
To: Rules Users List
Subject: Re: [rules-users] in 4.0.1 "this" required in nested accessors?

 


   Is the single '=' a typo?

2007/9/4, Manukyan, Sergey <SManukyan at lear.com>:

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 

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




-- 
  Edson Tirelli
  Software Engineer - JBoss Rules Core Developer
  Office: +55 11 3529-6000
  Mobile: +55 11 9287-5646 
  JBoss, a division of Red Hat @ www.jboss.com 

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.jboss.org/pipermail/rules-users/attachments/20070904/c0c5c4fa/attachment.html 


More information about the rules-users mailing list