Package org.activiti.engine.impl.history
Interface HistoryManager
-
- All Known Implementing Classes:
DefaultHistoryManager
@Internal public interface HistoryManager
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voidcreateAttachmentComment(String taskId, String processInstanceId, String attachmentName, boolean create)Creates a new comment to indicate a new attachment has been created or deleted, if history is enabled.voidcreateGroupIdentityLinkComment(String taskId, String groupId, String type, boolean create)Creates a new comment to indicate a new groupIdentityLinkhas been created or deleted, if history is enabled.voidcreateIdentityLinkComment(String taskId, 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(String taskId, 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(String processInstanceId, 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(String processInstanceId, 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(String taskId, String userId, String type, boolean create)Creates a new comment to indicate a new userIdentityLinkhas been created or deleted, if history is enabled.voidcreateUserIdentityLinkComment(String taskId, 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.voiddeleteHistoricIdentityLink(String id)HistoricActivityInstanceEntityfindActivityInstance(ExecutionEntity execution, boolean createOnNotFound, boolean validateEndTimeNull)Finds theHistoricActivityInstanceEntitythat is active in the given execution.booleanisHistoryEnabled()booleanisHistoryLevelAtLeast(HistoryLevel level)voidrecordActivityEnd(ExecutionEntity executionEntity, String deleteReason)Record the end of an activity, if activity history is enabled.voidrecordActivityStart(ExecutionEntity executionEntity)Record the start of an activity, if activity history is enabled.voidrecordHistoricDetailVariableCreate(VariableInstanceEntity variable, ExecutionEntity sourceActivityExecution, boolean useActivityId)Record a variable has been created, if audit history is enabled.voidrecordIdentityLinkCreated(IdentityLinkEntity identityLink)Record the creation of a newIdentityLink, if audit history is enabled.voidrecordProcessDefinitionChange(String processInstanceId, String processDefinitionId)Record a change of the process-definition id of a process instance, if activity history is enabled.voidrecordProcessInstanceEnd(String processInstanceId, String deleteReason, String activityId)Record a process-instance ended.voidrecordProcessInstanceNameChange(String processInstanceId, String newName)Record a process-instance name change.voidrecordProcessInstanceStart(ExecutionEntity processInstance, FlowElement startElement)Record a process-instance started and record start-event if activity history is enabled.voidrecordSubProcessInstanceStart(ExecutionEntity parentExecution, ExecutionEntity subProcessInstance, FlowElement initialFlowElement)Record a sub-process-instance started and alters the calledProcessinstanceId on the current active activity's historic counterpart.voidrecordTaskAssigneeChange(String taskId, String assignee)Record task assignee change, if audit history is enabled.voidrecordTaskAssignment(TaskEntity task)Record the assignment of task, if activity history is enabled.voidrecordTaskCategoryChange(String taskId, String category)Record task category change, if audit history is enabled.voidrecordTaskClaim(TaskEntity task)record task instance claim time, if audit history is enabledvoidrecordTaskCreated(TaskEntity task, ExecutionEntity execution)Record the creation of a task, if audit history is enabled.voidrecordTaskDefinitionKeyChange(String taskId, String taskDefinitionKey)Record task definition key change, if audit history is enabled.voidrecordTaskDescriptionChange(String taskId, String description)Record task description change, if audit history is enabled.voidrecordTaskDueDateChange(String taskId, Date dueDate)Record task due date change, if audit history is enabled.voidrecordTaskEnd(String taskId, String deleteReason)Record task as ended, if audit history is enabled.voidrecordTaskExecutionIdChange(String taskId, String executionId)Record task execution id change, if audit history is enabled.voidrecordTaskFormKeyChange(String taskId, String formKey)Record task form key change, if audit history is enabled.voidrecordTaskId(TaskEntity task)Record the id of a the task associated with a historic activity, if activity history is enabled.voidrecordTaskNameChange(String taskId, String taskName)Record task name change, if audit history is enabled.voidrecordTaskOwnerChange(String taskId, String owner)Record task owner change, if audit history is enabled.voidrecordTaskParentTaskIdChange(String taskId, String parentTaskId)Record task parent task id change, if audit history is enabled.voidrecordTaskPriorityChange(String taskId, int priority)Record task priority change, if audit history is enabled.voidrecordTaskProcessDefinitionChange(String taskId, String processDefinitionId)Record a change of the process-definition id of a task instance, if activity history is enabled.voidrecordVariableCreate(VariableInstanceEntity variable)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)Record a variable has been updated, if audit history is enabled.voidupdateProcessBusinessKeyInHistory(ExecutionEntity processInstance)
-
-
-
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.
-
isHistoryEnabled
boolean isHistoryEnabled()
- Returns:
- true, if history-level is configured to level other than "none".
-
recordProcessInstanceEnd
void recordProcessInstanceEnd(String processInstanceId, String deleteReason, String activityId)
Record a process-instance ended. Updates the historic process instance if activity history is enabled.
-
recordProcessInstanceStart
void recordProcessInstanceStart(ExecutionEntity processInstance, FlowElement startElement)
Record a process-instance started and record start-event if activity history is enabled.
-
recordProcessInstanceNameChange
void recordProcessInstanceNameChange(String processInstanceId, String newName)
Record a process-instance name change.
-
recordSubProcessInstanceStart
void recordSubProcessInstanceStart(ExecutionEntity parentExecution, ExecutionEntity subProcessInstance, FlowElement initialFlowElement)
Record a sub-process-instance started and alters the calledProcessinstanceId on the current active activity's historic counterpart. Only effective when activity history is enabled.
-
recordActivityStart
void recordActivityStart(ExecutionEntity executionEntity)
Record the start of an activity, if activity history is enabled.
-
recordActivityEnd
void recordActivityEnd(ExecutionEntity executionEntity, String deleteReason)
Record the end of an activity, if activity history is enabled.
-
findActivityInstance
HistoricActivityInstanceEntity findActivityInstance(ExecutionEntity execution, boolean createOnNotFound, 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.
-
recordTaskAssignment
void recordTaskAssignment(TaskEntity task)
Record the assignment of task, if activity history is enabled.
-
recordTaskClaim
void recordTaskClaim(TaskEntity task)
record task instance claim time, if audit history is enabled- Parameters:
task-
-
recordTaskId
void recordTaskId(TaskEntity task)
Record the id of a the task associated with a historic activity, if activity history is enabled.
-
recordTaskEnd
void recordTaskEnd(String taskId, String deleteReason)
Record task as ended, if audit history is enabled.
-
recordTaskAssigneeChange
void recordTaskAssigneeChange(String taskId, String assignee)
Record task assignee change, if audit history is enabled.
-
recordTaskOwnerChange
void recordTaskOwnerChange(String taskId, String owner)
Record task owner change, if audit history is enabled.
-
recordTaskNameChange
void recordTaskNameChange(String taskId, String taskName)
Record task name change, if audit history is enabled.
-
recordTaskDescriptionChange
void recordTaskDescriptionChange(String taskId, String description)
Record task description change, if audit history is enabled.
-
recordTaskDueDateChange
void recordTaskDueDateChange(String taskId, Date dueDate)
Record task due date change, if audit history is enabled.
-
recordTaskPriorityChange
void recordTaskPriorityChange(String taskId, int priority)
Record task priority change, if audit history is enabled.
-
recordTaskCategoryChange
void recordTaskCategoryChange(String taskId, String category)
Record task category change, if audit history is enabled.
-
recordTaskFormKeyChange
void recordTaskFormKeyChange(String taskId, String formKey)
Record task form key change, if audit history is enabled.
-
recordTaskParentTaskIdChange
void recordTaskParentTaskIdChange(String taskId, String parentTaskId)
Record task parent task id change, if audit history is enabled.
-
recordTaskExecutionIdChange
void recordTaskExecutionIdChange(String taskId, String executionId)
Record task execution id change, if audit history is enabled.
-
recordTaskDefinitionKeyChange
void recordTaskDefinitionKeyChange(String taskId, String taskDefinitionKey)
Record task definition key change, if audit history is enabled.
-
recordTaskProcessDefinitionChange
void recordTaskProcessDefinitionChange(String taskId, String processDefinitionId)
Record a change of the process-definition id of a task instance, if activity history is enabled.
-
recordVariableCreate
void recordVariableCreate(VariableInstanceEntity variable)
Record a variable has been created, if audit history is enabled.
-
recordHistoricDetailVariableCreate
void recordHistoricDetailVariableCreate(VariableInstanceEntity variable, ExecutionEntity sourceActivityExecution, boolean useActivityId)
Record a variable has been created, if audit history is enabled.
-
recordVariableUpdate
void recordVariableUpdate(VariableInstanceEntity variable)
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(String taskId, 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(String taskId, 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(String taskId, 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(String taskId, 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(String taskId, 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(String processInstanceId, 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(String processInstanceId, 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(String taskId, String processInstanceId, String attachmentName, boolean create)
Creates a new comment to indicate a new attachment has been created or deleted, if history is enabled.
-
recordIdentityLinkCreated
void recordIdentityLinkCreated(IdentityLinkEntity identityLink)
Record the creation of a newIdentityLink, if audit history is enabled.
-
deleteHistoricIdentityLink
void deleteHistoricIdentityLink(String id)
-
updateProcessBusinessKeyInHistory
void updateProcessBusinessKeyInHistory(ExecutionEntity processInstance)
-
-