// AUDIT UPDATE
if (contextInstance != null) {
Object auditIdObj = contextInstance.getVariable(AuditManager.AUDIT_ID);
Integer auditId = convertIdType(auditIdObj);
if(auditId!=null) {
AuditManager auditManager = AuditManager.getInstance();
auditManager.updateAudit(auditId, null, new Long(System.currentTimeMillis()),
"EXECUTION_PERFORMED", null, null);
}
}
} catch(Exception e){
logger.error("Error while versioning presentation", e);
// AUDIT UPDATE
if (contextInstance != null) {
Object auditIdObj = contextInstance.getVariable(AuditManager.AUDIT_ID);
Integer auditId = convertIdType(auditIdObj);
if(auditId!=null) {
AuditManager auditManager = AuditManager.getInstance();
auditManager.updateAudit(auditId, null, new Long(System.currentTimeMillis()),
"EXECUTION_FAILED", e.getMessage(), null);
}
}
} finally {
if (jbpmContext != null) {