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] Behavior change from Drools 3 to Drools 4 for sequential execution

2008-05-05 Thread Mark Proctor
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

Re: [rules-users] Can drools work in multithreaded environment?

2008-05-05 Thread Edson Tirelli
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