Re: [rules-users] Object activiates same rule many times
Thanks to Wolfgang and Vincent in pointing the problem. Appreciated! -- View this message in context: http://drools.46999.n3.nabble.com/Object-activiates-same-rule-many-times-tp4000630p4004294.html Sent from the Drools: User forum mailing list archive at Nabble.com. ___ rules-users mailing list rules-users@lists.jboss.org https://lists.jboss.org/mailman/listinfo/rules-users
Re: [rules-users] Object activiates same rule many times
In the RHS of the rule, the function calling by insert only return ChargeDetailRefSeqEntity but not ChargeDetailEntity. That's why I think it is not the area causing recursive activation of the rule. Is that right? -- View this message in context: http://drools.46999.n3.nabble.com/Object-activiates-same-rule-many-times-tp4000563p4000596.html Sent from the Drools: User forum mailing list archive at Nabble.com. ___ rules-users mailing list rules-users@lists.jboss.org https://lists.jboss.org/mailman/listinfo/rules-users
Re: [rules-users] Object activiates same rule many times
Please post your complete question. I notice your original question is showing as not accepted on nabble. On 18 May 2012 10:39, Christina Lau lau.christ...@hit.com.hk wrote: In the RHS of the rule, the function calling by insert only return ChargeDetailRefSeqEntity but not ChargeDetailEntity. That's why I think it is not the area causing recursive activation of the rule. Is that right? -- View this message in context: http://drools.46999.n3.nabble.com/Object-activiates-same-rule-many-times-tp4000563p4000596.html Sent from the Drools: User forum mailing list archive at Nabble.com. ___ rules-users mailing list rules-users@lists.jboss.org https://lists.jboss.org/mailman/listinfo/rules-users ___ rules-users mailing list rules-users@lists.jboss.org https://lists.jboss.org/mailman/listinfo/rules-users
[rules-users] Object activiates same rule many times
Hi all, I find an odd pattern in the audit log. When an Object is inserted to the working memory, activation is created many times on same rule. The more objects are inserted, the duplicated activations are growing exponentially which degrade the performance a lot. Here attached part of the audit log: http://drools.46999.n3.nabble.com/file/n4000630/rule-DOCSEP-1337325521971.log rule-DOCSEP-1337325521971.log In the log, - when object (130) is inserted, rule C020 - Gate charge (Out M)-B is activiated 129 times. - when object (131) is inserted, rule C020 - Gate charge (Out M)-B is activiated 130 times. Here is the rule of C020 - Gate charge (Out M)-B, The insert in RHS only add ChargeDetailRefSeqEntity to working memory that I don't think it causes the recursive activation. And I'd already set no-loop to true. Does anyone offer some help here? Thank you very much, Christina -- View this message in context: http://drools.46999.n3.nabble.com/Object-activiates-same-rule-many-times-tp4000630.html Sent from the Drools: User forum mailing list archive at Nabble.com. ___ rules-users mailing list rules-users@lists.jboss.org https://lists.jboss.org/mailman/listinfo/rules-users
Re: [rules-users] Object activiates same rule many times
Please show the rule. Exponentially growing activations can be caused by rules where the same fact type is used more than once. You'll have to use constraints inhibiting useless duplications, e.g., when $a1: A() $a2: A(this != $a1 ) then -W On 18/05/2012, Christina Lau lau.christ...@hit.com.hk wrote: Hi all, I find an odd pattern in the audit log. When an Object is inserted to the working memory, activation is created many times on same rule. The more objects are inserted, the duplicated activations are growing exponentially which degrade the performance a lot. Here attached part of the audit log: http://drools.46999.n3.nabble.com/file/n4000630/rule-DOCSEP-1337325521971.log rule-DOCSEP-1337325521971.log In the log, - when object (130) is inserted, rule C020 - Gate charge (Out M)-B is activiated 129 times. - when object (131) is inserted, rule C020 - Gate charge (Out M)-B is activiated 130 times. Here is the rule of C020 - Gate charge (Out M)-B, The insert in RHS only add ChargeDetailRefSeqEntity to working memory that I don't think it causes the recursive activation. And I'd already set no-loop to true. Does anyone offer some help here? Thank you very much, Christina -- View this message in context: http://drools.46999.n3.nabble.com/Object-activiates-same-rule-many-times-tp4000630.html Sent from the Drools: User forum mailing list archive at Nabble.com. ___ rules-users mailing list rules-users@lists.jboss.org https://lists.jboss.org/mailman/listinfo/rules-users ___ rules-users mailing list rules-users@lists.jboss.org https://lists.jboss.org/mailman/listinfo/rules-users