you can write something like on knowledgebuidler
private void validateKnowledgeBuilder(KnowledgeBuilder knowledgeBuilder)
throws KnowledgeBuilderValidationException {
if (knowledgeBuilder.hasErrors()) {
for (KnowledgeBuilderError error : knowledgeBuilder.getErrors()) {
LOGGER.log(ZulaLevel.SEVERE, LogMessageIds.MSGID007, error
.getMessage());
}
throw new KnowledgeBuilderValidationException();
}
}
-----
Thanks...
Himansu
--
View this message in context:
http://drools.46999.n3.nabble.com/Guvnor-rule-validation-using-Java-Code-...
Sent from the Drools: User forum mailing list archive at
Nabble.com.