[rules-users] How to monitor what rules are fired

Ravi Krishnamurthy ravik at savvion.com
Thu Oct 30 12:54:49 EDT 2008


Thanks Michael.

Michael Neale wrote:
> 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 <ravik at savvion.com> wrote:
>   
>> 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" <ravik at savvion.com>
>> To: "Rules Users List" <rules-users at lists.jboss.org>
>> 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
>> rules-users at lists.jboss.org
>> https://lists.jboss.org/mailman/listinfo/rules-users
>>
>>
>> _______________________________________________
>> rules-users mailing list
>> rules-users at lists.jboss.org
>> https://lists.jboss.org/mailman/listinfo/rules-users
>>
>>
>>     
>
>
>
> --
> Michael D Neale
> home: www.michaelneale.net
> blog: michaelneale.blogspot.com
> _______________________________________________
> rules-users mailing list
> rules-users at lists.jboss.org
> https://lists.jboss.org/mailman/listinfo/rules-users
>   

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.jboss.org/pipermail/rules-users/attachments/20081030/960be5d2/attachment.html 


More information about the rules-users mailing list