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 TypeMethodDescriptionvoid
createAttachmentComment
(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.void
createGroupIdentityLinkComment
(TaskEntity taskEntity, String groupId, String type, boolean create) Creates a new comment to indicate a new groupIdentityLink
has been created or deleted, if history is enabled.void
createIdentityLinkComment
(TaskEntity taskEntity, String userId, String groupId, String type, boolean create) Creates a new comment to indicate a newIdentityLink
has been created or deleted, if history is enabled.void
createIdentityLinkComment
(TaskEntity taskEntity, String userId, String groupId, String type, boolean create, boolean forceNullUserId) Creates a new comment to indicate a newIdentityLink
has been created or deleted, if history is enabled.void
createProcessInstanceIdentityLinkComment
(ExecutionEntity processInstance, String userId, String groupId, String type, boolean create) Creates a new comment to indicate a newIdentityLink
has been created or deleted, if history is enabled.void
createProcessInstanceIdentityLinkComment
(ExecutionEntity processInstance, String userId, String groupId, String type, boolean create, boolean forceNullUserId) Creates a new comment to indicate a newIdentityLink
has been created or deleted, if history is enabled.void
createUserIdentityLinkComment
(TaskEntity taskEntity, String userId, String type, boolean create) Creates a new comment to indicate a new userIdentityLink
has been created or deleted, if history is enabled.void
createUserIdentityLinkComment
(TaskEntity taskEntity, String userId, String type, boolean create, boolean forceNullUserId) Creates a new comment to indicate a new userIdentityLink
has been created or deleted, if history is enabled.findHistoricActivityInstance
(ExecutionEntity execution, boolean endTimeMustBeNull) Finds theHistoricActivityInstanceEntity
that is active in the given execution.protected HistoricActivityInstanceEntity
findHistoricActivityInstance
(ExecutionEntity execution, String activityId, boolean endTimeMustBeNull) protected String
getActivityIdForExecution
(ExecutionEntity execution) protected EntityCache
protected HistoricActivityInstanceEntity
getHistoricActivityInstanceFromCache
(String executionId, String activityId, boolean endTimeMustBeNull) protected HistoryConfigurationSettings
protected String
getProcessDefinitionId
(VariableInstanceEntity variable, ExecutionEntity sourceActivityExecution) boolean
boolean
isHistoryEnabled
(String processDefinitionId) boolean
boolean
isHistoryLevelAtLeast
(HistoryLevel level, String processDefinitionId) protected String
parseActivityType
(FlowElement element) void
updateActivity
(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, 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, 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:
isHistoryLevelAtLeast
in interfaceHistoryManager
- Returns:
- true, if the configured history-level is equal to OR set to a higher value than the given level.
-
isHistoryLevelAtLeast
- Specified by:
isHistoryLevelAtLeast
in 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:
isHistoryEnabled
in interfaceHistoryManager
- Returns:
- true, if history-level is configured to level other than "none".
-
isHistoryEnabled
- Specified by:
isHistoryEnabled
in 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:HistoryManager
Creates a new comment to indicate a newIdentityLink
has been created or deleted, if history is enabled.- Specified by:
createIdentityLinkComment
in interfaceHistoryManager
-
createUserIdentityLinkComment
public void createUserIdentityLinkComment(TaskEntity taskEntity, String userId, String type, boolean create) Description copied from interface:HistoryManager
Creates a new comment to indicate a new userIdentityLink
has been created or deleted, if history is enabled.- Specified by:
createUserIdentityLinkComment
in interfaceHistoryManager
-
createGroupIdentityLinkComment
public void createGroupIdentityLinkComment(TaskEntity taskEntity, String groupId, String type, boolean create) Description copied from interface:HistoryManager
Creates a new comment to indicate a new groupIdentityLink
has been created or deleted, if history is enabled.- Specified by:
createGroupIdentityLinkComment
in interfaceHistoryManager
-
createUserIdentityLinkComment
public void createUserIdentityLinkComment(TaskEntity taskEntity, String userId, String type, boolean create, boolean forceNullUserId) Description copied from interface:HistoryManager
Creates a new comment to indicate a new userIdentityLink
has been created or deleted, if history is enabled.- Specified by:
createUserIdentityLinkComment
in interfaceHistoryManager
-
createIdentityLinkComment
public void createIdentityLinkComment(TaskEntity taskEntity, String userId, String groupId, String type, boolean create, boolean forceNullUserId) Description copied from interface:HistoryManager
Creates a new comment to indicate a newIdentityLink
has been created or deleted, if history is enabled.- Specified by:
createIdentityLinkComment
in interfaceHistoryManager
-
createProcessInstanceIdentityLinkComment
public void createProcessInstanceIdentityLinkComment(ExecutionEntity processInstance, String userId, String groupId, String type, boolean create) Description copied from interface:HistoryManager
Creates a new comment to indicate a newIdentityLink
has been created or deleted, if history is enabled.- Specified by:
createProcessInstanceIdentityLinkComment
in interfaceHistoryManager
-
createProcessInstanceIdentityLinkComment
public void createProcessInstanceIdentityLinkComment(ExecutionEntity processInstance, String userId, String groupId, String type, boolean create, boolean forceNullUserId) Description copied from interface:HistoryManager
Creates a new comment to indicate a newIdentityLink
has been created or deleted, if history is enabled.- Specified by:
createProcessInstanceIdentityLinkComment
in interfaceHistoryManager
-
createAttachmentComment
public void createAttachmentComment(TaskEntity task, ExecutionEntity processInstance, String attachmentName, boolean create) Description copied from interface:HistoryManager
Creates a new comment to indicate a new attachment has been created or deleted, if history is enabled.- Specified by:
createAttachmentComment
in interfaceHistoryManager
-
updateActivity
public void updateActivity(ExecutionEntity childExecution, String oldActivityId, FlowElement newFlowElement, TaskEntity task, Date updateTime) Description copied from interface:HistoryManager
Synchronize historic data with the current user task execution- Specified by:
updateActivity
in 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:HistoryManager
Finds theHistoricActivityInstanceEntity
that is active in the given execution.- Specified by:
findHistoricActivityInstance
in interfaceHistoryManager
-
getActivityIdForExecution
-
findHistoricActivityInstance
protected HistoricActivityInstanceEntity findHistoricActivityInstance(ExecutionEntity execution, String activityId, boolean endTimeMustBeNull) -
parseActivityType
-
getEntityCache
-
getProcessDefinitionId
protected String getProcessDefinitionId(VariableInstanceEntity variable, ExecutionEntity sourceActivityExecution)
-