assertEquals( "Incorrect proc inst id: " + procLog.getProcessInstanceId(), procInstId, procLog.getProcessInstanceId().longValue() );
assertEquals( "Incorrect external id: " + procLog.getExternalId(), deploymentId, procLog.getExternalId() );
// variable value
org.kie.api.runtime.manager.audit.VariableInstanceLog varLog = varLogs.get(0);
varQuery = auditLogService.variableInstanceLogQuery()
.intersect()
.processInstanceId(procInstId)
.last()
.variableValue(varLog.getVariableId(), varLog.getValue())
.buildQuery();