[rules-users] how to restore the knowledgeBase when newly created kb has compilationFailed error

bhochhi bhochhi at aol.com
Fri Dec 20 14:35:24 EST 2013


Thanks for the reply, so far from documentation, I believe
"newInstance"=true(default) replaces the old kb as a whole and =false will
update the existing kb. But I didn't see anywhere explaining that if there
is a compilation error on rules, it will not update the kb. And I verified.
It updates the kb. I don't know if that is expected or bugs in this version.

Anyway, I found the workthrough by assigning the kb to the variable and
update it only if there is not resourceCompilationFailed using
knowledgeBaseUpdated event on KnowledgeAgentEventListener. 

Anyway, thanks for your help.



--
View this message in context: http://drools.46999.n3.nabble.com/how-to-restore-the-knowledgeBase-when-newly-created-kb-has-compilationFailed-error-tp4027387p4027389.html
Sent from the Drools: User forum mailing list archive at Nabble.com.


More information about the rules-users mailing list