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. |
protected HistoricActivityInstanceEntity |
createHistoricActivityInstanceEntity(ExecutionEntity execution) |
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 |
findActivityInstance(ExecutionEntity execution,
boolean createOnNotFound,
boolean endTimeMustBeNull)
Finds the
HistoricActivityInstanceEntity that is active in the given execution. |
protected HistoricActivityInstanceEntity |
findActivityInstance(ExecutionEntity execution,
String activityId,
boolean createOnNotFound,
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) |
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) |
getAsyncExecutor, getAttachmentEntityManager, getByteArrayEntityManager, getClock, getCommandContext, getCommandExecutor, getCommentEntityManager, getDeploymentEntityManager, getEventDispatcher, getEventSubscriptionEntityManager, getExecutionEntityManager, getHistoricActivityInstanceEntityManager, getHistoricDetailEntityManager, getHistoricProcessInstanceEntityManager, getHistoryManager, getModelEntityManager, getProcessDefinitionEntityManager, getProcessDefinitionInfoEntityManager, getProcessEngineConfiguration, getResourceEntityManager, getSessionclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitrecordActivityEnd, recordActivityStart, recordDeleteHistoricProcessInstancesByProcessDefinitionId, recordFormPropertiesSubmitted, recordHistoricDetailVariableCreate, recordIdentityLinkCreated, recordIdentityLinkDeleted, recordProcessDefinitionChange, recordProcessInstanceDeleted, recordProcessInstanceEnd, recordProcessInstanceNameChange, recordProcessInstanceStart, recordSubProcessInstanceStart, recordTaskCreated, recordTaskEnd, recordTaskInfoChange, recordVariableCreate, recordVariableRemoved, recordVariableUpdate, 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 HistoryManagerprotected HistoricActivityInstanceEntity getHistoricActivityInstanceFromCache(String executionId, String activityId, boolean endTimeMustBeNull)
public HistoricActivityInstanceEntity findActivityInstance(ExecutionEntity execution, boolean createOnNotFound, boolean endTimeMustBeNull)
HistoryManagerHistoricActivityInstanceEntity that is active in the given execution.findActivityInstance in interface HistoryManagerprotected String getActivityIdForExecution(ExecutionEntity execution)
protected HistoricActivityInstanceEntity findActivityInstance(ExecutionEntity execution, String activityId, boolean createOnNotFound, boolean endTimeMustBeNull)
protected HistoricActivityInstanceEntity createHistoricActivityInstanceEntity(ExecutionEntity execution)
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)
Copyright © 2018 Flowable. All rights reserved.