[rules-users] threw error java.lang.ClassCastException: org.drools.reteoo.FromNode$FromMemory cannot be cast to org.drools.reteoo.BetaMemory

mohdejaz74 mohdejaz74 at gmail.com
Wed May 8 13:57:58 EDT 2013


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.


More information about the rules-users mailing list