builder = this.processInstanceLogQuery().processInstanceId(processInstanceId); resultList = builder.build().getResultList(); assertEquals( "process instance id query result", 2, resultList.size());
private void assertProcessInstanceSLACompliance(JPAAuditLogService logService, Long processInstanceId, int slaCompliance) { List<ProcessInstanceLog> logs = logService.processInstanceLogQuery() .processInstanceId(processInstanceId) .build() .getResultList(); assertEquals(1, logs.size()); ProcessInstanceLog log = logs.get(0); assertEquals(processInstanceId, log.getProcessInstanceId()); assertEquals(slaCompliance, ((org.jbpm.process.audit.ProcessInstanceLog)log).getSlaCompliance().intValue()); }
= auditLogService.processInstanceLogQuery().processInstanceId(procInstId).build(); List<org.kie.api.runtime.manager.audit.ProcessInstanceLog> procLogs = procQuery.getResultList(); assertFalse( "No proc logs?!?", procLogs.isEmpty() );
builder = this.processInstanceLogQuery().processInstanceId(processInstanceId); resultList = builder.build().getResultList(); assertEquals( "process instance id query result", 2, resultList.size());