Uploaded image for project: 'JBoss BPMS Platform'
  1. JBoss BPMS Platform
  2. RHBPMS-3445

Threaded audit log only showing first sequence of events

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Major Major
    • 6.0.2
    • 6.0.0
    • Eclipse Tooling
    • None

      Description of problem:
      When using a threaded audit logger, it saves the events regularly with the given delay. The audit view will only show the first sequence of events however, due to how the XML is generated.

      KieRuntimeLogger log = KieServices.Factory.get().getLoggers().newThreadedFileLogger(ksession, "test", 1000);
      ...
      log.close()

      This now generates something like:

      <object-stream>
      <org.drools.core.audit.WorkingMemoryLog>
      <version>6.1</version>
      <events>
      <org.drools.core.audit.event.RuleFlowVariableLogEvent>
      <type>32</type>
      <processId>com.sample.evaluation</processId>
      <processName>Evaluation</processName>
      <processInstanceId>1</processInstanceId>
      <variableId>reason</variableId>
      <variableInstanceId>reason</variableInstanceId>
      <objectToString>Yearly performance evaluation</objectToString>
      </org.drools.core.audit.event.RuleFlowVariableLogEvent>
      ...
      </events>
      <engine>PHREAK</engine>
      </org.drools.core.audit.WorkingMemoryLog>
      <org.drools.core.audit.WorkingMemoryLog>
      <version>6.1</version>
      <events>
      ...
      </events>
      <engine>PHREAK</engine>
      </org.drools.core.audit.WorkingMemoryLog>
      ...

      The audit log will only consume the first sequence of events however, additional sequences in the XML are ignored (due to a change in the audit log XML where it used to save all events as one sequence instead I believe)

        1. Issue screencast..mp4
          1.27 MB
        2. test_1000_with_sleep_10000.log
          25 kB
        3. test_1000.log
          21 kB
        4. test_500.log
          21 kB

              mfusco@redhat.com Mario Fusco
              kverlaen@redhat.com Kris Verlaenen
              Marek Baluch Marek Baluch
              Marek Baluch Marek Baluch
              Marek Baluch
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Created:
                Updated:
                Resolved: