Vikas,

Implement your own AgendaEventListener. Pay specific attention to the beforeActivationFired callback method. That should get you what you want.

On Mon, May 18, 2009 at 12:43 PM, Vikas Phonsa <VPhonsa@mercuryinsurance.com> wrote:
Hi All,

I'm using Drools 4.0.7 with Java 1.4.

Some of my rules are throwing exceptions and my goal is to get a list of names of all rules that are being executed (till the point the exception is thrown).

I have tried doing
stateLesssession.addEventListener( new DebugAgendaEventListener() );
and it does give me a bunch of information about the agenda. But I want to narrow it down to the rules that are actually executed.

Which event it called right after the execution control goes inside a rule (before the 'when' condition is executed)?

Thanks,
Vikas


This email and/or any files or attachments transmitted with it are confidential and intended solely for the use of the individual or entity to whom they are addressed, and may contain information that is privileged, confidential and exempt from disclosure under applicable law. If you are not the intended recipient, or the employee or agent responsible for delivering the message to the intended recipient, you are hereby notified that any dissemination, distribution or copying of this e-mail and/or any files or attachments transmitted with it is strictly forbidden. If you have received this email in error, please delete the e-mail and/or any files or attachments, and also notify the system manager (PostMaster@mercuryinsurance.com) of the error. Please note that any views or opinions presented in this email are solely those of the author and do not necessarily represent those of the company. Finally, the recipient should check this email and any attachments for the presence of !
 viruses. The company accepts no liability for any damage caused by any virus transmitted by this email and/or any files or attachments transmitted with it.



_______________________________________________
rules-users mailing list
rules-users@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/rules-users