[rules-users] RE: logging with WorkingMemoryEventListener
Shyam, Pallav (MSCIBARRA)
Pallav.Shyam at mscibarra.com
Mon Sep 8 04:45:53 EDT 2008
try this
public String toString() {
return super.toString() + "Type: " + type;
}
________________________________
From: thomas.kukofka at googlemail.com
[mailto:thomas.kukofka at googlemail.com] On Behalf Of thomas kukofka
Sent: Monday, September 08, 2008 2:04 PM
To: Rules Users List
Cc: Shyam, Pallav (MSCIBARRA)
Subject: logging with WorkingMemoryEventListener
Hello,
I tried to overwrite toString():
public String toString() {
System.out.println("Type: " + type);
return super.toString();
}
But the output ist the following:
Type: TypeXY
[ObjectInserted: handle=[fid:1:7:com.dssrules.InputObject at 996cef];
object=com.dssrules.InputObject at 996cef]
Is there any possiblity to configure the WorkingMemoryEventListener so
that it looks like:
[ObjectInserted: type=TypeXY:
handle=[fid:1:7:com.dssrules.InputObject at 996cef];
object=com.dssrules.InputObject at 996cef]
--------------------------------------------------------
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/20080908/76a9e165/attachment.html
More information about the rules-users
mailing list