[rules-users] Problem with updated facts

David Sinclair dsinclair at chariotsolutions.com
Wed Mar 11 13:27:12 EDT 2009


Is the fact updated via another rule? If so, can u post full definitions of
both rules?

On Wed, Mar 11, 2009 at 11:58 AM, thomas moncieu
<thomas.moncieu at gmail.com>wrote:

> Hi,
> I have a problem when updating fields in rules :
>
> Here's the rule :
>
> when
> t : Bill($amount : totalAmount,  totalAmount > (new
> Double(150.0).doubleValue()));
> then
> System.out.println("tot : " + $tot);
> end
>
> The original totalAmount  is 200.
> A fact update sets the totalAmount at 100 (with an update of the facthandle
> that I can see in the debugger of the working memory) so the condition of
> the rule does not be true.
> Nevertheless, the System.out is made and prints 100.
>
> I use Statefull session and set shadow facts to true.
>
> Thanks for helping me !
>
> _______________________________________________
> rules-users mailing list
> rules-users at lists.jboss.org
> https://lists.jboss.org/mailman/listinfo/rules-users
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.jboss.org/pipermail/rules-users/attachments/20090311/095473fe/attachment.html 


More information about the rules-users mailing list