Package org.flowable.engine.impl.history
Class CompositeHistoryManager
java.lang.Object
org.flowable.engine.impl.history.CompositeHistoryManager
- All Implemented Interfaces:
HistoryManager
- Author:
- Filip Hrisafov
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidaddHistoryManager(HistoryManager historyManager) 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 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.
-
Field Details
-
historyManagers
-
-
Constructor Details
-
CompositeHistoryManager
-
-
Method Details
-
isHistoryLevelAtLeast
- Specified by:
isHistoryLevelAtLeastin interfaceHistoryManager- Returns:
- true, if the configured history-level is equal to OR set to a higher value than the given level.
-
isHistoryLevelAtLeast
- Specified by:
isHistoryLevelAtLeastin 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:
isHistoryEnabledin interfaceHistoryManager- Returns:
- true, if history-level is configured to level other than "none".
-
isHistoryEnabled
- Specified by:
isHistoryEnabledin interfaceHistoryManager- Returns:
- true, if process definition history-level is configured to level other than "none".
-
recordProcessInstanceEnd
public void recordProcessInstanceEnd(ExecutionEntity processInstance, String deleteReason, String activityId, Date endTime) Description copied from interface:HistoryManagerRecord a process-instance ended. Updates the historic process instance if activity history is enabled.- Specified by:
recordProcessInstanceEndin interfaceHistoryManager
-
recordProcessInstanceStart
Description copied from interface:HistoryManagerRecord a process-instance started and record start-event if activity history is enabled.- Specified by:
recordProcessInstanceStartin interfaceHistoryManager
-
recordProcessInstanceNameChange
public void recordProcessInstanceNameChange(ExecutionEntity processInstanceExecution, String newName) Description copied from interface:HistoryManagerRecord a process-instance name change.- Specified by:
recordProcessInstanceNameChangein interfaceHistoryManager
-
recordProcessInstanceDeleted
public void recordProcessInstanceDeleted(String processInstanceId, String processDefinitionId, String processTenantId) Description copied from interface:HistoryManagerDeletes a historic process instance and all historic data included- Specified by:
recordProcessInstanceDeletedin interfaceHistoryManager
-
recordDeleteHistoricProcessInstancesByProcessDefinitionId
Description copied from interface:HistoryManagerDeletes historic process instances for a provided process definition id- Specified by:
recordDeleteHistoricProcessInstancesByProcessDefinitionIdin interfaceHistoryManager
-
recordBulkDeleteProcessInstances
Description copied from interface:HistoryManagerBulk delete historic process instances by id- Specified by:
recordBulkDeleteProcessInstancesin interfaceHistoryManager
-
recordActivityStart
Description copied from interface:HistoryManagerRecord the start of an activity, if activity history is enabled.- Specified by:
recordActivityStartin interfaceHistoryManager- Parameters:
activityInstance- activity instance template
-
recordActivityEnd
Description copied from interface:HistoryManagerRecord the end of an activity, if activity history is enabled.- Specified by:
recordActivityEndin interfaceHistoryManager- Parameters:
activityInstance- activity instance template
-
findHistoricActivityInstance
public HistoricActivityInstanceEntity findHistoricActivityInstance(ExecutionEntity execution, boolean validateEndTimeNull) Description copied from interface:HistoryManagerFinds theHistoricActivityInstanceEntitythat is active in the given execution.- Specified by:
findHistoricActivityInstancein interfaceHistoryManager
-
recordProcessDefinitionChange
Description copied from interface:HistoryManagerRecord a change of the process-definition id of a process instance, if activity history is enabled.- Specified by:
recordProcessDefinitionChangein interfaceHistoryManager
-
recordTaskCreated
Description copied from interface:HistoryManagerRecord the creation of a task, if audit history is enabled.- Specified by:
recordTaskCreatedin interfaceHistoryManager
-
recordTaskEnd
public void recordTaskEnd(TaskEntity task, ExecutionEntity execution, String userId, String deleteReason, Date endTime) Description copied from interface:HistoryManagerRecord task as ended, if audit history is enabled.- Specified by:
recordTaskEndin interfaceHistoryManager
-
recordTaskInfoChange
Description copied from interface:HistoryManagerRecord task name change, if audit history is enabled.- Specified by:
recordTaskInfoChangein interfaceHistoryManager
-
recordHistoricTaskDeleted
Description copied from interface:HistoryManagerRecord historic task deleted, if audit history is enabled.- Specified by:
recordHistoricTaskDeletedin interfaceHistoryManager
-
recordVariableCreate
Description copied from interface:HistoryManagerRecord a variable has been created, if audit history is enabled.- Specified by:
recordVariableCreatein interfaceHistoryManager
-
recordHistoricDetailVariableCreate
public void recordHistoricDetailVariableCreate(VariableInstanceEntity variable, ExecutionEntity sourceActivityExecution, boolean useActivityId, String activityInstanceId, Date createTime) Description copied from interface:HistoryManagerRecord a variable has been created, if audit history is enabled.- Specified by:
recordHistoricDetailVariableCreatein interfaceHistoryManager
-
recordVariableUpdate
Description copied from interface:HistoryManagerRecord a variable has been updated, if audit history is enabled.- Specified by:
recordVariableUpdatein interfaceHistoryManager
-
recordVariableRemoved
Description copied from interface:HistoryManagerRecord a variable has been deleted, if audit history is enabled.- Specified by:
recordVariableRemovedin interfaceHistoryManager
-
createIdentityLinkComment
public void createIdentityLinkComment(TaskEntity task, String userId, String groupId, String type, boolean create) Description copied from interface:HistoryManagerCreates a new comment to indicate a newIdentityLinkhas been created or deleted, if history is enabled.- Specified by:
createIdentityLinkCommentin interfaceHistoryManager
-
createUserIdentityLinkComment
public void createUserIdentityLinkComment(TaskEntity task, String userId, String type, boolean create) Description copied from interface:HistoryManagerCreates a new comment to indicate a new userIdentityLinkhas been created or deleted, if history is enabled.- Specified by:
createUserIdentityLinkCommentin interfaceHistoryManager
-
createGroupIdentityLinkComment
public void createGroupIdentityLinkComment(TaskEntity task, String groupId, String type, boolean create) Description copied from interface:HistoryManagerCreates a new comment to indicate a new groupIdentityLinkhas been created or deleted, if history is enabled.- Specified by:
createGroupIdentityLinkCommentin interfaceHistoryManager
-
createIdentityLinkComment
public void createIdentityLinkComment(TaskEntity task, String userId, String groupId, String type, boolean create, boolean forceNullUserId) Description copied from interface:HistoryManagerCreates a new comment to indicate a newIdentityLinkhas been created or deleted, if history is enabled.- Specified by:
createIdentityLinkCommentin interfaceHistoryManager
-
createUserIdentityLinkComment
public void createUserIdentityLinkComment(TaskEntity task, String userId, String type, boolean create, boolean forceNullUserId) Description copied from interface:HistoryManagerCreates a new comment to indicate a new userIdentityLinkhas been created or deleted, if history is enabled.- Specified by:
createUserIdentityLinkCommentin interfaceHistoryManager
-
createProcessInstanceIdentityLinkComment
public void createProcessInstanceIdentityLinkComment(ExecutionEntity processInstance, String userId, String groupId, String type, boolean create) Description copied from interface:HistoryManagerCreates a new comment to indicate a newIdentityLinkhas been created or deleted, if history is enabled.- Specified by:
createProcessInstanceIdentityLinkCommentin interfaceHistoryManager
-
createProcessInstanceIdentityLinkComment
public void createProcessInstanceIdentityLinkComment(ExecutionEntity processInstance, String userId, String groupId, String type, boolean create, boolean forceNullUserId) Description copied from interface:HistoryManagerCreates a new comment to indicate a newIdentityLinkhas been created or deleted, if history is enabled.- Specified by:
createProcessInstanceIdentityLinkCommentin interfaceHistoryManager
-
createAttachmentComment
public void createAttachmentComment(TaskEntity task, ExecutionEntity processInstance, String attachmentName, boolean create) Description copied from interface:HistoryManagerCreates a new comment to indicate a new attachment has been created or deleted, if history is enabled.- Specified by:
createAttachmentCommentin interfaceHistoryManager
-
recordFormPropertiesSubmitted
public void recordFormPropertiesSubmitted(ExecutionEntity processInstance, Map<String, String> properties, String taskId, Date createTime) Description copied from interface:HistoryManagerReport form properties submitted, if audit history is enabled.- Specified by:
recordFormPropertiesSubmittedin interfaceHistoryManager
-
recordIdentityLinkCreated
Description copied from interface:HistoryManagerRecord the creation of a newIdentityLink, if audit history is enabled.- Specified by:
recordIdentityLinkCreatedin interfaceHistoryManager
-
recordIdentityLinkDeleted
Description copied from interface:HistoryManagerRecord the deletion of aIdentityLink, if audit history is enabled- Specified by:
recordIdentityLinkDeletedin interfaceHistoryManager
-
recordEntityLinkCreated
Description copied from interface:HistoryManagerRecord the creation of a newEntityLink, if audit history is enabled.- Specified by:
recordEntityLinkCreatedin interfaceHistoryManager
-
recordEntityLinkDeleted
Description copied from interface:HistoryManagerRecord the deletion of aEntityLink, if audit history is enabled- Specified by:
recordEntityLinkDeletedin interfaceHistoryManager
-
updateProcessBusinessKeyInHistory
- Specified by:
updateProcessBusinessKeyInHistoryin interfaceHistoryManager
-
updateProcessBusinessStatusInHistory
- Specified by:
updateProcessBusinessStatusInHistoryin interfaceHistoryManager
-
updateProcessDefinitionIdInHistory
public void updateProcessDefinitionIdInHistory(ProcessDefinitionEntity processDefinitionEntity, ExecutionEntity processInstance) Description copied from interface:HistoryManagerRecord the update of a process definition for historic process instance, task, and activity instance, if history is enabled.- Specified by:
updateProcessDefinitionIdInHistoryin interfaceHistoryManager
-
updateActivity
public void updateActivity(ExecutionEntity executionEntity, String oldActivityId, FlowElement newFlowElement, TaskEntity task, Date updateTime) Description copied from interface:HistoryManagerSynchronize historic data with the current user task execution- Specified by:
updateActivityin interfaceHistoryManager- Parameters:
executionEntity- entity which executes user taskoldActivityId- previous activityIdnewFlowElement- new flowElementtask- new user task
-
updateHistoricActivityInstance
Description copied from interface:HistoryManagerUpdate historic activity instance according to changes done in the runtime activity- Specified by:
updateHistoricActivityInstancein interfaceHistoryManager
-
createHistoricActivityInstance
Description copied from interface:HistoryManagerCreate new historic activity instance from runtime activity instance- Specified by:
createHistoricActivityInstancein interfaceHistoryManager- Parameters:
activityInstance- activity instance template
-
recordHistoricUserTaskLogEntry
Description copied from interface:HistoryManagerRecord historic user task log entry- Specified by:
recordHistoricUserTaskLogEntryin interfaceHistoryManager- Parameters:
taskLogEntryBuilder- historic user task log entry description
-
deleteHistoryUserTaskLog
public void deleteHistoryUserTaskLog(long logNumber) Description copied from interface:HistoryManagerDelete historic user task log entry- Specified by:
deleteHistoryUserTaskLogin interfaceHistoryManager- Parameters:
logNumber- log identifier
-
addHistoryManager
-