@Test public void getPreviousProcessDefinitionWithTenantId() { testRule.deployForTenant(TENANT_ONE, emptyProcess); testRule.deployForTenant(TENANT_ONE, emptyProcess); testRule.deployForTenant(TENANT_ONE, emptyProcess); testRule.deployForTenant(TENANT_TWO, emptyProcess); testRule.deployForTenant(TENANT_TWO, emptyProcess); List<ProcessDefinition> latestProcessDefinitions = repositoryService.createProcessDefinitionQuery() .latestVersion() .orderByTenantId() .asc() .list(); ProcessDefinitionEntity previousDefinitionTenantOne = getPreviousDefinition((ProcessDefinitionEntity) latestProcessDefinitions.get(0)); ProcessDefinitionEntity previousDefinitionTenantTwo = getPreviousDefinition((ProcessDefinitionEntity) latestProcessDefinitions.get(1)); assertThat(previousDefinitionTenantOne.getVersion(), is(2)); assertThat(previousDefinitionTenantOne.getTenantId(), is(TENANT_ONE)); assertThat(previousDefinitionTenantTwo.getVersion(), is(1)); assertThat(previousDefinitionTenantTwo.getTenantId(), is(TENANT_TWO)); }
PropertyChange change = new PropertyChange("processDefinitionVersion", currentProcessDefinition.getVersion(), processDefinitionVersion); commandContext.getOperationLogManager().logProcessInstanceOperation( UserOperationLogEntry.OPERATION_TYPE_MODIFY_PROCESS_INSTANCE,
PropertyChange change = new PropertyChange("processDefinitionVersion", currentProcessDefinition.getVersion(), processDefinitionVersion); commandContext.getOperationLogManager().logProcessInstanceOperation( UserOperationLogEntry.OPERATION_TYPE_MODIFY_PROCESS_INSTANCE,
@Test public void getPreviousProcessDefinitionWithTenantId() { testRule.deployForTenant(TENANT_ONE, emptyProcess); testRule.deployForTenant(TENANT_ONE, emptyProcess); testRule.deployForTenant(TENANT_ONE, emptyProcess); testRule.deployForTenant(TENANT_TWO, emptyProcess); testRule.deployForTenant(TENANT_TWO, emptyProcess); List<ProcessDefinition> latestProcessDefinitions = repositoryService.createProcessDefinitionQuery() .latestVersion() .orderByTenantId() .asc() .list(); ProcessDefinitionEntity previousDefinitionTenantOne = getPreviousDefinition((ProcessDefinitionEntity) latestProcessDefinitions.get(0)); ProcessDefinitionEntity previousDefinitionTenantTwo = getPreviousDefinition((ProcessDefinitionEntity) latestProcessDefinitions.get(1)); assertThat(previousDefinitionTenantOne.getVersion(), is(2)); assertThat(previousDefinitionTenantOne.getTenantId(), is(TENANT_ONE)); assertThat(previousDefinitionTenantTwo.getVersion(), is(1)); assertThat(previousDefinitionTenantTwo.getTenantId(), is(TENANT_TWO)); }
PropertyChange change = new PropertyChange("processDefinitionVersion", currentProcessDefinition.getVersion(), processDefinitionVersion); commandContext.getOperationLogManager().logProcessInstanceOperation( UserOperationLogEntry.OPERATION_TYPE_MODIFY_PROCESS_INSTANCE,