public class CompositeHistoryManager extends Object implements HistoryManager
| Modifier and Type | Field and Description |
|---|---|
protected Collection<HistoryManager> |
historyManagers |
| Constructor and Description |
|---|
CompositeHistoryManager(Collection<HistoryManager> historyManagers) |
| 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 task,
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 |
createHistoricActivityInstance(ActivityInstance activityInstance)
Create new historic activity instance from runtime activity instance
|
void |
createIdentityLinkComment(TaskEntity task,
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 task,
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 task,
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 task,
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. |
void |
deleteHistoryUserTaskLog(long logNumber)
Delete historic user task log entry
|
HistoricActivityInstanceEntity |
findHistoricActivityInstance(ExecutionEntity execution,
boolean validateEndTimeNull)
Finds the
HistoricActivityInstanceEntity that is active in the given execution. |
boolean |
isHistoryEnabled() |
boolean |
isHistoryEnabled(String processDefinitionId) |
boolean |
isHistoryLevelAtLeast(HistoryLevel level) |
boolean |
isHistoryLevelAtLeast(HistoryLevel level,
String processDefinitionId) |
void |
recordActivityEnd(ActivityInstance activityInstance)
Record the end of an activity, if activity history is enabled.
|
void |
recordActivityEnd(ExecutionEntity executionEntity,
String deleteReason,
Date endTime)
Record activity end in the case when runtime activity instance does not exist.
|
void |
recordActivityStart(ActivityInstance activityInstance)
Record the start of an activity, if activity history is enabled.
|
void |
recordDeleteHistoricProcessInstancesByProcessDefinitionId(String processDefinitionId)
Deletes historic process instances for a provided process definition id
|
void |
recordEntityLinkCreated(EntityLinkEntity entityLink)
Record the creation of a new
EntityLink, if audit history is enabled. |
void |
recordEntityLinkDeleted(EntityLinkEntity entityLink)
Record the deletion of a
EntityLink, if audit history is enabled |
void |
recordFormPropertiesSubmitted(ExecutionEntity processInstance,
Map<String,String> properties,
String taskId,
Date createTime)
Report form properties submitted, if audit history is enabled.
|
void |
recordHistoricDetailVariableCreate(VariableInstanceEntity variable,
ExecutionEntity sourceActivityExecution,
boolean useActivityId,
String activityInstanceId,
Date createTime)
Record a variable has been created, if audit history is enabled.
|
void |
recordHistoricUserTaskLogEntry(org.flowable.task.api.history.HistoricTaskLogEntryBuilder taskLogEntryBuilder)
Record historic user task log entry
|
void |
recordIdentityLinkCreated(IdentityLinkEntity identityLink)
Record the creation of a new
IdentityLink, if audit history is enabled. |
void |
recordIdentityLinkDeleted(IdentityLinkEntity identityLink)
Record the deletion of a
IdentityLink, if audit history is enabled |
void |
recordProcessDefinitionChange(String processInstanceId,
String processDefinitionId)
Record a change of the process-definition id of a process instance, if activity history is enabled.
|
void |
recordProcessInstanceDeleted(String processInstanceId,
String processDefinitionId)
Deletes a historic process instance and all historic data included
|
void |
recordProcessInstanceEnd(ExecutionEntity processInstance,
String deleteReason,
String activityId,
Date endTime)
Record a process-instance ended.
|
void |
recordProcessInstanceNameChange(ExecutionEntity processInstanceExecution,
String newName)
Record a process-instance name change.
|
void |
recordProcessInstanceStart(ExecutionEntity processInstance)
Record a process-instance started and record start-event if activity history is enabled.
|
void |
recordTaskCreated(TaskEntity task,
ExecutionEntity execution)
Record the creation of a task, if audit history is enabled.
|
void |
recordTaskEnd(TaskEntity task,
ExecutionEntity execution,
String deleteReason,
Date endTime)
Record task as ended, if audit history is enabled.
|
void |
recordTaskInfoChange(TaskEntity taskEntity,
String activityInstanceId,
Date changeTime)
Record task name change, if audit history is enabled.
|
void |
recordVariableCreate(VariableInstanceEntity variable,
Date createTime)
Record a variable has been created, if audit history is enabled.
|
void |
recordVariableRemoved(VariableInstanceEntity variable)
Record a variable has been deleted, if audit history is enabled.
|
void |
recordVariableUpdate(VariableInstanceEntity variable,
Date updateTime)
Record a variable has been updated, if audit history is enabled.
|
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
|
void |
updateHistoricActivityInstance(ActivityInstance activityInstance)
Update historic activity instance according to changes done in the runtime activity
|
void |
updateProcessBusinessKeyInHistory(ExecutionEntity processInstance) |
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.
|
protected final Collection<HistoryManager> historyManagers
public CompositeHistoryManager(Collection<HistoryManager> historyManagers)
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 recordProcessInstanceEnd(ExecutionEntity processInstance, String deleteReason, String activityId, Date endTime)
HistoryManagerrecordProcessInstanceEnd in interface HistoryManagerpublic void recordProcessInstanceStart(ExecutionEntity processInstance)
HistoryManagerrecordProcessInstanceStart in interface HistoryManagerpublic void recordProcessInstanceNameChange(ExecutionEntity processInstanceExecution, String newName)
HistoryManagerrecordProcessInstanceNameChange in interface HistoryManagerpublic void recordProcessInstanceDeleted(String processInstanceId, String processDefinitionId)
HistoryManagerrecordProcessInstanceDeleted in interface HistoryManagerpublic void recordDeleteHistoricProcessInstancesByProcessDefinitionId(String processDefinitionId)
HistoryManagerrecordDeleteHistoricProcessInstancesByProcessDefinitionId in interface HistoryManagerpublic void recordActivityStart(ActivityInstance activityInstance)
HistoryManagerrecordActivityStart in interface HistoryManageractivityInstance - activity instance templatepublic void recordActivityEnd(ActivityInstance activityInstance)
HistoryManagerrecordActivityEnd in interface HistoryManageractivityInstance - activity instance templatepublic void recordActivityEnd(ExecutionEntity executionEntity, String deleteReason, Date endTime)
HistoryManagerrecordActivityEnd in interface HistoryManagerpublic HistoricActivityInstanceEntity findHistoricActivityInstance(ExecutionEntity execution, boolean validateEndTimeNull)
HistoryManagerHistoricActivityInstanceEntity that is active in the given execution.findHistoricActivityInstance in interface HistoryManagerpublic void recordProcessDefinitionChange(String processInstanceId, String processDefinitionId)
HistoryManagerrecordProcessDefinitionChange in interface HistoryManagerpublic void recordTaskCreated(TaskEntity task, ExecutionEntity execution)
HistoryManagerrecordTaskCreated in interface HistoryManagerpublic void recordTaskEnd(TaskEntity task, ExecutionEntity execution, String deleteReason, Date endTime)
HistoryManagerrecordTaskEnd in interface HistoryManagerpublic void recordTaskInfoChange(TaskEntity taskEntity, String activityInstanceId, Date changeTime)
HistoryManagerrecordTaskInfoChange in interface HistoryManagerpublic void recordVariableCreate(VariableInstanceEntity variable, Date createTime)
HistoryManagerrecordVariableCreate in interface HistoryManagerpublic void recordHistoricDetailVariableCreate(VariableInstanceEntity variable, ExecutionEntity sourceActivityExecution, boolean useActivityId, String activityInstanceId, Date createTime)
HistoryManagerrecordHistoricDetailVariableCreate in interface HistoryManagerpublic void recordVariableUpdate(VariableInstanceEntity variable, Date updateTime)
HistoryManagerrecordVariableUpdate in interface HistoryManagerpublic void recordVariableRemoved(VariableInstanceEntity variable)
HistoryManagerrecordVariableRemoved in interface HistoryManagerpublic void createIdentityLinkComment(TaskEntity task, 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 task, String userId, String type, boolean create)
HistoryManagerIdentityLink has been created or deleted, if history is enabled.createUserIdentityLinkComment in interface HistoryManagerpublic void createGroupIdentityLinkComment(TaskEntity task, String groupId, String type, boolean create)
HistoryManagerIdentityLink has been created or deleted, if history is enabled.createGroupIdentityLinkComment in interface HistoryManagerpublic void createIdentityLinkComment(TaskEntity task, 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 createUserIdentityLinkComment(TaskEntity task, String userId, String type, boolean create, boolean forceNullUserId)
HistoryManagerIdentityLink has been created or deleted, if history is enabled.createUserIdentityLinkComment 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 recordFormPropertiesSubmitted(ExecutionEntity processInstance, Map<String,String> properties, String taskId, Date createTime)
HistoryManagerrecordFormPropertiesSubmitted in interface HistoryManagerpublic void recordIdentityLinkCreated(IdentityLinkEntity identityLink)
HistoryManagerIdentityLink, if audit history is enabled.recordIdentityLinkCreated in interface HistoryManagerpublic void recordIdentityLinkDeleted(IdentityLinkEntity identityLink)
HistoryManagerIdentityLink, if audit history is enabledrecordIdentityLinkDeleted in interface HistoryManagerpublic void recordEntityLinkCreated(EntityLinkEntity entityLink)
HistoryManagerEntityLink, if audit history is enabled.recordEntityLinkCreated in interface HistoryManagerpublic void recordEntityLinkDeleted(EntityLinkEntity entityLink)
HistoryManagerEntityLink, if audit history is enabledrecordEntityLinkDeleted in interface HistoryManagerpublic void updateProcessBusinessKeyInHistory(ExecutionEntity processInstance)
updateProcessBusinessKeyInHistory in interface HistoryManagerpublic void updateProcessDefinitionIdInHistory(ProcessDefinitionEntity processDefinitionEntity, ExecutionEntity processInstance)
HistoryManagerupdateProcessDefinitionIdInHistory in interface HistoryManagerpublic void updateActivity(ExecutionEntity executionEntity, String oldActivityId, org.flowable.bpmn.model.FlowElement newFlowElement, TaskEntity task, Date updateTime)
HistoryManagerupdateActivity in interface HistoryManagerexecutionEntity - entity which executes user taskoldActivityId - previous activityIdnewFlowElement - new flowElementtask - new user taskpublic void updateHistoricActivityInstance(ActivityInstance activityInstance)
HistoryManagerupdateHistoricActivityInstance in interface HistoryManagerpublic void createHistoricActivityInstance(ActivityInstance activityInstance)
HistoryManagercreateHistoricActivityInstance in interface HistoryManageractivityInstance - activity instance templatepublic void recordHistoricUserTaskLogEntry(org.flowable.task.api.history.HistoricTaskLogEntryBuilder taskLogEntryBuilder)
HistoryManagerrecordHistoricUserTaskLogEntry in interface HistoryManagertaskLogEntryBuilder - historic user task log entry descriptionpublic void deleteHistoryUserTaskLog(long logNumber)
HistoryManagerdeleteHistoryUserTaskLog in interface HistoryManagerlogNumber - log identifierCopyright © 2019 Flowable. All rights reserved.