[rules-users] logging with WorkingMemoryEventListener
Shyam, Pallav (MSCIBARRA)
Pallav.Shyam at mscibarra.com
Fri Sep 5 11:07:20 EDT 2008
You can override the toString method of InputObject to return the type information.
________________________________
From: rules-users-bounces at lists.jboss.org
To: Rules Users List
Sent: Fri Sep 05 22:31:04 2008
Subject: [rules-users] logging with WorkingMemoryEventListener
Hello,
I want to use
WorkingMemoryEventListener and AgendaEventListener for logging.
But I have a generic InputObject as fact which has a parameter "type" to disitnguish between different fact types, but all facts are instances of the class InputObject, only the type Paramater has different values.
Therefore in the log using DefaultWorkingMemoryEventListener I see only that an Object of class InputObject is inserted but not which type teh Object has. Is it possible to configure the
WorkingMemoryEventListener that also the type is logged?
Regards
Thomas
--------------------------------------------------------
NOTICE: If received in error, please destroy and notify sender. Sender does not intend to waive confidentiality or privilege. Use of this email is prohibited when received in error.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.jboss.org/pipermail/rules-users/attachments/20080905/a14446a9/attachment.html
More information about the rules-users
mailing list