Package org.flowable.engine.impl.history
Interface HistoryManager
- All Known Implementing Classes:
AbstractHistoryManager,CompositeHistoryManager,DefaultHistoryManager
public interface HistoryManager
-
Method Summary
Modifier and TypeMethodDescriptionvoidcreateAttachmentComment(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 entryfindHistoricActivityInstance(ExecutionEntity execution, boolean validateEndTimeNull) Finds theHistoricActivityInstanceEntitythat is active in the given execution.booleanbooleanisHistoryEnabled(String processDefinitionId) booleanbooleanisHistoryLevelAtLeast(HistoryLevel level, String processDefinitionId) 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.voidRecord historic task deleted, if audit history is enabled.voidrecordHistoricUserTaskLogEntry(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 userId, 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, 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 Details
-
isHistoryLevelAtLeast
- Returns:
- true, if the configured history-level is equal to OR set to a higher value than the given level.
-
isHistoryLevelAtLeast
- 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
- 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
Record a process-instance started and record start-event if activity history is enabled. -
recordProcessInstanceNameChange
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
Deletes historic process instances for a provided process definition id -
recordBulkDeleteProcessInstances
Bulk delete historic process instances by id -
recordActivityStart
Record the start of an activity, if activity history is enabled.- Parameters:
activityInstance- activity instance template
-
recordActivityEnd
Record the end of an activity, if activity history is enabled.- Parameters:
activityInstance- activity instance template
-
findHistoricActivityInstance
HistoricActivityInstanceEntity findHistoricActivityInstance(ExecutionEntity execution, boolean validateEndTimeNull) Finds theHistoricActivityInstanceEntitythat is active in the given execution. -
recordProcessDefinitionChange
Record a change of the process-definition id of a process instance, if activity history is enabled. -
recordTaskCreated
Record the creation of a task, if audit history is enabled. -
recordTaskEnd
void recordTaskEnd(TaskEntity task, ExecutionEntity execution, String userId, String deleteReason, Date endTime) Record task as ended, if audit history is enabled. -
recordTaskInfoChange
Record task name change, if audit history is enabled. -
recordHistoricTaskDeleted
Record historic task deleted, if audit history is enabled. -
recordVariableCreate
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
Record a variable has been updated, if audit history is enabled. -
recordVariableRemoved
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
Creates a new comment to indicate a new userIdentityLinkhas been created or deleted, if history is enabled. -
createGroupIdentityLinkComment
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
Record the creation of a newIdentityLink, if audit history is enabled. -
recordIdentityLinkDeleted
Record the deletion of aIdentityLink, if audit history is enabled -
recordEntityLinkCreated
Record the creation of a newEntityLink, if audit history is enabled. -
recordEntityLinkDeleted
Record the deletion of aEntityLink, if audit history is enabled -
updateProcessBusinessKeyInHistory
-
updateProcessBusinessStatusInHistory
-
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, 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
Update historic activity instance according to changes done in the runtime activity- Parameters:
activityInstance-
-
createHistoricActivityInstance
Create new historic activity instance from runtime activity instance- Parameters:
activityInstance- activity instance template
-
recordHistoricUserTaskLogEntry
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
-