@Override protected void logUserOperation(CommandContext commandContext) { PropertyChange propertyChange = new PropertyChange(SUSPENSION_STATE_PROPERTY, null, getNewSuspensionState().getName()); commandContext.getOperationLogManager() .logProcessInstanceOperation(getLogEntryOperation(), processInstanceId, processDefinitionId, processDefinitionKey, Collections.singletonList(propertyChange)); }
@Override protected void logUserOperation(CommandContext commandContext) { PropertyChange propertyChange = new PropertyChange(SUSPENSION_STATE_PROPERTY, null, getNewSuspensionState().getName()); commandContext.getOperationLogManager() .logProcessInstanceOperation(getLogEntryOperation(), processInstanceId, processDefinitionId, processDefinitionKey, Collections.singletonList(propertyChange)); }
@Override protected void logUserOperation(CommandContext commandContext) { PropertyChange propertyChange = new PropertyChange(SUSPENSION_STATE_PROPERTY, null, getNewSuspensionState().getName()); commandContext.getOperationLogManager().logJobDefinitionOperation(getLogEntryOperation(), jobDefinitionId, processDefinitionId, processDefinitionKey, propertyChange); }
@Override protected void logUserOperation(CommandContext commandContext) { PropertyChange propertyChange = new PropertyChange(SUSPENSION_STATE_PROPERTY, null, getNewSuspensionState().getName()); commandContext.getOperationLogManager().logJobOperation(getLogEntryOperation(), jobId, jobDefinitionId, processInstanceId, processDefinitionId, processDefinitionKey, propertyChange); } }
@Override protected void logUserOperation(CommandContext commandContext) { PropertyChange propertyChange = new PropertyChange(SUSPENSION_STATE_PROPERTY, null, getNewSuspensionState().getName()); commandContext.getOperationLogManager().logJobOperation(getLogEntryOperation(), jobId, jobDefinitionId, processInstanceId, processDefinitionId, processDefinitionKey, propertyChange); } }
protected void logUserOperation(CommandContext commandContext) { PropertyChange propertyChange = new PropertyChange(SUSPENSION_STATE_PROPERTY, null, getNewSuspensionState().getName()); commandContext.getOperationLogManager() .logBatchOperation(getUserOperationType(), batchId, propertyChange); }
@Override protected void logUserOperation(CommandContext commandContext) { PropertyChange propertyChange = new PropertyChange(SUSPENSION_STATE_PROPERTY, null, getNewSuspensionState().getName()); commandContext.getOperationLogManager().logJobDefinitionOperation(getLogEntryOperation(), jobDefinitionId, processDefinitionId, processDefinitionKey, propertyChange); }
protected void logUserOperation(CommandContext commandContext) { PropertyChange propertyChange = new PropertyChange(SUSPENSION_STATE_PROPERTY, null, getNewSuspensionState().getName()); commandContext.getOperationLogManager() .logBatchOperation(getUserOperationType(), batchId, propertyChange); }
@Override protected void logUserOperation(CommandContext commandContext) { PropertyChange propertyChange = new PropertyChange(SUSPENSION_STATE_PROPERTY, null, getNewSuspensionState().getName()); commandContext.getOperationLogManager() .logProcessDefinitionOperation(getLogEntryOperation(), processDefinitionId, processDefinitionKey, propertyChange); }
@Override protected void logUserOperation(CommandContext commandContext) { PropertyChange propertyChange = new PropertyChange(SUSPENSION_STATE_PROPERTY, null, getNewSuspensionState().getName()); commandContext.getOperationLogManager() .logProcessDefinitionOperation(getLogEntryOperation(), processDefinitionId, processDefinitionKey, propertyChange); }
@Test @RequiredHistoryLevel(ProcessEngineConfiguration.HISTORY_FULL) public void shouldCreateUserOperationLogForBatchSuspension() { // given Batch batch = helper.migrateProcessInstancesAsync(1); // when identityService.setAuthenticatedUserId(USER_ID); managementService.suspendBatchById(batch.getId()); identityService.clearAuthentication(); // then UserOperationLogEntry entry = historyService.createUserOperationLogQuery() .singleResult(); assertNotNull(entry); assertEquals(batch.getId(), entry.getBatchId()); assertEquals(AbstractSetBatchStateCmd.SUSPENSION_STATE_PROPERTY, entry.getProperty()); assertNull(entry.getOrgValue()); assertEquals(SuspensionState.SUSPENDED.getName(), entry.getNewValue()); }
@Override protected void logUserOperation(CommandContext commandContext) { PropertyChange propertyChange = new PropertyChange(SUSPENSION_STATE_PROPERTY, null, getNewSuspensionState().getName()); commandContext.getOperationLogManager() .logProcessInstanceOperation(getLogEntryOperation(), processInstanceId, processDefinitionId, processDefinitionKey, Collections.singletonList(propertyChange)); }
@Test @RequiredHistoryLevel(ProcessEngineConfiguration.HISTORY_FULL) public void shouldCreateUserOperationLogForBatchActivation() { // given Batch batch = helper.migrateProcessInstancesAsync(1); managementService.suspendBatchById(batch.getId()); // when identityService.setAuthenticatedUserId(USER_ID); managementService.activateBatchById(batch.getId()); identityService.clearAuthentication(); // then UserOperationLogEntry entry = historyService.createUserOperationLogQuery() .singleResult(); assertNotNull(entry); assertEquals(batch.getId(), entry.getBatchId()); assertEquals(AbstractSetBatchStateCmd.SUSPENSION_STATE_PROPERTY, entry.getProperty()); assertNull(entry.getOrgValue()); assertEquals(SuspensionState.ACTIVE.getName(), entry.getNewValue()); }
@Override protected void logUserOperation(CommandContext commandContext) { PropertyChange propertyChange = new PropertyChange(SUSPENSION_STATE_PROPERTY, null, getNewSuspensionState().getName()); commandContext.getOperationLogManager().logJobOperation(getLogEntryOperation(), jobId, jobDefinitionId, processInstanceId, processDefinitionId, processDefinitionKey, propertyChange); } }
protected void logUserOperation(CommandContext commandContext) { PropertyChange propertyChange = new PropertyChange(SUSPENSION_STATE_PROPERTY, null, getNewSuspensionState().getName()); commandContext.getOperationLogManager() .logBatchOperation(getUserOperationType(), batchId, propertyChange); }
@Override protected void logUserOperation(CommandContext commandContext) { PropertyChange propertyChange = new PropertyChange(SUSPENSION_STATE_PROPERTY, null, getNewSuspensionState().getName()); commandContext.getOperationLogManager().logJobDefinitionOperation(getLogEntryOperation(), jobDefinitionId, processDefinitionId, processDefinitionKey, propertyChange); }
@Override protected void logUserOperation(CommandContext commandContext) { PropertyChange propertyChange = new PropertyChange(SUSPENSION_STATE_PROPERTY, null, getNewSuspensionState().getName()); commandContext.getOperationLogManager() .logProcessDefinitionOperation(getLogEntryOperation(), processDefinitionId, processDefinitionKey, propertyChange); }
@Test @RequiredHistoryLevel(ProcessEngineConfiguration.HISTORY_FULL) public void shouldCreateUserOperationLogForBatchSuspension() { // given Batch batch = helper.migrateProcessInstancesAsync(1); // when identityService.setAuthenticatedUserId(USER_ID); managementService.suspendBatchById(batch.getId()); identityService.clearAuthentication(); // then UserOperationLogEntry entry = historyService.createUserOperationLogQuery() .singleResult(); assertNotNull(entry); assertEquals(batch.getId(), entry.getBatchId()); assertEquals(AbstractSetBatchStateCmd.SUSPENSION_STATE_PROPERTY, entry.getProperty()); assertNull(entry.getOrgValue()); assertEquals(SuspensionState.SUSPENDED.getName(), entry.getNewValue()); }
@Test @RequiredHistoryLevel(ProcessEngineConfiguration.HISTORY_FULL) public void shouldCreateUserOperationLogForBatchActivation() { // given Batch batch = helper.migrateProcessInstancesAsync(1); managementService.suspendBatchById(batch.getId()); // when identityService.setAuthenticatedUserId(USER_ID); managementService.activateBatchById(batch.getId()); identityService.clearAuthentication(); // then UserOperationLogEntry entry = historyService.createUserOperationLogQuery() .singleResult(); assertNotNull(entry); assertEquals(batch.getId(), entry.getBatchId()); assertEquals(AbstractSetBatchStateCmd.SUSPENSION_STATE_PROPERTY, entry.getProperty()); assertNull(entry.getOrgValue()); assertEquals(SuspensionState.ACTIVE.getName(), entry.getNewValue()); }