<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
  <meta content="text/html;charset=ISO-8859-1" http-equiv="Content-Type">
</head>
<body bgcolor="#ffffff" text="#000000">
you didn't have a dollar on the field binding:<br>
<font face="Times New Roman" size="3"><span style="font-size: 12pt;"
 lang="EN">Parent( h :
height &nbsp;) <br>
<br>
$ is optional, but you must use the same in all places.<br>
<br>
Mark<br>
</span></font>Manukyan, Sergey wrote:
<blockquote
 cite="mid:4E03EDD62CB1CB4599E6BD71DBEDFD200297879C@usmitry-exm1.corp.lear.com"
 type="cite">
  <meta http-equiv="Content-Type" content="text/html; ">
  <meta name="Generator" content="Microsoft Word 11 (filtered)">
  <style>
<!--
 /* 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>
  <div class="Section1">
  <p class="MsoNormal"><font color="navy" face="Arial" size="2"><span
 style="font-size: 10pt; font-family: Arial; color: navy;">Folks,</span></font></p>
  <p class="MsoNormal"><font color="navy" face="Arial" size="2"><span
 style="font-size: 10pt; font-family: Arial; color: navy;">&nbsp;</span></font></p>
  <p class="MsoNormal"><font color="navy" face="Arial" size="2"><span
 style="font-size: 10pt; font-family: Arial; color: navy;">Using 4.0.
Think I found a bug in
accumulate. The variables defined inside </span></font><strong><b><font
 face="Times New Roman"><span lang="EN">&lt;source pattern&gt;</span></font></b></strong><span
 lang="EN"> cannot be recognized inside of other parts of accumulate
(action, result)</span></p>
  <p class="MsoNormal"><font face="Times New Roman" size="3"><span
 style="font-size: 12pt;" lang="EN">&nbsp;</span></font></p>
  <p class="MsoNormal"><font face="Times New Roman" size="3"><span
 style="font-size: 12pt;" lang="EN">f.e.</span></font></p>
  <p class="MsoNormal"><font face="Times New Roman" size="3"><span
 style="font-size: 12pt;" lang="EN">&nbsp;</span></font></p>
  <p class="MsoNormal"><font face="Times New Roman" size="3"><span
 style="font-size: 12pt;" lang="EN">rule &#8230;</span></font></p>
  <p class="MsoNormal"><font face="Times New Roman" size="3"><span
 style="font-size: 12pt;" lang="EN">&nbsp;&nbsp;&nbsp; when </span></font></p>
  <p class="MsoNormal"><font face="Times New Roman" size="3"><span
 style="font-size: 12pt;" lang="EN">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; o : Date from
accumulate ( &nbsp;</span></font></p>
  <p class="MsoNormal" style="margin-left: 1in; text-indent: 0.5in;"><font
 face="Times New Roman" size="3"><span style="font-size: 12pt;"
 lang="EN"><big>Parent( h :
height &nbsp;) </big>,</span></font></p>
  <p class="MsoNormal" style="margin-left: 1in; text-indent: 0.5in;"><font
 face="Times New Roman" size="3"><span style="font-size: 12pt;"
 lang="EN">init(;),</span></font></p>
  <p class="MsoNormal" style="margin-left: 1in; text-indent: 0.5in;"><font
 face="Times New Roman" size="3"><span style="font-size: 12pt;"
 lang="EN">action(;),</span></font></p>
  <p class="MsoNormal" style="margin-left: 1in; text-indent: 0.5in;"><font
 face="Times New Roman" size="3"><span style="font-size: 12pt;"
 lang="EN">reverse(),</span></font></p>
  <p class="MsoNormal" style="margin-left: 1in; text-indent: 0.5in;"><font
 face="Times New Roman" size="3"><span style="font-size: 12pt;"
 lang="EN">result( $h )</span></font></p>
  <p class="MsoNormal" style="margin-left: 1in; text-indent: 0.5in;"><font
 face="Times New Roman" size="3"><span style="font-size: 12pt;"
 lang="EN">)</span></font></p>
  <p class="MsoNormal"><font face="Times New Roman" size="3"><span
 style="font-size: 12pt;" lang="EN">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; then &#8230;</span></font></p>
  <p class="MsoNormal"><font face="Times New Roman" size="3"><span
 style="font-size: 12pt;" lang="EN">end</span></font></p>
  <p class="MsoNormal"><font face="Times New Roman" size="3"><span
 style="font-size: 12pt;" lang="EN">&nbsp;</span></font></p>
  <p class="MsoNormal"><font face="Times New Roman" size="3"><span
 style="font-size: 12pt;" lang="EN">&nbsp;</span></font></p>
  <p class="MsoNormal"><font face="Times New Roman" size="3"><span
 style="font-size: 12pt;" lang="EN">Produces : </span></font><font
 color="red" face="Courier New" size="2"><span
 style="font-size: 10pt; font-family: &quot;Courier New&quot;; color: red;">$h
cannot be resolved</span></font></p>
  <p class="MsoNormal"><font face="Times New Roman" size="3"><span
 style="font-size: 12pt;" lang="EN">&nbsp;</span></font></p>
  <p class="MsoNormal"><font face="Times New Roman" size="3"><span
 style="font-size: 12pt;" lang="EN">&nbsp;</span></font></p>
  <p class="MsoNormal"><font face="Times New Roman" size="3"><span
 style="font-size: 12pt;" lang="EN">Stack trace:</span></font></p>
  <p class="MsoNormal"><font face="Times New Roman" size="3"><span
 style="font-size: 12pt;" lang="EN">&nbsp;</span></font></p>
  <p class="MsoNormal" style=""><font face="Courier New" size="2"><span
 style="font-size: 10pt; font-family: &quot;Courier New&quot;;">&nbsp;</span></font></p>
  <p class="MsoNormal" style=""><font color="red" face="Courier New"
 size="2"><span
 style="font-size: 10pt; font-family: &quot;Courier New&quot;; color: red;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
at org.drools.rule.Package.checkValidity(</span></font><u><font
 color="navy" face="Courier New" size="2"><span
 style="font-size: 10pt; font-family: &quot;Courier New&quot;; color: navy;">Package.java:408</span></font></u><font
 color="red" face="Courier New" size="2"><span
 style="font-size: 10pt; font-family: &quot;Courier New&quot;; color: red;">)</span></font></p>
  <p class="MsoNormal" style=""><font color="red" face="Courier New"
 size="2"><span
 style="font-size: 10pt; font-family: &quot;Courier New&quot;; color: red;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
at org.drools.common.AbstractRuleBase.addPackage(</span></font><u><font
 color="navy" face="Courier New" size="2"><span
 style="font-size: 10pt; font-family: &quot;Courier New&quot;; color: navy;">AbstractRuleBase.java:288</span></font></u><font
 color="red" face="Courier New" size="2"><span
 style="font-size: 10pt; font-family: &quot;Courier New&quot;; color: red;">)</span></font></p>
  <p class="MsoNormal"><font color="red" face="Courier New" size="2"><span
 style="font-size: 10pt; font-family: &quot;Courier New&quot;; color: red;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
at
com.lear.rules.RuleBaseFacade.getRuleBase(</span></font><u><font
 color="navy" face="Courier New" size="2"><span
 style="font-size: 10pt; font-family: &quot;Courier New&quot;; color: navy;">RuleBaseFacade.java:46</span></font></u><font
 color="red" face="Courier New" size="2"><span
 style="font-size: 10pt; font-family: &quot;Courier New&quot;; color: red;">)</span></font></p>
  <p class="MsoNormal"><font color="red" face="Courier New" size="2"><span
 style="font-size: 10pt; font-family: &quot;Courier New&quot;; color: red;">&nbsp;</span></font></p>
  <p class="MsoNormal"><font color="red" face="Courier New" size="2"><span
 style="font-size: 10pt; font-family: &quot;Courier New&quot;; color: red;">&nbsp;</span></font></p>
  <p class="MsoNormal"><font face="Times New Roman" size="3"><span
 style="font-size: 12pt;" lang="EN">&nbsp;</span></font></p>
  <p class="MsoNormal"><font face="Times New Roman" size="3"><span
 style="font-size: 12pt;" lang="EN">-Sergey</span></font></p>
  <p class="MsoNormal"><font face="Times New Roman" size="3"><span
 style="font-size: 12pt;" lang="EN">&nbsp;</span></font></p>
  <p class="MsoNormal"><font face="Times New Roman" size="3"><span
 style="font-size: 12pt;" lang="EN">&nbsp;</span></font></p>
  <p class="MsoNormal"><font color="navy" face="Arial" size="2"><span
 style="font-size: 10pt; font-family: Arial; color: navy;">&nbsp;</span></font></p>
  </div>
  <table>
    <tbody>
      <tr>
        <td bgcolor="#ffffff"><font color="#000000">**********************<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>
        </font></td>
      </tr>
    </tbody>
  </table>
  <pre wrap="">
<hr size="4" width="90%">
_______________________________________________
rules-users mailing list
<a class="moz-txt-link-abbreviated" href="mailto:rules-users@lists.jboss.org">rules-users@lists.jboss.org</a>
<a class="moz-txt-link-freetext" href="https://lists.jboss.org/mailman/listinfo/rules-users">https://lists.jboss.org/mailman/listinfo/rules-users</a>
  </pre>
</blockquote>
<br>
</body>
</html>