Bug 1271909 - ActivationLogEvent does not contain information about a bind variable which is not used in the rule
Summary: ActivationLogEvent does not contain information about a bind variable which i...
Keywords:
Status: CLOSED EOL
Alias: None
Product: JBoss BRMS Platform 6
Classification: Retired
Component: BRE
Version: 6.1.0
Hardware: Unspecified
OS: Unspecified
high
high
Target Milestone: CR1
: 6.2.0
Assignee: Mario Fusco
QA Contact: Marek Winkler
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2015-10-15 05:29 UTC by Hisao Furuichi
Modified: 2020-03-27 19:06 UTC (History)
2 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2020-03-27 19:06:21 UTC
Type: Bug
Embargoed:


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

Description Hisao Furuichi 2015-10-15 05:29:25 UTC
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 13:33:42 UTC
Fixed by https://github.com/droolsjbpm/drools/commit/2292d17dc

Comment 6 Marek Winkler 2015-11-19 13:23:50 UTC
Verified in BRMS 6.2.0 CR1.


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