1 Reply Latest reply on Mar 2, 2009 10:07 AM by Kris Verlaenen

    Drools Audit View doesn't open log

    Joao Viragine Newbie

      I've been using a WorkingMemoryFileLogger in my Seam/Drools application to generate a log file for debug purposes.

      When I try to open the log file in Audit View it states that: The selected audit log is empty. But the log contains data.

      Log data is:

      <object-stream>
       <list>
       <org.drools.audit.event.ActivationLogEvent>
       <type>4</type>
       <activationId>Desconto para Cliente com Cartao Ouro [1]</activationId>
       <rule>Desconto para Cliente com Cartao Ouro</rule>
       <declarations>compra=Compra[Cliente: Joao Paulo, Cartao: OURO, Valor: 10.0](1)</declarations>
       </org.drools.audit.event.ActivationLogEvent>
       <org.drools.audit.event.ObjectLogEvent>
       <type>1</type>
       <factId>1</factId>
       <objectToString>Compra[Cliente: Joao Paulo, Cartao: OURO, Valor: 10.0]</objectToString>
       </org.drools.audit.event.ObjectLogEvent>
       <org.drools.audit.event.ActivationLogEvent>
       <type>6</type>
       <activationId>Desconto para Cliente com Cartao Ouro [1]</activationId>
       <rule>Desconto para Cliente com Cartao Ouro</rule>
       <declarations>compra=Compra[Cliente: Joao Paulo, Cartao: OURO, Valor: 10.0](1)</declarations>
       </org.drools.audit.event.ActivationLogEvent>
       <org.drools.audit.event.ActivationLogEvent>
       <type>7</type>
       <activationId>Desconto para Cliente com Cartao Ouro [1]</activationId>
       <rule>Desconto para Cliente com Cartao Ouro</rule>
       <declarations>compra=Compra[Cliente: Joao Paulo, Cartao: OURO, Valor: 8.0](1)</declarations>
       </org.drools.audit.event.ActivationLogEvent>
       <org.drools.audit.event.ActivationLogEvent>
       <type>4</type>
       <activationId>Desconto para Cliente com Cartao Prata [1, 2]</activationId>
       <rule>Desconto para Cliente com Cartao Prata</rule>
       <declarations>compra=Compra[Cliente: Joao Victor, Cartao: PRATA, Valor: 10.0](2)</declarations>
       </org.drools.audit.event.ActivationLogEvent>
       <org.drools.audit.event.ObjectLogEvent>
       <type>1</type>
       <factId>2</factId>
       <objectToString>Compra[Cliente: Joao Victor, Cartao: PRATA, Valor: 10.0]</objectToString>
       </org.drools.audit.event.ObjectLogEvent>
       <org.drools.audit.event.ActivationLogEvent>
       <type>6</type>
       <activationId>Desconto para Cliente com Cartao Prata [1, 2]</activationId>
       <rule>Desconto para Cliente com Cartao Prata</rule>
       <declarations>compra=Compra[Cliente: Joao Victor, Cartao: PRATA, Valor: 10.0](2)</declarations>
       </org.drools.audit.event.ActivationLogEvent>
       <org.drools.audit.event.ActivationLogEvent>
       <type>7</type>
       <activationId>Desconto para Cliente com Cartao Prata [1, 2]</activationId>
       <rule>Desconto para Cliente com Cartao Prata</rule>
       <declarations>compra=Compra[Cliente: Joao Victor, Cartao: PRATA, Valor: 8.5](2)</declarations>
       </org.drools.audit.event.ActivationLogEvent>
       </list>
      </object-stream>



      Is it a bug or a misleading use?

      Cheers,
      JP