Package org.flowable.engine.impl.history
Interface HistoryManager
-
- All Known Implementing Classes:
AbstractAsyncHistoryManager,AbstractHistoryManager,AsyncHistoryManager,CompositeHistoryManager,DefaultHistoryManager
public interface HistoryManager
-
-
Method Summary
All Methods Instance Methods Abstract Methods Deprecated 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 task, String groupId, String type, boolean create)Creates a new comment to indicate a new groupIdentityLinkhas been created or deleted, if history is enabled.voidcreateHistoricActivityInstance(ActivityInstance activityInstance)Create new historic activity instance from runtime activity instancevoidcreateIdentityLinkComment(TaskEntity task, 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 task, 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 task, 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 task, 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.voiddeleteHistoryUserTaskLog(long logNumber)Delete historic user task log entryHistoricActivityInstanceEntityfindHistoricActivityInstance(ExecutionEntity execution, boolean validateEndTimeNull)Finds theHistoricActivityInstanceEntitythat is active in the given execution.booleanisHistoryEnabled()booleanisHistoryEnabled(String processDefinitionId)booleanisHistoryLevelAtLeast(HistoryLevel level)booleanisHistoryLevelAtLeast(HistoryLevel level, String processDefinitionId)voidrecordActivityEnd(ExecutionEntity executionEntity, String deleteReason, Date endTime)Deprecated.Shouldn't be used anymore, as an execution is not unique to an activity instance.voidrecordActivityEnd(ActivityInstance activityInstance)Record the end of an activity, if activity history is enabled.voidrecordActivityStart(ActivityInstance activityInstance)Record the start of an activity, if activity history is enabled.voidrecordBulkDeleteProcessInstances(Collection<String> processInstanceIds)Bulk delete historic process instances by idvoidrecordDeleteHistoricProcessInstancesByProcessDefinitionId(String processDefinitionId)Deletes historic process instances for a provided process definition idvoidrecordEntityLinkCreated(EntityLinkEntity entityLink)Record the creation of a newEntityLink, if audit history is enabled.voidrecordEntityLinkDeleted(EntityLinkEntity entityLink)Record the deletion of aEntityLink, if audit history is enabledvoidrecordFormPropertiesSubmitted(ExecutionEntity processInstance, Map<String,String> properties, String taskId, Date createTime)Report form properties submitted, if audit history is enabled.voidrecordHistoricDetailVariableCreate(VariableInstanceEntity variable, ExecutionEntity sourceActivityExecution, boolean useActivityId, String activityInstanceId, Date createTime)Record a variable has been created, if audit history is enabled.voidrecordHistoricTaskDeleted(org.flowable.task.api.history.HistoricTaskInstance task)Record historic task deleted, if audit history is enabled.voidrecordHistoricUserTaskLogEntry(org.flowable.task.api.history.HistoricTaskLogEntryBuilder taskLogEntryBuilder)Record historic user task log entryvoidrecordIdentityLinkCreated(IdentityLinkEntity identityLink)Record the creation of a newIdentityLink, if audit history is enabled.voidrecordIdentityLinkDeleted(IdentityLinkEntity identityLink)Record the deletion of aIdentityLink, if audit history is enabledvoidrecordProcessDefinitionChange(String processInstanceId, String processDefinitionId)Record a change of the process-definition id of a process instance, if activity history is enabled.voidrecordProcessInstanceDeleted(String processInstanceId, String processDefinitionId, String processTenantId)Deletes a historic process instance and all historic data includedvoidrecordProcessInstanceEnd(ExecutionEntity processInstance, String deleteReason, String activityId, Date endTime)Record a process-instance ended.voidrecordProcessInstanceNameChange(ExecutionEntity processInstanceExecution, String newName)Record a process-instance name change.voidrecordProcessInstanceStart(ExecutionEntity processInstance)Record a process-instance started and record start-event if activity history is enabled.voidrecordTaskCreated(TaskEntity task, ExecutionEntity execution)Record the creation of a task, if audit history is enabled.voidrecordTaskEnd(TaskEntity task, ExecutionEntity execution, String deleteReason, Date endTime)Record task as ended, if audit history is enabled.voidrecordTaskInfoChange(TaskEntity taskEntity, String activityInstanceId, Date changeTime)Record task name change, if audit history is enabled.voidrecordVariableCreate(VariableInstanceEntity variable, Date createTime)Record a variable has been created, if audit history is enabled.voidrecordVariableRemoved(VariableInstanceEntity variable)Record a variable has been deleted, if audit history is enabled.voidrecordVariableUpdate(VariableInstanceEntity variable, Date updateTime)Record a variable has been updated, if audit history is enabled.voidupdateActivity(ExecutionEntity executionEntity, String oldActivityId, org.flowable.bpmn.model.FlowElement newFlowElement, TaskEntity task, Date updateTime)Synchronize historic data with the current user task executionvoidupdateHistoricActivityInstance(ActivityInstance activityInstance)Update historic activity instance according to changes done in the runtime activityvoidupdateProcessBusinessKeyInHistory(ExecutionEntity processInstance)voidupdateProcessBusinessStatusInHistory(ExecutionEntity processInstance)voidupdateProcessDefinitionIdInHistory(ProcessDefinitionEntity processDefinitionEntity, ExecutionEntity processInstance)Record the update of a process definition for historic process instance, task, and activity instance, if history is enabled.
-
-
-
Method Detail
-
isHistoryLevelAtLeast
boolean isHistoryLevelAtLeast(HistoryLevel level)
- Returns:
- true, if the configured history-level is equal to OR set to a higher value than the given level.
-
isHistoryLevelAtLeast
boolean isHistoryLevelAtLeast(HistoryLevel level, String processDefinitionId)
- Returns:
- true, if the configured process definition history-level is equal to OR set to a higher value than the given level.
-
isHistoryEnabled
boolean isHistoryEnabled()
- Returns:
- true, if history-level is configured to level other than "none".
-
isHistoryEnabled
boolean isHistoryEnabled(String processDefinitionId)
- Returns:
- true, if process definition history-level is configured to level other than "none".
-
recordProcessInstanceEnd
void recordProcessInstanceEnd(ExecutionEntity processInstance, String deleteReason, String activityId, Date endTime)
Record a process-instance ended. Updates the historic process instance if activity history is enabled.
-
recordProcessInstanceStart
void recordProcessInstanceStart(ExecutionEntity processInstance)
Record a process-instance started and record start-event if activity history is enabled.
-
recordProcessInstanceNameChange
void recordProcessInstanceNameChange(ExecutionEntity processInstanceExecution, String newName)
Record a process-instance name change.
-
recordProcessInstanceDeleted
void recordProcessInstanceDeleted(String processInstanceId, String processDefinitionId, String processTenantId)
Deletes a historic process instance and all historic data included
-
recordDeleteHistoricProcessInstancesByProcessDefinitionId
void recordDeleteHistoricProcessInstancesByProcessDefinitionId(String processDefinitionId)
Deletes historic process instances for a provided process definition id
-
recordBulkDeleteProcessInstances
void recordBulkDeleteProcessInstances(Collection<String> processInstanceIds)
Bulk delete historic process instances by id
-
recordActivityStart
void recordActivityStart(ActivityInstance activityInstance)
Record the start of an activity, if activity history is enabled.- Parameters:
activityInstance- activity instance template
-
recordActivityEnd
void recordActivityEnd(ActivityInstance activityInstance)
Record the end of an activity, if activity history is enabled.- Parameters:
activityInstance- activity instance template
-
recordActivityEnd
@Deprecated void recordActivityEnd(ExecutionEntity executionEntity, String deleteReason, Date endTime)
Deprecated.Shouldn't be used anymore, as an execution is not unique to an activity instance. UserecordActivityEnd(ActivityInstance)instead.Record activity end in the case when runtime activity instance does not exist.
-
findHistoricActivityInstance
HistoricActivityInstanceEntity findHistoricActivityInstance(ExecutionEntity execution, boolean validateEndTimeNull)
Finds theHistoricActivityInstanceEntitythat is active in the given execution.
-
recordProcessDefinitionChange
void recordProcessDefinitionChange(String processInstanceId, String processDefinitionId)
Record a change of the process-definition id of a process instance, if activity history is enabled.
-
recordTaskCreated
void recordTaskCreated(TaskEntity task, ExecutionEntity execution)
Record the creation of a task, if audit history is enabled.
-
recordTaskEnd
void recordTaskEnd(TaskEntity task, ExecutionEntity execution, String deleteReason, Date endTime)
Record task as ended, if audit history is enabled.
-
recordTaskInfoChange
void recordTaskInfoChange(TaskEntity taskEntity, String activityInstanceId, Date changeTime)
Record task name change, if audit history is enabled.
-
recordHistoricTaskDeleted
void recordHistoricTaskDeleted(org.flowable.task.api.history.HistoricTaskInstance task)
Record historic task deleted, if audit history is enabled.
-
recordVariableCreate
void recordVariableCreate(VariableInstanceEntity variable, Date createTime)
Record a variable has been created, if audit history is enabled.
-
recordHistoricDetailVariableCreate
void recordHistoricDetailVariableCreate(VariableInstanceEntity variable, ExecutionEntity sourceActivityExecution, boolean useActivityId, String activityInstanceId, Date createTime)
Record a variable has been created, if audit history is enabled.
-
recordVariableUpdate
void recordVariableUpdate(VariableInstanceEntity variable, Date updateTime)
Record a variable has been updated, if audit history is enabled.
-
recordVariableRemoved
void recordVariableRemoved(VariableInstanceEntity variable)
Record a variable has been deleted, if audit history is enabled.
-
createIdentityLinkComment
void createIdentityLinkComment(TaskEntity task, String userId, String groupId, String type, boolean create)
Creates a new comment to indicate a newIdentityLinkhas been created or deleted, if history is enabled.
-
createUserIdentityLinkComment
void createUserIdentityLinkComment(TaskEntity task, String userId, String type, boolean create)
Creates a new comment to indicate a new userIdentityLinkhas been created or deleted, if history is enabled.
-
createGroupIdentityLinkComment
void createGroupIdentityLinkComment(TaskEntity task, String groupId, String type, boolean create)
Creates a new comment to indicate a new groupIdentityLinkhas been created or deleted, if history is enabled.
-
createIdentityLinkComment
void createIdentityLinkComment(TaskEntity task, 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.
-
createUserIdentityLinkComment
void createUserIdentityLinkComment(TaskEntity task, 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.
-
createProcessInstanceIdentityLinkComment
void createProcessInstanceIdentityLinkComment(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.
-
createProcessInstanceIdentityLinkComment
void createProcessInstanceIdentityLinkComment(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.
-
createAttachmentComment
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.
-
recordFormPropertiesSubmitted
void recordFormPropertiesSubmitted(ExecutionEntity processInstance, Map<String,String> properties, String taskId, Date createTime)
Report form properties submitted, if audit history is enabled.
-
recordIdentityLinkCreated
void recordIdentityLinkCreated(IdentityLinkEntity identityLink)
Record the creation of a newIdentityLink, if audit history is enabled.
-
recordIdentityLinkDeleted
void recordIdentityLinkDeleted(IdentityLinkEntity identityLink)
Record the deletion of aIdentityLink, if audit history is enabled
-
recordEntityLinkCreated
void recordEntityLinkCreated(EntityLinkEntity entityLink)
Record the creation of a newEntityLink, if audit history is enabled.
-
recordEntityLinkDeleted
void recordEntityLinkDeleted(EntityLinkEntity entityLink)
Record the deletion of aEntityLink, if audit history is enabled
-
updateProcessBusinessKeyInHistory
void updateProcessBusinessKeyInHistory(ExecutionEntity processInstance)
-
updateProcessBusinessStatusInHistory
void updateProcessBusinessStatusInHistory(ExecutionEntity processInstance)
-
updateProcessDefinitionIdInHistory
void updateProcessDefinitionIdInHistory(ProcessDefinitionEntity processDefinitionEntity, ExecutionEntity processInstance)
Record the update of a process definition for historic process instance, task, and activity instance, if history is enabled.
-
updateActivity
void updateActivity(ExecutionEntity executionEntity, String oldActivityId, org.flowable.bpmn.model.FlowElement newFlowElement, TaskEntity task, Date updateTime)
Synchronize historic data with the current user task execution- Parameters:
executionEntity- entity which executes user taskoldActivityId- previous activityIdnewFlowElement- new flowElementtask- new user taskupdateTime-
-
updateHistoricActivityInstance
void updateHistoricActivityInstance(ActivityInstance activityInstance)
Update historic activity instance according to changes done in the runtime activity- Parameters:
activityInstance-
-
createHistoricActivityInstance
void createHistoricActivityInstance(ActivityInstance activityInstance)
Create new historic activity instance from runtime activity instance- Parameters:
activityInstance- activity instance template
-
recordHistoricUserTaskLogEntry
void recordHistoricUserTaskLogEntry(org.flowable.task.api.history.HistoricTaskLogEntryBuilder taskLogEntryBuilder)
Record historic user task log entry- Parameters:
taskLogEntryBuilder- historic user task log entry description
-
deleteHistoryUserTaskLog
void deleteHistoryUserTaskLog(long logNumber)
Delete historic user task log entry- Parameters:
logNumber- log identifier
-
-