[rules-users] Rule Compilation error : The Field ... is not visible
Mauricio Salatino
salaboy at gmail.com
Wed Apr 1 11:57:07 EDT 2009
Are you using MVEL dialect or Java dialect?
if you are using Java Dialect you should try with:
modify( $item ) { setGrossAmount(500) }
2009/4/1 Ashish Soni <learnspring at gmail.com>
> Hi All ,
>
> 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
>
> package Test
> import com.abc.api.document.Document
> import com.abc.api.line.LineItem
>
> rule "split line item"
> when
> $item : LineItem( grossAmount > 1000 )
> then
> modify( $item ) { grossAmount=500 };
>
> end
>
>
> 11:35:23,318 ERROR [] Rule Compilation error : [Rule name='split line
> item']
> Test/Rule_split_line_item_0.java (7:565) : *The field
> LineItem.grossAmount is not visible*
>
>
>
> Thanks,
> Ashish
>
> _______________________________________________
> rules-users mailing list
> rules-users at lists.jboss.org
> https://lists.jboss.org/mailman/listinfo/rules-users
>
>
--
- Salatino Mauricio -
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.jboss.org/pipermail/rules-users/attachments/20090401/1de94da0/attachment.html
More information about the rules-users
mailing list