Thanks All.<br>I figured out the error and believe that it is because i didn&#39;t set the dialect , but still i feel the error is incorrect and believe the Engine should say No Dialect provided or it should default.<br><br>
Regards,<br>Ashish<br><br><br><div class="gmail_quote">2009/4/1 Dave Macpherson <span dir="ltr">&lt;<a href="mailto:dave@praxis-inc.com">dave@praxis-inc.com</a>&gt;</span><br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">









<div link="blue" vlink="purple" lang="EN-CA">

<div>

<p><span style="font-size: 11pt; color: rgb(31, 73, 125);">Are you trying to update the grossAmount propery of the LineItem
class? Perhaps it’s as simple as:</span></p><div class="im">

<p><span style="font-size: 11pt; color: rgb(31, 73, 125);"> </span></p>

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

</div><p>    $item.setGrossAmount(500);</p>

<p>    // 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: 11pt; color: rgb(31, 73, 125);"></span></p>

<p><span style="font-size: 11pt; color: rgb(31, 73, 125);"> </span></p>

<div style="border-style: solid none none; border-color: rgb(181, 196, 223) -moz-use-text-color -moz-use-text-color; border-width: 1pt medium medium; padding: 3pt 0cm 0cm;">

<p><b><span style="font-size: 10pt;" lang="EN-US">From:</span></b><span style="font-size: 10pt;" lang="EN-US"> <a href="mailto:rules-users-bounces@lists.jboss.org" target="_blank">rules-users-bounces@lists.jboss.org</a>
[mailto:<a href="mailto:rules-users-bounces@lists.jboss.org" target="_blank">rules-users-bounces@lists.jboss.org</a>] <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</span></p>

</div><div><div></div><div class="h5">

<p> </p>

<p>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>
    $item  : LineItem( grossAmount &gt; 1000 ) <br>
then<br>
    modify( $item ) { grossAmount=500 };<br>
   <br>
end<br>
<br>
<br>
11:35:23,318 ERROR [] Rule Compilation error : [Rule name=&#39;split line item&#39;]<br>
        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</p>

</div></div></div>

</div>


<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" target="_blank">https://lists.jboss.org/mailman/listinfo/rules-users</a><br>
<br></blockquote></div><br>