Re: [rules-users] How to check for errors when creating a kBase using kAgent, kAgentConfiguration and kBaseConfiguration

2010-10-30 Thread Wolfgang Laun
2010/10/30 Tina Vießmann tviessm...@stud.hs-bremen.de And how do I catch the exceptions occurring while processing and executing the rules? From my home page http://members.inode.at/w.laun/: How to Implement Custom Consequence Exception

Re: [rules-users] How to check for errors when creating a kBase using kAgent, kAgentConfiguration and kBaseConfiguration

2010-10-30 Thread esteban.alive...@gmail.com
Remember that errors while processing the rules occur when you insert/update facts (when the LHS of the rules is evaluated). Using a ConsequenceExceptionHandler you will be able to catch only exception occurred in the RHS of the rules (when the activations are fired). Best,

Re: [rules-users] How to check for errors when creating a kBase using kAgent, kAgentConfiguration and kBaseConfiguration

2010-10-29 Thread esteban.alive...@gmail.com
Hi, If you are using 5.1 or greater, you can use a KnowledgeAgentEventListener to be notified when resource's compilation fails. You can create your own implementation of KnowledgeAgentEventListener, or you can use DefaultKnowledgeAgentEventListener and override just the methods you need:

Re: [rules-users] How to check for errors when creating a kBase using kAgent, kAgentConfiguration and kBaseConfiguration

2010-10-29 Thread Tina Vießmann
Thank you. :) And how do I catch the exceptions occurring while processing and executing the rules? Hi, If you are using 5.1 or greater, you can use a KnowledgeAgentEventListener to be notified when resource's compilation fails. You can create your own implementation of