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
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
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)
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
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