Package org.flowable.engine.impl.history
Class AbstractHistoryManager
java.lang.Object
org.flowable.engine.impl.persistence.AbstractManager
org.flowable.engine.impl.history.AbstractHistoryManager
- All Implemented Interfaces:
HistoryManager
- Direct Known Subclasses:
DefaultHistoryManager
-
Field Summary
Fields inherited from class org.flowable.engine.impl.persistence.AbstractManager
processEngineConfiguration -
Constructor Summary
ConstructorsConstructorDescriptionAbstractHistoryManager(ProcessEngineConfigurationImpl processEngineConfiguration) -
Method Summary
Modifier and TypeMethodDescriptionvoidcreateAttachmentComment(TaskEntity task, ExecutionEntity processInstance, String attachmentName, boolean create) Creates a new comment to indicate a new attachment has been created or deleted, if history is enabled.voidcreateGroupIdentityLinkComment(TaskEntity taskEntity, String groupId, String type, boolean create) Creates a new comment to indicate a new groupIdentityLinkhas been created or deleted, if history is enabled.voidcreateIdentityLinkComment(TaskEntity taskEntity, String userId, String groupId, String type, boolean create) Creates a new comment to indicate a newIdentityLinkhas been created or deleted, if history is enabled.voidcreateIdentityLinkComment(TaskEntity taskEntity, String userId, String groupId, String type, boolean create, boolean forceNullUserId) Creates a new comment to indicate a newIdentityLinkhas been created or deleted, if history is enabled.voidcreateProcessInstanceIdentityLinkComment(ExecutionEntity processInstance, String userId, String groupId, String type, boolean create) Creates a new comment to indicate a newIdentityLinkhas been created or deleted, if history is enabled.voidcreateProcessInstanceIdentityLinkComment(ExecutionEntity processInstance, String userId, String groupId, String type, boolean create, boolean forceNullUserId) Creates a new comment to indicate a newIdentityLinkhas been created or deleted, if history is enabled.voidcreateUserIdentityLinkComment(TaskEntity taskEntity, String userId, String type, boolean create) Creates a new comment to indicate a new userIdentityLinkhas been created or deleted, if history is enabled.voidcreateUserIdentityLinkComment(TaskEntity taskEntity, String userId, String type, boolean create, boolean forceNullUserId) Creates a new comment to indicate a new userIdentityLinkhas been created or deleted, if history is enabled.findHistoricActivityInstance(ExecutionEntity execution, boolean endTimeMustBeNull) Finds theHistoricActivityInstanceEntitythat is active in the given execution.protected HistoricActivityInstanceEntityfindHistoricActivityInstance(ExecutionEntity execution, String activityId, boolean endTimeMustBeNull) protected StringgetActivityIdForExecution(ExecutionEntity execution) protected EntityCacheprotected HistoricActivityInstanceEntitygetHistoricActivityInstanceFromCache(String executionId, String activityId, boolean endTimeMustBeNull) protected HistoryConfigurationSettingsprotected StringgetProcessDefinitionId(VariableInstanceEntity variable, ExecutionEntity sourceActivityExecution) booleanbooleanisHistoryEnabled(String processDefinitionId) booleanbooleanisHistoryLevelAtLeast(HistoryLevel level, String processDefinitionId) protected StringparseActivityType(FlowElement element) voidupdateActivity(ExecutionEntity childExecution, String oldActivityId, FlowElement newFlowElement, TaskEntity task, Date updateTime) Synchronize historic data with the current user task executionMethods inherited from class org.flowable.engine.impl.persistence.AbstractManager
getActivityInstanceEntityManager, getAsyncExecutor, getAttachmentEntityManager, getByteArrayEntityManager, getClock, getCommandContext, getCommandExecutor, getCommentEntityManager, getDeploymentEntityManager, getEventDispatcher, getExecutionEntityManager, getHistoricActivityInstanceEntityManager, getHistoricDetailEntityManager, getHistoricProcessInstanceEntityManager, getHistoryManager, getModelEntityManager, getProcessDefinitionEntityManager, getProcessDefinitionInfoEntityManager, getProcessEngineConfiguration, getResourceEntityManager, getSessionMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.flowable.engine.impl.history.HistoryManager
createHistoricActivityInstance, deleteHistoryUserTaskLog, recordActivityEnd, recordActivityStart, recordBulkDeleteProcessInstances, recordDeleteHistoricProcessInstancesByProcessDefinitionId, recordEntityLinkCreated, recordEntityLinkDeleted, recordFormPropertiesSubmitted, recordHistoricDetailVariableCreate, recordHistoricTaskDeleted, recordHistoricUserTaskLogEntry, recordIdentityLinkCreated, recordIdentityLinkDeleted, recordProcessDefinitionChange, recordProcessInstanceDeleted, recordProcessInstanceEnd, recordProcessInstanceNameChange, recordProcessInstanceStart, recordTaskCreated, recordTaskEnd, recordTaskInfoChange, recordVariableCreate, recordVariableRemoved, recordVariableUpdate, updateHistoricActivityInstance, updateProcessBusinessKeyInHistory, updateProcessBusinessStatusInHistory, updateProcessDefinitionIdInHistory
-
Constructor Details
-
AbstractHistoryManager
-
-
Method Details
-
getHistoryConfigurationSettings
-
isHistoryLevelAtLeast
- Specified by:
isHistoryLevelAtLeastin interfaceHistoryManager- Returns:
- true, if the configured history-level is equal to OR set to a higher value than the given level.
-
isHistoryLevelAtLeast
- Specified by:
isHistoryLevelAtLeastin interfaceHistoryManager- Returns:
- true, if the configured process definition history-level is equal to OR set to a higher value than the given level.
-
isHistoryEnabled
public boolean isHistoryEnabled()- Specified by:
isHistoryEnabledin interfaceHistoryManager- Returns:
- true, if history-level is configured to level other than "none".
-
isHistoryEnabled
- Specified by:
isHistoryEnabledin interfaceHistoryManager- Returns:
- true, if process definition history-level is configured to level other than "none".
-
createIdentityLinkComment
public void createIdentityLinkComment(TaskEntity taskEntity, String userId, String groupId, String type, boolean create) Description copied from interface:HistoryManagerCreates a new comment to indicate a newIdentityLinkhas been created or deleted, if history is enabled.- Specified by:
createIdentityLinkCommentin interfaceHistoryManager
-
createUserIdentityLinkComment
public void createUserIdentityLinkComment(TaskEntity taskEntity, String userId, String type, boolean create) Description copied from interface:HistoryManagerCreates a new comment to indicate a new userIdentityLinkhas been created or deleted, if history is enabled.- Specified by:
createUserIdentityLinkCommentin interfaceHistoryManager
-
createGroupIdentityLinkComment
public void createGroupIdentityLinkComment(TaskEntity taskEntity, String groupId, String type, boolean create) Description copied from interface:HistoryManagerCreates a new comment to indicate a new groupIdentityLinkhas been created or deleted, if history is enabled.- Specified by:
createGroupIdentityLinkCommentin interfaceHistoryManager
-
createUserIdentityLinkComment
public void createUserIdentityLinkComment(TaskEntity taskEntity, String userId, String type, boolean create, boolean forceNullUserId) Description copied from interface:HistoryManagerCreates a new comment to indicate a new userIdentityLinkhas been created or deleted, if history is enabled.- Specified by:
createUserIdentityLinkCommentin interfaceHistoryManager
-
createIdentityLinkComment
public void createIdentityLinkComment(TaskEntity taskEntity, String userId, String groupId, String type, boolean create, boolean forceNullUserId) Description copied from interface:HistoryManagerCreates a new comment to indicate a newIdentityLinkhas been created or deleted, if history is enabled.- Specified by:
createIdentityLinkCommentin interfaceHistoryManager
-
createProcessInstanceIdentityLinkComment
public void createProcessInstanceIdentityLinkComment(ExecutionEntity processInstance, String userId, String groupId, String type, boolean create) Description copied from interface:HistoryManagerCreates a new comment to indicate a newIdentityLinkhas been created or deleted, if history is enabled.- Specified by:
createProcessInstanceIdentityLinkCommentin interfaceHistoryManager
-
createProcessInstanceIdentityLinkComment
public void createProcessInstanceIdentityLinkComment(ExecutionEntity processInstance, String userId, String groupId, String type, boolean create, boolean forceNullUserId) Description copied from interface:HistoryManagerCreates a new comment to indicate a newIdentityLinkhas been created or deleted, if history is enabled.- Specified by:
createProcessInstanceIdentityLinkCommentin interfaceHistoryManager
-
createAttachmentComment
public void createAttachmentComment(TaskEntity task, ExecutionEntity processInstance, String attachmentName, boolean create) Description copied from interface:HistoryManagerCreates a new comment to indicate a new attachment has been created or deleted, if history is enabled.- Specified by:
createAttachmentCommentin interfaceHistoryManager
-
updateActivity
public void updateActivity(ExecutionEntity childExecution, String oldActivityId, FlowElement newFlowElement, TaskEntity task, Date updateTime) Description copied from interface:HistoryManagerSynchronize historic data with the current user task execution- Specified by:
updateActivityin interfaceHistoryManager- Parameters:
childExecution- entity which executes user taskoldActivityId- previous activityIdnewFlowElement- new flowElementtask- new user task
-
getHistoricActivityInstanceFromCache
protected HistoricActivityInstanceEntity getHistoricActivityInstanceFromCache(String executionId, String activityId, boolean endTimeMustBeNull) -
findHistoricActivityInstance
public HistoricActivityInstanceEntity findHistoricActivityInstance(ExecutionEntity execution, boolean endTimeMustBeNull) Description copied from interface:HistoryManagerFinds theHistoricActivityInstanceEntitythat is active in the given execution.- Specified by:
findHistoricActivityInstancein interfaceHistoryManager
-
getActivityIdForExecution
-
findHistoricActivityInstance
protected HistoricActivityInstanceEntity findHistoricActivityInstance(ExecutionEntity execution, String activityId, boolean endTimeMustBeNull) -
parseActivityType
-
getEntityCache
-
getProcessDefinitionId
protected String getProcessDefinitionId(VariableInstanceEntity variable, ExecutionEntity sourceActivityExecution)
-