[rules-users] Shadow Facts & update

Mark Proctor mproctor at codehaus.org
Mon Apr 28 10:12:48 EDT 2008


vdelbart wrote:
> Hello,
>
> for hibernate reason I disable shadow facts; however I have 'update' like
> this :
>
> rule "eeeee"
> when
>   ...
> then
>   obj.attr = "other";
>   update(obj);
> end
>
> and I can confirm, I have an "unpredictable behavior".
>
> Could I replace this sentence by this :
>
> rule "eeeee"
> when
>   ...
> then
>   retract(obj);
>   obj.attr = "other";
>   insert(obj);
> end
>
> thanks for your help,
>   
yes
> V.
>
>
>   
>  
>   




More information about the rules-users mailing list