public virtual void UpdateFromEvent(HistoricVariableUpdateEventEntity historyEvent) { Id = historyEvent.VariableInstanceId; ProcessDefinitionKey = historyEvent.ProcessDefinitionKey; ProcessDefinitionId = historyEvent.ProcessDefinitionId; ProcessInstanceId = historyEvent.ProcessInstanceId; TaskId = historyEvent.TaskId; ExecutionId = historyEvent.ExecutionId; ActivityInstanceId = historyEvent.ScopeActivityInstanceId; TenantId = historyEvent.TenantId; CaseDefinitionKey = historyEvent.CaseDefinitionKey; CaseDefinitionId = historyEvent.CaseDefinitionId; CaseInstanceId = historyEvent.CaseInstanceId; CaseExecutionId = historyEvent.CaseExecutionId; Name = historyEvent.VariableName; LongValue = historyEvent.LongValue; DoubleValue = historyEvent.DoubleValue; TextValue = historyEvent.TextValue; TextValue2 = historyEvent.TextValue2; SerializerName = historyEvent.SerializerName; byteArrayField.DeleteByteArrayValue(); if (historyEvent.ByteValue != null) { ByteArrayValue = (historyEvent.ByteValue); } }
//public virtual void setValue(ITypedValue typedValue) //{ // typedValueField.setValue(typedValue); //} public virtual void Delete() { byteArrayField.DeleteByteArrayValue(); Context.CommandContext.GetDbEntityManager <HistoricDecisionOutputInstanceEntity>().Delete(this);//.DbEntityManager.delete(this); }
protected internal virtual void DeleteByteArrayValue() { byteArrayField.DeleteByteArrayValue(); }