public abstract class AbstractHistoryManager extends AbstractManager implements HistoryManager
| Modifier and Type | Field and Description |
|---|---|
protected boolean |
enableProcessDefinitionHistoryLevel |
protected HistoryLevel |
historyLevel |
protected boolean |
usePrefixId |
processEngineConfiguration| Constructor and Description |
|---|
AbstractHistoryManager(ProcessEngineConfigurationImpl processEngineConfiguration,
HistoryLevel historyLevel,
boolean usePrefixId) |
| Modifier and Type | Method and Description |
|---|---|
void |
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 group
IdentityLink 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 new
IdentityLink 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 new
IdentityLink 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 new
IdentityLink 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 new
IdentityLink 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 user
IdentityLink 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 user
IdentityLink has been created or deleted, if history is enabled. |
HistoricActivityInstanceEntity |
findHistoricActivityInstance(ExecutionEntity execution,
boolean endTimeMustBeNull)
Finds the
HistoricActivityInstanceEntity that is active in the given execution. |
protected HistoricActivityInstanceEntity |
findHistoricActivityInstance(ExecutionEntity execution,
String activityId,
boolean endTimeMustBeNull) |
protected String |
getActivityIdForExecution(ExecutionEntity execution) |
protected EntityCache |
getEntityCache() |
protected HistoricActivityInstanceEntity |
getHistoricActivityInstanceFromCache(String executionId,
String activityId,
boolean endTimeMustBeNull) |
HistoryLevel |
getHistoryLevel() |
protected HistoryLevel |
getProcessDefinitionHistoryLevel(String processDefinitionId) |
protected String |
getProcessDefinitionId(EntityLinkEntity entityLink) |
protected String |
getProcessDefinitionId(IdentityLinkEntity identityLink) |
protected String |
getProcessDefinitionId(VariableInstanceEntity variable,
ExecutionEntity sourceActivityExecution) |
boolean |
isHistoryEnabled() |
boolean |
isHistoryEnabled(String processDefinitionId) |
boolean |
isHistoryLevelAtLeast(HistoryLevel level) |
boolean |
isHistoryLevelAtLeast(HistoryLevel level,
String processDefinitionId) |
protected String |
parseActivityType(org.flowable.bpmn.model.FlowElement element) |
void |
setHistoryLevel(HistoryLevel historyLevel) |
void |
updateActivity(ExecutionEntity childExecution,
String oldActivityId,
org.flowable.bpmn.model.FlowElement newFlowElement,
TaskEntity task,
Date updateTime)
Synchronize historic data with the current user task execution
|
getActivityInstanceEntityManager, getAsyncExecutor, getAttachmentEntityManager, getByteArrayEntityManager, getClock, getCommandContext, getCommandExecutor, getCommentEntityManager, getDeploymentEntityManager, getEventDispatcher, getExecutionEntityManager, getHistoricActivityInstanceEntityManager, getHistoricDetailEntityManager, getHistoricProcessInstanceEntityManager, getHistoryManager, getModelEntityManager, getProcessDefinitionEntityManager, getProcessDefinitionInfoEntityManager, getProcessEngineConfiguration, getResourceEntityManager, getSessionclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitcreateHistoricActivityInstance, deleteHistoryUserTaskLog, recordActivityEnd, recordActivityEnd, recordActivityStart, recordDeleteHistoricProcessInstancesByProcessDefinitionId, recordEntityLinkCreated, recordEntityLinkDeleted, recordFormPropertiesSubmitted, recordHistoricDetailVariableCreate, recordHistoricUserTaskLogEntry, recordIdentityLinkCreated, recordIdentityLinkDeleted, recordProcessDefinitionChange, recordProcessInstanceDeleted, recordProcessInstanceEnd, recordProcessInstanceNameChange, recordProcessInstanceStart, recordTaskCreated, recordTaskEnd, recordTaskInfoChange, recordVariableCreate, recordVariableRemoved, recordVariableUpdate, updateHistoricActivityInstance, updateProcessBusinessKeyInHistory, updateProcessDefinitionIdInHistoryprotected HistoryLevel historyLevel
protected boolean enableProcessDefinitionHistoryLevel
protected boolean usePrefixId
public AbstractHistoryManager(ProcessEngineConfigurationImpl processEngineConfiguration, HistoryLevel historyLevel, boolean usePrefixId)
public boolean isHistoryLevelAtLeast(HistoryLevel level)
isHistoryLevelAtLeast in interface HistoryManagerpublic boolean isHistoryLevelAtLeast(HistoryLevel level, String processDefinitionId)
isHistoryLevelAtLeast in interface HistoryManagerpublic boolean isHistoryEnabled()
isHistoryEnabled in interface HistoryManagerpublic boolean isHistoryEnabled(String processDefinitionId)
isHistoryEnabled in interface HistoryManagerpublic void createIdentityLinkComment(TaskEntity taskEntity, String userId, String groupId, String type, boolean create)
HistoryManagerIdentityLink has been created or deleted, if history is enabled.createIdentityLinkComment in interface HistoryManagerpublic void createUserIdentityLinkComment(TaskEntity taskEntity, String userId, String type, boolean create)
HistoryManagerIdentityLink has been created or deleted, if history is enabled.createUserIdentityLinkComment in interface HistoryManagerpublic void createGroupIdentityLinkComment(TaskEntity taskEntity, String groupId, String type, boolean create)
HistoryManagerIdentityLink has been created or deleted, if history is enabled.createGroupIdentityLinkComment in interface HistoryManagerpublic void createUserIdentityLinkComment(TaskEntity taskEntity, String userId, String type, boolean create, boolean forceNullUserId)
HistoryManagerIdentityLink has been created or deleted, if history is enabled.createUserIdentityLinkComment in interface HistoryManagerpublic void createIdentityLinkComment(TaskEntity taskEntity, String userId, String groupId, String type, boolean create, boolean forceNullUserId)
HistoryManagerIdentityLink has been created or deleted, if history is enabled.createIdentityLinkComment in interface HistoryManagerpublic void createProcessInstanceIdentityLinkComment(ExecutionEntity processInstance, String userId, String groupId, String type, boolean create)
HistoryManagerIdentityLink has been created or deleted, if history is enabled.createProcessInstanceIdentityLinkComment in interface HistoryManagerpublic void createProcessInstanceIdentityLinkComment(ExecutionEntity processInstance, String userId, String groupId, String type, boolean create, boolean forceNullUserId)
HistoryManagerIdentityLink has been created or deleted, if history is enabled.createProcessInstanceIdentityLinkComment in interface HistoryManagerpublic void createAttachmentComment(TaskEntity task, ExecutionEntity processInstance, String attachmentName, boolean create)
HistoryManagercreateAttachmentComment in interface HistoryManagerpublic void updateActivity(ExecutionEntity childExecution, String oldActivityId, org.flowable.bpmn.model.FlowElement newFlowElement, TaskEntity task, Date updateTime)
HistoryManagerupdateActivity in interface HistoryManagerchildExecution - entity which executes user taskoldActivityId - previous activityIdnewFlowElement - new flowElementtask - new user taskprotected HistoricActivityInstanceEntity getHistoricActivityInstanceFromCache(String executionId, String activityId, boolean endTimeMustBeNull)
public HistoricActivityInstanceEntity findHistoricActivityInstance(ExecutionEntity execution, boolean endTimeMustBeNull)
HistoryManagerHistoricActivityInstanceEntity that is active in the given execution.findHistoricActivityInstance in interface HistoryManagerprotected String getActivityIdForExecution(ExecutionEntity execution)
protected HistoricActivityInstanceEntity findHistoricActivityInstance(ExecutionEntity execution, String activityId, boolean endTimeMustBeNull)
protected HistoryLevel getProcessDefinitionHistoryLevel(String processDefinitionId)
protected String parseActivityType(org.flowable.bpmn.model.FlowElement element)
protected EntityCache getEntityCache()
public HistoryLevel getHistoryLevel()
public void setHistoryLevel(HistoryLevel historyLevel)
protected String getProcessDefinitionId(VariableInstanceEntity variable, ExecutionEntity sourceActivityExecution)
protected String getProcessDefinitionId(IdentityLinkEntity identityLink)
protected String getProcessDefinitionId(EntityLinkEntity entityLink)
Copyright © 2019 Flowable. All rights reserved.