<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
  <meta content="text/html;charset=ISO-8859-1" http-equiv="Content-Type">
</head>
<body bgcolor="#ffffff" text="#000000">
Thanks Michael.<br>
<br>
Michael Neale wrote:
<blockquote
 cite="mid:96ab3ced0810292217j3c07fbcy1d2a48ced0d21371@mail.gmail.com"
 type="cite">
  <pre wrap="">Hi Ravi - if you look at the classes in: org.drools.audit

For example: WorkingMemoryInMemoryLogger.java  - you can wrap that
around a session, and it will accumulate stuff in memory that you can
print out. You will want to have good "toString()" methods on your
fact objects - so you can inspect the state nicely.

But if you are caringly only about rules - take a look at LogEvent -
BEFORE_ACTIVATION_FIRE (or the AFTER equivalent) - they book end the
firing of a rules consequence - so pick one event type, and count it.
(I use that approach in a few places).



On Wed, Oct 29, 2008 at 4:42 AM, Ravi Krishnamurthy <a class="moz-txt-link-rfc2396E" href="mailto:ravik@savvion.com">&lt;ravik@savvion.com&gt;</a> wrote:
  </pre>
  <blockquote type="cite">
    <pre wrap="">Thanks Michael.

I will look into it.

Regards,
Ravi

Michael Rhoden wrote:

Not sure if there are any examples around, but you could use
AgendaEventListener to see any rules firing.



-Michael
----- Original Message -----
From: "Ravi Krishnamurthy" <a class="moz-txt-link-rfc2396E" href="mailto:ravik@savvion.com">&lt;ravik@savvion.com&gt;</a>
To: "Rules Users List" <a class="moz-txt-link-rfc2396E" href="mailto:rules-users@lists.jboss.org">&lt;rules-users@lists.jboss.org&gt;</a>
Sent: Monday, October 27, 2008 11:31:40 AM GMT -06:00 US/Canada Central
Subject: [rules-users] How to monitor what rules are fired

Hello:
Would like to monitor what rules are fired, how many times it is fired etc.

Is it possible to do this with Drools 4.x

Thanks for your help,
Ravi
_______________________________________________
rules-users mailing list
<a class="moz-txt-link-abbreviated" href="mailto:rules-users@lists.jboss.org">rules-users@lists.jboss.org</a>
<a class="moz-txt-link-freetext" href="https://lists.jboss.org/mailman/listinfo/rules-users">https://lists.jboss.org/mailman/listinfo/rules-users</a>


_______________________________________________
rules-users mailing list
<a class="moz-txt-link-abbreviated" href="mailto:rules-users@lists.jboss.org">rules-users@lists.jboss.org</a>
<a class="moz-txt-link-freetext" href="https://lists.jboss.org/mailman/listinfo/rules-users">https://lists.jboss.org/mailman/listinfo/rules-users</a>


    </pre>
  </blockquote>
  <pre wrap=""><!---->


--
Michael D Neale
home: <a class="moz-txt-link-abbreviated" href="http://www.michaelneale.net">www.michaelneale.net</a>
blog: michaelneale.blogspot.com
_______________________________________________
rules-users mailing list
<a class="moz-txt-link-abbreviated" href="mailto:rules-users@lists.jboss.org">rules-users@lists.jboss.org</a>
<a class="moz-txt-link-freetext" href="https://lists.jboss.org/mailman/listinfo/rules-users">https://lists.jboss.org/mailman/listinfo/rules-users</a>
  </pre>
</blockquote>
<br>
</body>
</html>