<html>

<head>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=us-ascii">
<meta name=Generator content="Microsoft Word 11 (filtered)">

<style>
<!--
 /* Font Definitions */
 @font-face
        {font-family:Tahoma;
        panose-1:2 11 6 4 3 5 4 4 2 4;}
 /* Style Definitions */
 p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0in;
        margin-bottom:.0001pt;
        font-size:12.0pt;
        font-family:"Times New Roman";}
a:link, span.MsoHyperlink
        {color:blue;
        text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
        {color:blue;
        text-decoration:underline;}
span.EmailStyle18
        {font-family:Arial;
        color:navy;}
@page Section1
        {size:8.5in 11.0in;
        margin:1.0in 1.25in 1.0in 1.25in;}
div.Section1
        {page:Section1;}
-->
</style>

</head>

<body lang=EN-US link=blue vlink=blue>

<div class=Section1>

<p class=MsoNormal><font size=2 color=navy face=Arial><span style='font-size:
10.0pt;font-family:Arial;color:navy'>Sorry&#8230; Yes it is a typo</span></font></p>

<p class=MsoNormal><font size=2 color=navy face=Arial><span style='font-size:
10.0pt;font-family:Arial;color:navy'>&nbsp;</span></font></p>

<div>

<div class=MsoNormal align=center style='text-align:center'><font size=3
face="Times New Roman"><span style='font-size:12.0pt'>

<hr size=2 width="100%" align=center tabindex=-1>

</span></font></div>

<p class=MsoNormal><b><font size=2 face=Tahoma><span style='font-size:10.0pt;
font-family:Tahoma;font-weight:bold'>From:</span></font></b><font size=2
face=Tahoma><span style='font-size:10.0pt;font-family:Tahoma'>
rules-users-bounces@lists.jboss.org
[mailto:rules-users-bounces@lists.jboss.org] <b><span style='font-weight:bold'>On
Behalf Of </span></b>Edson Tirelli<br>
<b><span style='font-weight:bold'>Sent:</span></b> Tuesday, September 04, 2007
3:24 PM<br>
<b><span style='font-weight:bold'>To:</span></b> Rules Users List<br>
<b><span style='font-weight:bold'>Subject:</span></b> Re: [rules-users] in
4.0.1 &quot;this&quot; required in nested accessors?</span></font></p>

</div>

<p class=MsoNormal><font size=3 face="Times New Roman"><span style='font-size:
12.0pt'>&nbsp;</span></font></p>

<p class=MsoNormal style='margin-bottom:12.0pt'><font size=3
face="Times New Roman"><span style='font-size:12.0pt'><br>
&nbsp;&nbsp; Is the single '=' a typo?</span></font></p>

<div>

<p class=MsoNormal><span class=gmailquote><font size=3 face="Times New Roman"><span
style='font-size:12.0pt'>2007/9/4, Manukyan, Sergey &lt;<a
href="mailto:SManukyan@lear.com">SManukyan@lear.com</a>&gt;:</span></font></span></p>

<p class=MsoNormal><font size=3 face="Times New Roman"><span style='font-size:
12.0pt'>Also,<br>
<br>
Just found,<br>
<br>
In nested acessors the order has meaning?<br>
<br>
f.e.<br>
<br>
TestSupplier(this.testBusiness.statusActive == oldStatus)&nbsp;&nbsp;--&gt; OK!<br>
TestSupplier(oldStatus = this.testBusiness.statusActive )&nbsp;&nbsp;--&gt;
FAILED TO<br>
COMPILE!<br>
<br>
<br>
Bug ???<br>
<br>
-Sergey<br>
<br>
<br>
<br>
<br>
<br>
-----Original Message-----<br>
From: <a href="mailto:rules-users-bounces@lists.jboss.org">rules-users-bounces@lists.jboss.org</a><br>
[mailto:<a href="mailto:rules-users-bounces@lists.jboss.org">rules-users-bounces@lists.jboss.org</a>]
On Behalf Of Manukyan,<br>
Sergey<br>
Sent: Tuesday, September 04, 2007 2:44 PM<br>
To: Rules Users List<br>
Subject: [rules-users] in 4.0.1 &quot;this&quot; required in nested accessors?<br>
<br>
<br>
Edson,<br>
<br>
Didn't receive reply on my previous post.<br>
<br>
Please take a look, below is the copy of the post:<br>
<br>
---------------<br>
<br>
I started using 4.0.1,<br>
<br>
Regarding nested accessors, looks like they work, but they require to<br>
put &quot;this&quot; at the beginning.<br>
<br>
So rule<br>
<br>
when<br>
TestSupplier(testBusiness.statusActive == true)&nbsp;&nbsp;--&gt; FAILS<br>
<br>
When<br>
TestSupplier(this.testBusiness.statusActive == true)&nbsp;&nbsp;--&gt; OK!<br>
<br>
It fails with the following exception:<br>
<br>
org.drools.rule.InvalidRulePackage: Unable to determine the used<br>
declarations : [Rule name=MY_RULE, agendaGroup=MAIN, salience=10, <br>
no-loop=false]<br>
<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;at
org.drools.rule.Package.checkValidity(Package.java:419)<br>
<br>
<br>
Please confirm this to be a bug and then I will open JIRA for this, or<br>
please let me know the reason behind this functionality, <br>
<br>
Thanks,<br>
<br>
-Sergey<br>
<br>
<br>
**********************<br>
** LEGAL DISCLAIMER **<br>
**********************<br>
<br>
This E-mail message and any attachments may contain<br>
legally privileged, confidential or proprietary <br>
information. If you are not the intended recipient(s),<br>
or the employee or agent responsible for delivery of<br>
this message to the intended recipient(s), you are<br>
hereby notified that any dissemination, distribution <br>
or copying of this E-mail message is strictly<br>
prohibited. If you have received this message in<br>
error, please immediately notify the sender and<br>
delete this E-mail message from your computer.<br>
<br>
_______________________________________________ <br>
rules-users mailing list<br>
<a href="mailto:rules-users@lists.jboss.org">rules-users@lists.jboss.org</a><br>
<a href="https://lists.jboss.org/mailman/listinfo/rules-users">https://lists.jboss.org/mailman/listinfo/rules-users
</a><br>
<br>
_______________________________________________<br>
rules-users mailing list<br>
<a href="mailto:rules-users@lists.jboss.org">rules-users@lists.jboss.org</a><br>
<a href="https://lists.jboss.org/mailman/listinfo/rules-users">https://lists.jboss.org/mailman/listinfo/rules-users</a></span></font></p>

</div>

<p class=MsoNormal><font size=3 face="Times New Roman"><span style='font-size:
12.0pt'><br>
<br clear=all>
<br>
-- <br>
&nbsp;&nbsp;Edson Tirelli<br>
&nbsp;&nbsp;Software Engineer - JBoss Rules Core Developer<br>
&nbsp;&nbsp;Office: +55 11 3529-6000<br>
&nbsp;&nbsp;Mobile: +55 11 9287-5646 <br>
&nbsp;&nbsp;JBoss, a division of Red Hat @ <a href="http://www.jboss.com">www.jboss.com</a>
</span></font></p>

</div>

</body>

</html>