Beispiel #1
0
 public virtual void deleteHistoricVariableInstanceByVariableInstanceId(string historicVariableInstanceId)
 {
     if (HistoryEnabled)
     {
         HistoricVariableInstanceEntity historicVariableInstance = findHistoricVariableInstanceByVariableInstanceId(historicVariableInstanceId);
         if (historicVariableInstance != null)
         {
             historicVariableInstance.delete();
         }
     }
 }
Beispiel #2
0
        public virtual void logHistoricVariableOperation <T1>(string operation, HistoricVariableInstanceEntity historicVariableInstance, ResourceDefinitionEntity <T1> definition, PropertyChange propertyChange)
        {
            if (UserOperationLogEnabled)
            {
                UserOperationLogContext context = new UserOperationLogContext();

                UserOperationLogContextEntryBuilder entryBuilder = UserOperationLogContextEntryBuilder.entry(operation, EntityTypes.VARIABLE).category(org.camunda.bpm.engine.history.UserOperationLogEntry_Fields.CATEGORY_OPERATOR).propertyChanges(propertyChange).inContextOf(historicVariableInstance, definition, Arrays.asList(propertyChange));

                context.addEntry(entryBuilder.create());
                fireUserOperationLog(context);
            }
        }