Bugzilla will be upgraded to version 5.0. The upgrade date is tentatively scheduled for 2 December 2018, pending final testing and feedback.
Bug 1271909 - ActivationLogEvent does not contain information about a bind variable which is not used in the rule
ActivationLogEvent does not contain information about a bind variable which i...
Status: VERIFIED
Product: JBoss BRMS Platform 6
Classification: Retired
Component: BRE (Show other bugs)
6.1.0
Unspecified Unspecified
high Severity high
: CR1
: 6.2.0
Assigned To: Mario Fusco
Marek Winkler
:
Depends On:
Blocks:
  Show dependency treegraph
 
Reported: 2015-10-15 01:29 EDT by Hisao Furuichi
Modified: 2015-11-19 08:23 EST (History)
2 users (show)

See Also:
Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Environment:
Last Closed:
Type: Bug
Regression: ---
Mount Type: ---
Documentation: ---
CRM:
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---


Attachments (Terms of Use)
Drools Project created on JBDS 8.1 (6.05 KB, application/zip)
2015-10-15 01:29 EDT, Hisao Furuichi
no flags Details

  None (edit)
Description Hisao Furuichi 2015-10-15 01:29:25 EDT
Created attachment 1083134 [details]
Drools Project created on JBDS 8.1

Description of problem:
If a bind variable is not used in the rule, ActivationLogEvent does not log the information about it in <declarations> element.

Version-Release number of selected component (if applicable):
BRMS 6.1.3

Steps to Reproduce:
1. Import Drools Project with JBDS 8.1
2. Run the program
3. Refresh the project
4. Check audit.log

Actual results:
ActivationLogEvent does not contain the info about "myMessage" variable in <declarations> element.

sample.drl
===
rule "Hello World"
    when
        m : Message( status == Message.HELLO, myMessage : message )
    then
        m.setMessage( "Goodbye cruel world" );
        m.setStatus( Message.GOODBYE );
end
===

Audit.log
===
<org.drools.core.audit.event.ActivationLogEvent>
 <type>4</type>
 <activationId>Hello World [1]</activationId>
 <rule>Hello World</rule>
 <declarations>m=com.sample.DroolsTest$Message@5e0fae9</declarations>
 <factHandleIds>1</factHandleIds>
</org.drools.core.audit.event.ActivationLogEvent>
===

Expected results:
All of variables in a rule will be logged in ActivationLogEvent

Additional info:
With BRMS 5.3.1, information about all of bind variables are logged in ActivationLogEvent.
Comment 1 Mario Fusco 2015-10-28 09:33:42 EDT
Fixed by https://github.com/droolsjbpm/drools/commit/2292d17dc
Comment 6 Marek Winkler 2015-11-19 08:23:50 EST
Verified in BRMS 6.2.0 CR1.

Note You need to log in before you can comment on or make changes to this bug.