It hangs? Or the rule get executed once and again?
I don't see anything wrong with your rule. Are you sure you are not doing any update() od modify() inside your rule?
Can you share with us how are you creating and interacting with the knowledge base?

Best Regards,

XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX

Esteban Aliverti
- Developer @ http://www.plugtree.com
- Blog @ http://ilesteban.wordpress.com


2011/8/28 Neel <neeleshdev@yahoo.co.in>
Hi,
I'm using drools-5.3.0.Beta1. I've following rule definition:


import java.util.*;


declare Student

   name : String @key

   subjectGradeMap : HashMap   

end

 

rule "Subject grade points"

dialect "mvel"

when

   $u : Student()

then

   $u.subjectGradeMap["CompSc"] += 100;

   System.out.println("Marks added");

end


While executing RHS of above rule, fireAllRules() doesn't return, it hangs.

Please help.

Thanks,

Neel



_______________________________________________
rules-users mailing list
rules-users@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/rules-users