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.
Fixed by https://github.com/droolsjbpm/drools/commit/2292d17dc
Verified in BRMS 6.2.0 CR1.