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-ClassCastExceptio...
Sent from the Drools: User forum mailing list archive at
Nabble.com.