Red Hat Bugzilla – Bug 1303985
AuditMode.NONE does not work properly in business-central
Last modified: 2016-02-19 08:53:13 EST
Description of problem:
When AuditMode for given deployment is set to NONE (vie kie-deployment-descriptor.xml), the execution of a process from this deployment is not behaving properly.
Version-Release number of selected component (if applicable):
BPM Suite 6.2
Steps to Reproduce:
1. Model random process
2. Configure AuditMode to NONE via business-central UI
3. Deploy and run this process
When starting the process, popup window with following message is displayed:
"Unexpected error encountered : null"
Process execution goes flawlessly even with AuditMode == NONE
When logging was set on DEBUG level on package org.jboss.errai then following message can be observer in server.log
It seems like jbpm-console is trying to fetch process audit data - they are not there because of AuditMode == NONE --> NPE
AuditTaskImpl and BamTaskSummary tables still includes audit data despite the AuditMode == NONE - this is unexpected.
*Log tables are empty - expected.
The NPE was visible only on debug level - please don't swallow the exceptions like this. It's very hard to debug messages like : ""Unexpected error encountered : null" " - it would be better to provide stacktrace in this case.