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)
Drools 3.0.x never had a sequentail execution mode. What it had was an
attribute in the decision table tht would insert and order the salience
values automatically. The sequential execution mode in 4.0.x is vey
different and it changes the execution semantics of the engine.
http://downloads.jbo
Barath,
What version of drools are you using?
The drools rulebase is designed to be shared among multiple threads. The
working memory (session) is not.
Having said that, we had a couple bugs in the past regarding multi-thread
environments, and so you must use 4.0.7 version that is abo