try this
public String toString() {
return super.toString() + "Type: " + type;
}
________________________________
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] 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:[EMAIL PROTECTED];
[EMAIL PROTECTED]
Is there any possiblity to configure the WorkingMemoryEventListener so
that it looks like:
[ObjectInserted: type=TypeXY:
handle=[fid:1:7:[EMAIL PROTECTED];
[EMAIL PROTECTED]
--------------------------------------------------------
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.
_______________________________________________
rules-users mailing list
[email protected]
https://lists.jboss.org/mailman/listinfo/rules-users