Note: This bug is displayed in read-only format because the product is no longer active in Red Hat Bugzilla.

Bug 1271909

Summary: ActivationLogEvent does not contain information about a bind variable which is not used in the rule
Product: [Retired] JBoss BRMS Platform 6 Reporter: Hisao Furuichi <hfuruich>
Component: BREAssignee: Mario Fusco <mfusco>
Status: CLOSED EOL QA Contact: Marek Winkler <mwinkler>
Severity: high Docs Contact:
Priority: high    
Version: 6.1.0CC: kverlaen, rrajasek
Target Milestone: CR1   
Target Release: 6.2.0   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2020-03-27 19:06:21 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Attachments:
Description Flags
Drools Project created on JBDS 8.1 none

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.