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:
AbstractAsyncHistoryManager,DefaultHistoryManager
public abstract class AbstractHistoryManager extends AbstractManager implements HistoryManager
-
-
Field Summary
-
Fields inherited from class org.flowable.engine.impl.persistence.AbstractManager
processEngineConfiguration
-
-
Constructor Summary
Constructors Constructor Description AbstractHistoryManager(ProcessEngineConfigurationImpl processEngineConfiguration)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidcreateAttachmentComment(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.HistoricActivityInstanceEntityfindHistoricActivityInstance(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 EntityCachegetEntityCache()protected HistoricActivityInstanceEntitygetHistoricActivityInstanceFromCache(String executionId, String activityId, boolean endTimeMustBeNull)protected HistoryConfigurationSettingsgetHistoryConfigurationSettings()protected StringgetProcessDefinitionId(VariableInstanceEntity variable, ExecutionEntity sourceActivityExecution)booleanisHistoryEnabled()booleanisHistoryEnabled(String processDefinitionId)booleanisHistoryLevelAtLeast(HistoryLevel level)booleanisHistoryLevelAtLeast(HistoryLevel level, String processDefinitionId)protected StringparseActivityType(org.flowable.bpmn.model.FlowElement element)voidupdateActivity(ExecutionEntity childExecution, String oldActivityId, org.flowable.bpmn.model.FlowElement newFlowElement, TaskEntity task, Date updateTime)Synchronize historic data with the current user task execution-
Methods 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, getSession
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.flowable.engine.impl.history.HistoryManager
createHistoricActivityInstance, deleteHistoryUserTaskLog, recordActivityEnd, 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 Detail
-
AbstractHistoryManager
public AbstractHistoryManager(ProcessEngineConfigurationImpl processEngineConfiguration)
-
-
Method Detail
-
getHistoryConfigurationSettings
protected HistoryConfigurationSettings getHistoryConfigurationSettings()
-
isHistoryLevelAtLeast
public boolean isHistoryLevelAtLeast(HistoryLevel level)
- 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
public boolean isHistoryLevelAtLeast(HistoryLevel level, String processDefinitionId)
- 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
public boolean isHistoryEnabled(String processDefinitionId)
- 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, org.flowable.bpmn.model.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
protected String getActivityIdForExecution(ExecutionEntity execution)
-
findHistoricActivityInstance
protected HistoricActivityInstanceEntity findHistoricActivityInstance(ExecutionEntity execution, String activityId, boolean endTimeMustBeNull)
-
parseActivityType
protected String parseActivityType(org.flowable.bpmn.model.FlowElement element)
-
getEntityCache
protected EntityCache getEntityCache()
-
getProcessDefinitionId
protected String getProcessDefinitionId(VariableInstanceEntity variable, ExecutionEntity sourceActivityExecution)
-
-