I use KB methods directly For adding/updating a rule, I create a temporary instance of KnowledgeBuilder and add the rule to check if there are any errors.
If there are no errors, I first remove (if rule needs to be updated) the previous rule by calling this ... kb.removeRule(ro.pkg, ro.name); Then I add the new rule ... kb.addKnowledgePackages(kbuilder.getKnowledgePackages()); Ejaz -- View this message in context: http://drools.46999.n3.nabble.com/threw-error-java-lang-ClassCastException-org-drools-reteoo-FromNode-FromMemory-cannot-be-cast-to-orgy-tp4023497p4023733.html Sent from the Drools: User forum mailing list archive at Nabble.com. _______________________________________________ rules-users mailing list [email protected] https://lists.jboss.org/mailman/listinfo/rules-users
