private void assertThatTasksHaveAllImportantInformation(UserOperationLogEntry userOperationLogEntry) { assertThat(userOperationLogEntry, notNullValue()); assertThat(userOperationLogEntry.getId(), notNullValue()); assertThat(userOperationLogEntry.getOperationType(), is(OPERATION_TYPE_CLAIM)); assertThat(userOperationLogEntry.getOrgValue(), nullValue()); assertThat(userOperationLogEntry.getNewValue(), is(userId)); assertThat(userOperationLogEntry.getTimestamp(), notNullValue()); assertThat(userOperationLogEntry.getProcessDefinitionKey(), is("process")); assertThat(userOperationLogEntry.getProcessDefinitionId(), notNullValue()); assertThat(userOperationLogEntry.getUserId(), is(userId)); assertThat(userOperationLogEntry.getTaskId(), is(taskService.createTaskQuery().singleResult().getId())); }
private static UserOperationLogEntry createUserOperationLogEntry() { UserOperationLogEntry entry = mock(UserOperationLogEntry.class); when(entry.getId()).thenReturn(EXAMPLE_USER_OPERATION_LOG_ID); when(entry.getDeploymentId()).thenReturn(EXAMPLE_DEPLOYMENT_ID); when(entry.getProcessDefinitionId()).thenReturn(EXAMPLE_PROCESS_DEFINITION_ID); when(entry.getProcessDefinitionKey()).thenReturn(EXAMPLE_PROCESS_DEFINITION_KEY); when(entry.getProcessInstanceId()).thenReturn(EXAMPLE_PROCESS_INSTANCE_ID); when(entry.getExecutionId()).thenReturn(EXAMPLE_EXECUTION_ID); when(entry.getCaseDefinitionId()).thenReturn(EXAMPLE_CASE_DEFINITION_ID); when(entry.getCaseInstanceId()).thenReturn(EXAMPLE_CASE_INSTANCE_ID); when(entry.getCaseExecutionId()).thenReturn(EXAMPLE_CASE_EXECUTION_ID); when(entry.getTaskId()).thenReturn(EXAMPLE_TASK_ID); when(entry.getJobId()).thenReturn(EXAMPLE_JOB_ID); when(entry.getJobDefinitionId()).thenReturn(EXAMPLE_JOB_DEFINITION_ID); when(entry.getBatchId()).thenReturn(EXAMPLE_BATCH_ID); when(entry.getUserId()).thenReturn(EXAMPLE_USER_ID); when(entry.getTimestamp()).thenReturn(DateTimeUtil.parseDate(EXAMPLE_USER_OPERATION_TIMESTAMP)); when(entry.getOperationId()).thenReturn(EXAMPLE_USER_OPERATION_ID); when(entry.getOperationType()).thenReturn(EXAMPLE_USER_OPERATION_TYPE); when(entry.getEntityType()).thenReturn(EXAMPLE_USER_OPERATION_ENTITY); when(entry.getProperty()).thenReturn(EXAMPLE_USER_OPERATION_PROPERTY); when(entry.getOrgValue()).thenReturn(EXAMPLE_USER_OPERATION_ORG_VALUE); when(entry.getNewValue()).thenReturn(EXAMPLE_USER_OPERATION_NEW_VALUE); return entry; }
@Test public void resultIsSortedByTimestamp() { // given BpmnModelInstance simpleDefinition = Bpmn.createExecutableProcess("process") .startEvent() .userTask("userTask") .camundaAssignee(userId) .endEvent() .done(); testHelper.deploy(simpleDefinition); Date now = new Date(); ClockUtil.setCurrentTime(now); engineRule.getRuntimeService().startProcessInstanceByKey("process"); unclaimAllUserTasks(); Date nowPlus2Seconds = new Date(now.getTime() + 2000L); ClockUtil.setCurrentTime(nowPlus2Seconds); claimAllUserTasks(); Date nowPlus4Seconds = new Date(now.getTime() + 4000L); ClockUtil.setCurrentTime(nowPlus4Seconds); completeAllUserTasks(); // when List<UserOperationLogEntry> userOperationsLog = optimizeService.getHistoricUserOperationLogs(pastDate(), null, 4); // then assertThat(userOperationsLog.size(), is(3)); assertThat(userOperationsLog.get(0).getOperationType(), is(OPERATION_TYPE_ASSIGN)); assertThat(userOperationsLog.get(1).getOperationType(), is(OPERATION_TYPE_CLAIM)); assertThat(userOperationsLog.get(2).getOperationType(), is(OPERATION_TYPE_COMPLETE)); }
@Test public void occurredAfterParameterWorks() { // given BpmnModelInstance simpleDefinition = Bpmn.createExecutableProcess("process") .startEvent() .userTask("userTask") .camundaAssignee(userId) .endEvent() .done(); testHelper.deploy(simpleDefinition); Date now = new Date(); ClockUtil.setCurrentTime(now); engineRule.getRuntimeService().startProcessInstanceByKey("process"); unclaimAllUserTasks(); Date nowPlus2Seconds = new Date(now.getTime() + 2000L); ClockUtil.setCurrentTime(nowPlus2Seconds); claimAllUserTasks(); Date nowPlus4Seconds = new Date(now.getTime() + 4000L); ClockUtil.setCurrentTime(nowPlus4Seconds); completeAllUserTasks(); // when List<UserOperationLogEntry> userOperationsLog = optimizeService.getHistoricUserOperationLogs(now, null, 10); // then Set<String> allowedOperationsTypes = new HashSet<>(Arrays.asList(OPERATION_TYPE_CLAIM, OPERATION_TYPE_COMPLETE)); assertThat(userOperationsLog.size(), is(2)); assertTrue(allowedOperationsTypes.contains(userOperationsLog.get(0).getOperationType())); assertTrue(allowedOperationsTypes.contains(userOperationsLog.get(1).getOperationType())); }
@Test public void occurredAtParameterWorks() { // given BpmnModelInstance simpleDefinition = Bpmn.createExecutableProcess("process") .startEvent() .userTask("userTask") .endEvent() .done(); testHelper.deploy(simpleDefinition); Date now = new Date(); ClockUtil.setCurrentTime(now); engineRule.getRuntimeService().startProcessInstanceByKey("process"); claimAllUserTasks(); Date nowPlus2Seconds = new Date(now.getTime() + 2000L); ClockUtil.setCurrentTime(nowPlus2Seconds); completeAllUserTasks(); // when List<UserOperationLogEntry> userOperationsLog = optimizeService.getHistoricUserOperationLogs(null, now, 10); // then assertThat(userOperationsLog.size(), is(1)); assertThat(userOperationsLog.get(0).getOperationType(), is(OPERATION_TYPE_CLAIM)); }
@Deployment(resources = {"org/camunda/bpm/engine/test/history/asyncTaskProcess.bpmn20.xml"}) public void testOverwriteOverridingPriority() { // given a job definition JobDefinition jobDefinition = managementService.createJobDefinitionQuery().singleResult(); // with an overriding priority ClockUtil.setCurrentTime(new Date(System.currentTimeMillis())); managementService.setOverridingJobPriorityForJobDefinition(jobDefinition.getId(), 42); // when I overwrite that priority ClockUtil.setCurrentTime(new Date(System.currentTimeMillis() + 10000)); managementService.setOverridingJobPriorityForJobDefinition(jobDefinition.getId(), 43); // then this is accessible via the op log UserOperationLogEntry userOperationLogEntry = historyService.createUserOperationLogQuery() .orderByTimestamp().desc().listPage(0, 1).get(0); assertNotNull(userOperationLogEntry); assertEquals(EntityTypes.JOB_DEFINITION, userOperationLogEntry.getEntityType()); assertEquals(jobDefinition.getId(), userOperationLogEntry.getJobDefinitionId()); assertEquals(UserOperationLogEntry.OPERATION_TYPE_SET_PRIORITY, userOperationLogEntry.getOperationType()); assertEquals("overridingPriority", userOperationLogEntry.getProperty()); assertEquals("43", userOperationLogEntry.getNewValue()); assertEquals("42", userOperationLogEntry.getOrgValue()); }
@Deployment(resources = {"org/camunda/bpm/engine/test/history/asyncTaskProcess.bpmn20.xml"}) public void testClearOverridingPriority() { // given a job definition JobDefinition jobDefinition = managementService.createJobDefinitionQuery().singleResult(); // with an overriding priority ClockUtil.setCurrentTime(new Date(System.currentTimeMillis())); managementService.setOverridingJobPriorityForJobDefinition(jobDefinition.getId(), 42); // when I clear that priority ClockUtil.setCurrentTime(new Date(System.currentTimeMillis() + 10000)); managementService.clearOverridingJobPriorityForJobDefinition(jobDefinition.getId()); // then this is accessible via the op log UserOperationLogEntry userOperationLogEntry = historyService.createUserOperationLogQuery() .orderByTimestamp().desc().listPage(0, 1).get(0); assertNotNull(userOperationLogEntry); assertEquals(EntityTypes.JOB_DEFINITION, userOperationLogEntry.getEntityType()); assertEquals(jobDefinition.getId(), userOperationLogEntry.getJobDefinitionId()); assertEquals(UserOperationLogEntry.OPERATION_TYPE_SET_PRIORITY, userOperationLogEntry.getOperationType()); assertEquals("overridingPriority", userOperationLogEntry.getProperty()); assertNull(userOperationLogEntry.getNewValue()); assertEquals("42", userOperationLogEntry.getOrgValue()); assertEquals(USER_ID, userOperationLogEntry.getUserId()); assertEquals(jobDefinition.getProcessDefinitionId(), userOperationLogEntry.getProcessDefinitionId()); assertEquals(jobDefinition.getProcessDefinitionKey(), userOperationLogEntry.getProcessDefinitionKey()); assertEquals(deploymentId, userOperationLogEntry.getDeploymentId()); }
public static UserOperationLogEntryDto map(UserOperationLogEntry entry) { UserOperationLogEntryDto dto = new UserOperationLogEntryDto(); dto.id = entry.getId(); dto.deploymentId = entry.getDeploymentId(); dto.processDefinitionId = entry.getProcessDefinitionId(); dto.processDefinitionKey = entry.getProcessDefinitionKey(); dto.processInstanceId = entry.getProcessInstanceId(); dto.executionId = entry.getExecutionId(); dto.caseDefinitionId = entry.getCaseDefinitionId(); dto.caseInstanceId = entry.getCaseInstanceId(); dto.caseExecutionId = entry.getCaseExecutionId(); dto.taskId = entry.getTaskId(); dto.jobId = entry.getJobId(); dto.jobDefinitionId = entry.getJobDefinitionId(); dto.batchId = entry.getBatchId(); dto.userId = entry.getUserId(); dto.timestamp = entry.getTimestamp(); dto.operationId = entry.getOperationId(); dto.operationType = entry.getOperationType(); dto.entityType = entry.getEntityType(); dto.property = entry.getProperty(); dto.orgValue = entry.getOrgValue(); dto.newValue = entry.getNewValue(); dto.removalTime = entry.getRemovalTime(); dto.rootProcessInstanceId = entry.getRootProcessInstanceId(); return dto; }
public static UserOperationLogEntryDto map(UserOperationLogEntry entry) { UserOperationLogEntryDto dto = new UserOperationLogEntryDto(); dto.id = entry.getId(); dto.deploymentId = entry.getDeploymentId(); dto.processDefinitionId = entry.getProcessDefinitionId(); dto.processDefinitionKey = entry.getProcessDefinitionKey(); dto.processInstanceId = entry.getProcessInstanceId(); dto.executionId = entry.getExecutionId(); dto.caseDefinitionId = entry.getCaseDefinitionId(); dto.caseInstanceId = entry.getCaseInstanceId(); dto.caseExecutionId = entry.getCaseExecutionId(); dto.taskId = entry.getTaskId(); dto.jobId = entry.getJobId(); dto.jobDefinitionId = entry.getJobDefinitionId(); dto.batchId = entry.getBatchId(); dto.userId = entry.getUserId(); dto.timestamp = entry.getTimestamp(); dto.operationId = entry.getOperationId(); dto.operationType = entry.getOperationType(); dto.entityType = entry.getEntityType(); dto.property = entry.getProperty(); dto.orgValue = entry.getOrgValue(); dto.newValue = entry.getNewValue(); dto.removalTime = entry.getRemovalTime(); dto.rootProcessInstanceId = entry.getRootProcessInstanceId(); return dto; }
@Test public void testLogCreationForOneExternalTaskId() { // given rule.getIdentityService().setAuthenticatedUserId("userId"); // when ExternalTask externalTask = externalTaskService.createExternalTaskQuery().processInstanceId(processInstanceIds.get(0)).singleResult(); externalTaskService.setRetries(externalTask.getId(), 5); rule.getIdentityService().clearAuthentication(); // then List<UserOperationLogEntry> opLogEntries = rule.getHistoryService().createUserOperationLogQuery().list(); Assert.assertEquals(1, opLogEntries.size()); Map<String, UserOperationLogEntry> entries = asMap(opLogEntries); UserOperationLogEntry retriesEntry = entries.get("retries"); Assert.assertNotNull(retriesEntry); Assert.assertEquals("ProcessInstance", retriesEntry.getEntityType()); Assert.assertEquals("SetExternalTaskRetries", retriesEntry.getOperationType()); Assert.assertEquals(externalTask.getProcessInstanceId(), retriesEntry.getProcessInstanceId()); Assert.assertEquals(externalTask.getProcessDefinitionId(), retriesEntry.getProcessDefinitionId()); Assert.assertEquals(externalTask.getProcessDefinitionKey(), retriesEntry.getProcessDefinitionKey()); Assert.assertNull(retriesEntry.getOrgValue()); Assert.assertEquals("5", retriesEntry.getNewValue()); }
Assert.assertNotNull(asyncEntry); Assert.assertEquals("ProcessInstance", asyncEntry.getEntityType()); Assert.assertEquals("ModifyProcessInstance", asyncEntry.getOperationType()); Assert.assertEquals(processDefinition.getId(), asyncEntry.getProcessDefinitionId()); Assert.assertEquals(processDefinition.getKey(), asyncEntry.getProcessDefinitionKey()); Assert.assertNotNull(numInstancesEntry); Assert.assertEquals("ProcessInstance", numInstancesEntry.getEntityType()); Assert.assertEquals("ModifyProcessInstance", numInstancesEntry.getOperationType()); Assert.assertEquals(processDefinition.getId(), numInstancesEntry.getProcessDefinitionId()); Assert.assertEquals(processDefinition.getKey(), numInstancesEntry.getProcessDefinitionKey());
public void assertUserOperationLogs() { List<ProcessDefinition> processDefinitions = repositoryService.createProcessDefinitionQuery().list(); UserOperationLogQuery userOperationLogQuery = historyService .createUserOperationLogQuery() .operationType(UserOperationLogEntry.OPERATION_TYPE_DELETE); List<UserOperationLogEntry> userOperationLogs = userOperationLogQuery.list(); assertEquals(3, userOperationLogs.size()); for (ProcessDefinition processDefinition: processDefinitions) { UserOperationLogEntry userOperationLogEntry = userOperationLogQuery .deploymentId(processDefinition.getDeploymentId()).singleResult(); assertEquals(EntityTypes.PROCESS_DEFINITION, userOperationLogEntry.getEntityType()); assertEquals(processDefinition.getId(), userOperationLogEntry.getProcessDefinitionId()); assertEquals(processDefinition.getKey(), userOperationLogEntry.getProcessDefinitionKey()); assertEquals(processDefinition.getDeploymentId(), userOperationLogEntry.getDeploymentId()); assertEquals(UserOperationLogEntry.OPERATION_TYPE_DELETE, userOperationLogEntry.getOperationType()); assertEquals("cascade", userOperationLogEntry.getProperty()); assertFalse(Boolean.valueOf(userOperationLogEntry.getOrgValue())); assertTrue(Boolean.valueOf(userOperationLogEntry.getNewValue())); assertEquals(USER_ID, userOperationLogEntry.getUserId()); assertNull(userOperationLogEntry.getJobDefinitionId()); assertNull(userOperationLogEntry.getProcessInstanceId()); assertNull(userOperationLogEntry.getCaseInstanceId()); assertNull(userOperationLogEntry.getCaseDefinitionId()); } assertEquals(6, historyService.createUserOperationLogQuery().count()); }
@Deployment public void testOnlyTaskCompletionIsLogged() { // given String processInstanceId = runtimeService.startProcessInstanceByKey("process").getId(); String taskId = taskService.createTaskQuery().singleResult().getId(); // when taskService.complete(taskId); // then assertTrue((Boolean) runtimeService.getVariable(processInstanceId, "taskListenerCalled")); assertTrue((Boolean) runtimeService.getVariable(processInstanceId, "serviceTaskCalled")); UserOperationLogQuery query = historyService.createUserOperationLogQuery(); assertEquals(1, query.count()); UserOperationLogEntry log = query.singleResult(); assertEquals("process", log.getProcessDefinitionKey()); assertEquals(processInstanceId, log.getProcessInstanceId()); assertEquals(deploymentId, log.getDeploymentId()); assertEquals(taskId, log.getTaskId()); assertEquals(UserOperationLogEntry.OPERATION_TYPE_COMPLETE, log.getOperationType()); }
public void testCreateDeployment() { // when Deployment deployment = repositoryService .createDeployment() .name(DEPLOYMENT_NAME) .addModelInstance(RESOURCE_NAME, createProcessWithServiceTask(PROCESS_KEY)) .deploy(); // then UserOperationLogEntry userOperationLogEntry = historyService.createUserOperationLogQuery().singleResult(); assertNotNull(userOperationLogEntry); assertEquals(EntityTypes.DEPLOYMENT, userOperationLogEntry.getEntityType()); assertEquals(deployment.getId(), userOperationLogEntry.getDeploymentId()); assertEquals(UserOperationLogEntry.OPERATION_TYPE_CREATE, userOperationLogEntry.getOperationType()); assertEquals("duplicateFilterEnabled", userOperationLogEntry.getProperty()); assertNull(userOperationLogEntry.getOrgValue()); assertFalse(Boolean.valueOf(userOperationLogEntry.getNewValue())); assertEquals(USER_ID, userOperationLogEntry.getUserId()); assertNull(userOperationLogEntry.getJobDefinitionId()); assertNull(userOperationLogEntry.getProcessInstanceId()); assertNull(userOperationLogEntry.getProcessDefinitionId()); assertNull(userOperationLogEntry.getProcessDefinitionKey()); assertNull(userOperationLogEntry.getCaseInstanceId()); assertNull(userOperationLogEntry.getCaseDefinitionId()); }
public void testCreateDeploymentPa() { // given EmbeddedProcessApplication application = new EmbeddedProcessApplication(); // when Deployment deployment = repositoryService .createDeployment(application.getReference()) .name(DEPLOYMENT_NAME) .addModelInstance(RESOURCE_NAME, createProcessWithServiceTask(PROCESS_KEY)) .deploy(); // then UserOperationLogEntry userOperationLogEntry = historyService.createUserOperationLogQuery().singleResult(); assertNotNull(userOperationLogEntry); assertEquals(EntityTypes.DEPLOYMENT, userOperationLogEntry.getEntityType()); assertEquals(deployment.getId(), userOperationLogEntry.getDeploymentId()); assertEquals(UserOperationLogEntry.OPERATION_TYPE_CREATE, userOperationLogEntry.getOperationType()); assertEquals("duplicateFilterEnabled", userOperationLogEntry.getProperty()); assertNull(userOperationLogEntry.getOrgValue()); assertFalse(Boolean.valueOf(userOperationLogEntry.getNewValue())); assertEquals(USER_ID, userOperationLogEntry.getUserId()); assertNull(userOperationLogEntry.getJobDefinitionId()); assertNull(userOperationLogEntry.getProcessInstanceId()); assertNull(userOperationLogEntry.getProcessDefinitionId()); assertNull(userOperationLogEntry.getProcessDefinitionKey()); assertNull(userOperationLogEntry.getCaseInstanceId()); assertNull(userOperationLogEntry.getCaseDefinitionId()); }
@Deployment(resources = {"org/camunda/bpm/engine/test/history/asyncTaskProcess.bpmn20.xml"}) public void testSetOverridingPriority() { // given a job definition JobDefinition jobDefinition = managementService.createJobDefinitionQuery().singleResult(); // when I set a job priority managementService.setOverridingJobPriorityForJobDefinition(jobDefinition.getId(), 42); // then an op log entry is written UserOperationLogEntry userOperationLogEntry = historyService.createUserOperationLogQuery().singleResult(); assertNotNull(userOperationLogEntry); assertEquals(EntityTypes.JOB_DEFINITION, userOperationLogEntry.getEntityType()); assertEquals(jobDefinition.getId(), userOperationLogEntry.getJobDefinitionId()); assertEquals(UserOperationLogEntry.OPERATION_TYPE_SET_PRIORITY, userOperationLogEntry.getOperationType()); assertEquals("overridingPriority", userOperationLogEntry.getProperty()); assertEquals("42", userOperationLogEntry.getNewValue()); assertEquals(null, userOperationLogEntry.getOrgValue()); assertEquals(USER_ID, userOperationLogEntry.getUserId()); assertEquals(jobDefinition.getProcessDefinitionId(), userOperationLogEntry.getProcessDefinitionId()); assertEquals(jobDefinition.getProcessDefinitionKey(), userOperationLogEntry.getProcessDefinitionKey()); assertEquals(deploymentId, userOperationLogEntry.getDeploymentId()); }
public void testDeleteDeployment() { // given Deployment deployment = repositoryService .createDeployment() .name(DEPLOYMENT_NAME) .addModelInstance(RESOURCE_NAME, createProcessWithServiceTask(PROCESS_KEY)) .deploy(); UserOperationLogQuery query = historyService .createUserOperationLogQuery() .operationType(UserOperationLogEntry.OPERATION_TYPE_DELETE); // when repositoryService.deleteDeployment(deployment.getId(), false); // then assertEquals(1, query.count()); UserOperationLogEntry log = query.singleResult(); assertNotNull(log); assertEquals(EntityTypes.DEPLOYMENT, log.getEntityType()); assertEquals(deployment.getId(), log.getDeploymentId()); assertEquals(UserOperationLogEntry.OPERATION_TYPE_DELETE, log.getOperationType()); assertEquals("cascade", log.getProperty()); assertNull(log.getOrgValue()); assertFalse(Boolean.valueOf(log.getNewValue())); assertEquals(USER_ID, log.getUserId()); assertNull(log.getJobDefinitionId()); assertNull(log.getProcessInstanceId()); assertNull(log.getProcessDefinitionId()); assertNull(log.getProcessDefinitionKey()); assertNull(log.getCaseInstanceId()); assertNull(log.getCaseDefinitionId()); }
@Test @Deployment(resources = { ONE_TASK_PROCESS }) public void testQueryProcessInstanceModificationOperation() { ProcessInstance processInstance = runtimeService.startProcessInstanceByKey("oneTaskProcess"); String processInstanceId = processInstance.getId(); ProcessDefinition definition = repositoryService.createProcessDefinitionQuery().singleResult(); runtimeService .createProcessInstanceModification(processInstance.getId()) .startBeforeActivity("theTask") .execute(); UserOperationLogQuery logQuery = query() .entityType(EntityTypes.PROCESS_INSTANCE) .operationType(UserOperationLogEntry.OPERATION_TYPE_MODIFY_PROCESS_INSTANCE); assertEquals(1, logQuery.count()); UserOperationLogEntry logEntry = logQuery.singleResult(); assertEquals(processInstanceId, logEntry.getProcessInstanceId()); assertEquals(processInstance.getProcessDefinitionId(), logEntry.getProcessDefinitionId()); assertEquals(definition.getKey(), logEntry.getProcessDefinitionKey()); assertEquals(UserOperationLogEntry.OPERATION_TYPE_MODIFY_PROCESS_INSTANCE, logEntry.getOperationType()); assertEquals(EntityTypes.PROCESS_INSTANCE, logEntry.getEntityType()); assertNull(logEntry.getProperty()); assertNull(logEntry.getOrgValue()); assertNull(logEntry.getNewValue()); }
@Deployment(resources = {ONE_TASK_PROCESS}) public void testQueryProcessInstanceModificationOperation() { ProcessInstance processInstance = runtimeService.startProcessInstanceByKey("oneTaskProcess"); String processInstanceId = processInstance.getId(); ProcessDefinition definition = repositoryService.createProcessDefinitionQuery().singleResult(); runtimeService .createProcessInstanceModification(processInstance.getId()) .startBeforeActivity("theTask") .execute(); UserOperationLogQuery logQuery = query() .entityType(EntityTypes.PROCESS_INSTANCE) .operationType(UserOperationLogEntry.OPERATION_TYPE_MODIFY_PROCESS_INSTANCE); assertEquals(1, logQuery.count()); UserOperationLogEntry logEntry = logQuery.singleResult(); assertEquals(processInstanceId, logEntry.getProcessInstanceId()); assertEquals(processInstance.getProcessDefinitionId(), logEntry.getProcessDefinitionId()); assertEquals(definition.getKey(), logEntry.getProcessDefinitionKey()); assertEquals(deploymentId, logEntry.getDeploymentId()); assertEquals(UserOperationLogEntry.OPERATION_TYPE_MODIFY_PROCESS_INSTANCE, logEntry.getOperationType()); assertEquals(EntityTypes.PROCESS_INSTANCE, logEntry.getEntityType()); assertNull(logEntry.getProperty()); assertNull(logEntry.getOrgValue()); assertNull(logEntry.getNewValue()); }
userOperationLogEntry.getOperationType());