<HTML >
<HEAD>
<META http-equiv="Content-Type" content="text/html; charset=us-ascii">

</HEAD>
<BODY >
<DIV><p><font size=2 color=navy face=Arial>
You can override the toString method of InputObject to return the type information.<br><br> </font></p>
<p><hr size=2 width="100%" align=center tabindex=-1>
<font face=Tahoma size=2>
<b>From</b>: rules-users-bounces@lists.jboss.org <rules-users-bounces@lists.jboss.org>
<br><b>To</b>: Rules Users List <rules-users@lists.jboss.org>
<br><b>Sent</b>: Fri Sep 05 22:31:04 2008<br><b>Subject</b>: [rules-users] logging with WorkingMemoryEventListener
<br></font></p>
<div dir="ltr">Hello,<br><br>I want to use <meta http-equiv="Content-Type" content="text/html; charset=utf-8"><meta name="ProgId" content="Word.Document"><meta name="Generator" content="Microsoft Word 11"><meta name="Originator" content="Microsoft Word 11"><link rel="File-List" href="file:///C:%5CDOKUME%7E1%5Ckuko_th%5CLOKALE%7E1%5CTemp%5Cmsohtml1%5C01%5Cclip_filelist.xml"><style>
&lt;!--
 /* Style Definitions */
 p.MsoNormal, li.MsoNormal, div.MsoNormal
        {mso-style-parent:&quot;&quot;;
        margin-top:5.0pt;
        margin-right:0cm;
        margin-bottom:5.0pt;
        margin-left:0cm;
        text-align:justify;
        mso-pagination:none;
        font-size:11.0pt;
        mso-bidi-font-size:10.0pt;
        font-family:Arial;
        mso-fareast-font-family:&quot;Times New Roman&quot;;
        mso-bidi-font-family:&quot;Times New Roman&quot;;
        mso-ansi-language:EN-US;}
@page Section1
        {size:612.0pt 792.0pt;
        margin:70.85pt 70.85pt 2.0cm 70.85pt;
        mso-header-margin:36.0pt;
        mso-footer-margin:36.0pt;
        mso-paper-source:0;}
div.Section1
        {page:Section1;}
--&gt;
</style><span style="font-size: 11pt; font-family: Arial;" lang="EN-US">WorkingMemoryEventListener and AgendaEventListener for logging. <br>But I have a generic InputObject as fact which has a parameter &quot;type&quot; to disitnguish between different fact types, but all facts are instances of the class InputObject, only the type Paramater has different values.<br>
Therefore in the log using DefaultWorkingMemoryEventListener I see only that an Object of class </span><span style="font-size: 11pt; font-family: Arial;" lang="EN-US">InputObject</span> is inserted but not which type teh Object has. Is it possible to configure the <meta http-equiv="Content-Type" content="text/html; charset=utf-8"><meta name="ProgId" content="Word.Document"><meta name="Generator" content="Microsoft Word 11"><meta name="Originator" content="Microsoft Word 11"><link rel="File-List" href="file:///C:%5CDOKUME%7E1%5Ckuko_th%5CLOKALE%7E1%5CTemp%5Cmsohtml1%5C01%5Cclip_filelist.xml"><style>
&lt;!--
 /* Style Definitions */
 p.MsoNormal, li.MsoNormal, div.MsoNormal
        {mso-style-parent:&quot;&quot;;
        margin-top:5.0pt;
        margin-right:0cm;
        margin-bottom:5.0pt;
        margin-left:0cm;
        text-align:justify;
        mso-pagination:none;
        font-size:11.0pt;
        mso-bidi-font-size:10.0pt;
        font-family:Arial;
        mso-fareast-font-family:&quot;Times New Roman&quot;;
        mso-bidi-font-family:&quot;Times New Roman&quot;;
        mso-ansi-language:EN-US;}
@page Section1
        {size:612.0pt 792.0pt;
        margin:70.85pt 70.85pt 2.0cm 70.85pt;
        mso-header-margin:36.0pt;
        mso-footer-margin:36.0pt;
        mso-paper-source:0;}
div.Section1
        {page:Section1;}
--&gt;
</style><span style="font-size: 11pt; font-family: Arial;" lang="EN-US">WorkingMemoryEventListener </span>that also the type is logged?<br><br>Regards<br>Thomas<br><span style="font-size: 11pt; font-family: Arial;" lang="EN-US"><br>
</span></div>
</DIV>
<DIV>
<HR>
</DIV>
<P CLASS="BulletedList" STYLE="MARGIN: 0in 0in 0pt; TEXT-INDENT: 0in; mso-list: none; tab-stops: .5in"><SPAN STYLE="FONT-SIZE: 8pt; COLOR: gray; mso-bidi-font-family: Arial"><FONT FACE="Arial" COLOR="gray" SIZE="1">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.</FONT></SPAN></P>
<DIV>
</DIV></BODY></HTML>