Re: [rules-users] Accumulate x No-loop

2008-05-06 Thread Alessandro Lazarotti
Ok Edson, it's working fine now! Thanks Alesssandro Edson Tirelli escreveu:     Hi Alessandro, just saw your e-mail and answered to you, but basically no-loop will not work for cases like this.     Either specify your constraints in a way they prevent the loop or use lock-on-active. rule

Re: [rules-users] Accumulate x No-loop

2008-05-05 Thread Edson Tirelli
Hi Alessandro, just saw your e-mail and answered to you, but basically no-loop will not work for cases like this. Either specify your constraints in a way they prevent the loop or use lock-on-active. rule "Nota final das questoes" when $qr : QuestionarioResposta( $nf : notaFinal

Re: [rules-users] Accumulate x No-loop

2008-05-05 Thread Alessandro Lazarotti
It's a bug? Alessandro Lazarotti escreveu: Sorry, my code is ugly in last email... This is more clean: rule "The Rule" no-loop true when questionarioResposta : QuestionarioResposta() $resultFinal : Number() from accumulate(QuestaoResposta($peso:questao.questaoPeso.peso)

Re: [rules-users] Accumulate x No-loop

2008-05-03 Thread Alessandro Lazarotti
Sorry, my code is ugly in last email... This is more clean: rule "The Rule" no-loop true when questionarioResposta : QuestionarioResposta() $resultFinal : Number() from accumulate(QuestaoResposta($peso:questao.questaoPeso.peso) fro

[rules-users] Accumulate x No-loop

2008-05-02 Thread Alessandro Lazarotti
Hi When I use accumulate and update, no-loop is ignored and the rule is recursive. Why? The Rule: rule "Nota final das questoes" no-loop true when questionarioResposta : QuestionarioResposta() $result : Number() from accumulate(QuestaoResposta($no