<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns="http://www.w3.org/TR/REC-html40">

<head>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=us-ascii">
<meta name=Generator content="Microsoft Word 12 (filtered medium)">
<style>
<!--
 /* Font Definitions */
 @font-face
        {font-family:"Cambria Math";
        panose-1:2 4 5 3 5 4 6 3 2 4;}
@font-face
        {font-family:Calibri;
        panose-1:2 15 5 2 2 2 4 3 2 4;}
@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:0cm;
        margin-bottom:.0001pt;
        font-size:12.0pt;
        font-family:"Times New Roman","serif";}
a:link, span.MsoHyperlink
        {mso-style-priority:99;
        color:blue;
        text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
        {mso-style-priority:99;
        color:purple;
        text-decoration:underline;}
span.EmailStyle17
        {mso-style-type:personal-reply;
        font-family:"Calibri","sans-serif";
        color:#1F497D;}
.MsoChpDefault
        {mso-style-type:export-only;}
@page Section1
        {size:612.0pt 792.0pt;
        margin:72.0pt 72.0pt 72.0pt 72.0pt;}
div.Section1
        {page:Section1;}
-->
</style>
<!--[if gte mso 9]><xml>
 <o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
 <o:shapelayout v:ext="edit">
  <o:idmap v:ext="edit" data="1" />
 </o:shapelayout></xml><![endif]-->
</head>

<body lang=EN-CA link=blue vlink=purple>

<div class=Section1>

<p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";
color:#1F497D'>Are you trying to update the grossAmount propery of the LineItem
class? Perhaps it&#8217;s as simple as:<o:p></o:p></span></p>

<p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";
color:#1F497D'><o:p>&nbsp;</o:p></span></p>

<p class=MsoNormal>rule &quot;split line item&quot;<br>
when<br>
&nbsp;&nbsp;&nbsp; $item&nbsp; : LineItem( grossAmount &gt; 1000 ) <br>
then<o:p></o:p></p>

<p class=MsoNormal>&nbsp;&nbsp; &nbsp;$item.setGrossAmount(500);<o:p></o:p></p>

<p class=MsoNormal>&nbsp;&nbsp;&nbsp; // you may also wish to update the LineItem fact in
working memory if you want to trigger additional rules based on this update<br>
end<br>
<br>
<span style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'><o:p></o:p></span></p>

<p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";
color:#1F497D'><o:p>&nbsp;</o:p></span></p>

<div style='border:none;border-top:solid #B5C4DF 1.0pt;padding:3.0pt 0cm 0cm 0cm'>

<p class=MsoNormal><b><span lang=EN-US style='font-size:10.0pt;font-family:
"Tahoma","sans-serif"'>From:</span></b><span lang=EN-US style='font-size:10.0pt;
font-family:"Tahoma","sans-serif"'> rules-users-bounces@lists.jboss.org
[mailto:rules-users-bounces@lists.jboss.org] <b>On Behalf Of </b>Ashish Soni<br>
<b>Sent:</b> April-01-09 9:40 AM<br>
<b>To:</b> Rules Users List<br>
<b>Subject:</b> [rules-users] Rule Compilation error : The Field ... is not
visible<o:p></o:p></span></p>

</div>

<p class=MsoNormal><o:p>&nbsp;</o:p></p>

<p class=MsoNormal>Hi All , <br>
<br>
I am sure there must be a silly mistake but i am not able to find out , please
help me as what is wrong in below rule<br>
<br>
package Test<br>
import com.abc.api.document.Document<br>
import com.abc.api.line.LineItem<br>
<br>
rule &quot;split line item&quot;<br>
when<br>
&nbsp;&nbsp;&nbsp; $item&nbsp; : LineItem( grossAmount &gt; 1000 ) <br>
then<br>
&nbsp;&nbsp;&nbsp; modify( $item ) { grossAmount=500 };<br>
&nbsp;&nbsp; <br>
end<br>
<br>
<br>
11:35:23,318 ERROR [] Rule Compilation error : [Rule name='split line item']<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Test/Rule_split_line_item_0.java
(7:565) : <b>The field LineItem.grossAmount is not visible</b><br>
<br>
<br>
<br>
Thanks,<br>
Ashish<o:p></o:p></p>

</div>

</body>

</html>