public virtual UserOperationLogContextEntryBuilder inContextOf <T1>(HistoricVariableInstanceEntity variable, ResourceDefinitionEntity <T1> definition, IList <PropertyChange> propertyChanges) { if (propertyChanges == null || propertyChanges.Count == 0) { if (OPERATION_TYPE_CREATE.Equals(entry_Renamed.OperationType)) { propertyChanges = Arrays.asList(PropertyChange.EMPTY_CHANGE); } } entry_Renamed.PropertyChanges = propertyChanges; entry_Renamed.RootProcessInstanceId = variable.RootProcessInstanceId; entry_Renamed.ProcessDefinitionId = variable.ProcessDefinitionId; entry_Renamed.ProcessInstanceId = variable.ProcessInstanceId; entry_Renamed.ExecutionId = variable.ExecutionId; entry_Renamed.CaseDefinitionId = variable.CaseDefinitionId; entry_Renamed.CaseInstanceId = variable.CaseInstanceId; entry_Renamed.CaseExecutionId = variable.CaseExecutionId; entry_Renamed.TaskId = variable.TaskId; if (definition != null) { if (definition is ProcessDefinitionEntity) { entry_Renamed.ProcessDefinitionKey = definition.Key; } entry_Renamed.DeploymentId = definition.DeploymentId; } return(this); }
public virtual UserOperationLogContextEntryBuilder inContextOf(ExecutionEntity processInstance, IList <PropertyChange> propertyChanges) { if (propertyChanges == null || propertyChanges.Count == 0) { if (OPERATION_TYPE_CREATE.Equals(entry_Renamed.OperationType)) { propertyChanges = Arrays.asList(PropertyChange.EMPTY_CHANGE); } } entry_Renamed.PropertyChanges = propertyChanges; entry_Renamed.RootProcessInstanceId = processInstance.RootProcessInstanceId; entry_Renamed.ProcessInstanceId = processInstance.ProcessInstanceId; entry_Renamed.ProcessDefinitionId = processInstance.ProcessDefinitionId; entry_Renamed.ExecutionId = processInstance.Id; entry_Renamed.CaseInstanceId = processInstance.CaseInstanceId; ProcessDefinitionEntity definition = processInstance.getProcessDefinition(); if (definition != null) { entry_Renamed.ProcessDefinitionKey = definition.Key; entry_Renamed.DeploymentId = definition.DeploymentId; } return(this); }
public virtual UserOperationLogContextEntryBuilder inContextOf(TaskEntity task, IList <PropertyChange> propertyChanges) { if (propertyChanges == null || propertyChanges.Count == 0) { if (OPERATION_TYPE_CREATE.Equals(entry_Renamed.OperationType)) { propertyChanges = Arrays.asList(PropertyChange.EMPTY_CHANGE); } } entry_Renamed.PropertyChanges = propertyChanges; ProcessDefinitionEntity definition = task.ProcessDefinition; if (definition != null) { entry_Renamed.ProcessDefinitionKey = definition.Key; entry_Renamed.DeploymentId = definition.DeploymentId; } else if (!string.ReferenceEquals(task.CaseDefinitionId, null)) { entry_Renamed.DeploymentId = task.CaseDefinition.DeploymentId; } entry_Renamed.ProcessDefinitionId = task.ProcessDefinitionId; entry_Renamed.ProcessInstanceId = task.ProcessInstanceId; entry_Renamed.ExecutionId = task.ExecutionId; entry_Renamed.CaseDefinitionId = task.CaseDefinitionId; entry_Renamed.CaseInstanceId = task.CaseInstanceId; entry_Renamed.CaseExecutionId = task.CaseExecutionId; entry_Renamed.TaskId = task.Id; ExecutionEntity execution = task.getExecution(); if (execution != null) { entry_Renamed.RootProcessInstanceId = execution.RootProcessInstanceId; } return(this); }
public virtual UserOperationLogContextEntryBuilder inContextOf(HistoricTaskInstance task, IList <PropertyChange> propertyChanges) { if (propertyChanges == null || propertyChanges.Count == 0) { if (OPERATION_TYPE_CREATE.Equals(entry_Renamed.OperationType)) { propertyChanges = Arrays.asList(PropertyChange.EMPTY_CHANGE); } } entry_Renamed.PropertyChanges = propertyChanges; entry_Renamed.ProcessDefinitionKey = task.ProcessDefinitionKey; entry_Renamed.ProcessDefinitionId = task.ProcessDefinitionId; entry_Renamed.ProcessInstanceId = task.ProcessInstanceId; entry_Renamed.ExecutionId = task.ExecutionId; entry_Renamed.CaseDefinitionId = task.CaseDefinitionId; entry_Renamed.CaseInstanceId = task.CaseInstanceId; entry_Renamed.CaseExecutionId = task.CaseExecutionId; entry_Renamed.TaskId = task.Id; entry_Renamed.RootProcessInstanceId = task.RootProcessInstanceId; return(this); }