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(java.lang.String taskId, java.lang.String processInstanceId, java.lang.String attachmentName, boolean create)Creates a new comment to indicate a new attachment has been created or deleted, if history is enabled.voidcreateGroupIdentityLinkComment(java.lang.String taskId, java.lang.String groupId, java.lang.String type, boolean create)Creates a new comment to indicate a new groupIdentityLinkhas been created or deleted, if history is enabled.voidcreateIdentityLinkComment(java.lang.String taskId, java.lang.String userId, java.lang.String groupId, java.lang.String type, boolean create)Creates a new comment to indicate a newIdentityLinkhas been created or deleted, if history is enabled.voidcreateIdentityLinkComment(java.lang.String taskId, java.lang.String userId, java.lang.String groupId, java.lang.String type, boolean create, boolean forceNullUserId)Creates a new comment to indicate a newIdentityLinkhas been created or deleted, if history is enabled.voidcreateProcessInstanceIdentityLinkComment(java.lang.String processInstanceId, java.lang.String userId, java.lang.String groupId, java.lang.String type, boolean create)Creates a new comment to indicate a newIdentityLinkhas been created or deleted, if history is enabled.voidcreateProcessInstanceIdentityLinkComment(java.lang.String processInstanceId, java.lang.String userId, java.lang.String groupId, java.lang.String type, boolean create, boolean forceNullUserId)Creates a new comment to indicate a newIdentityLinkhas been created or deleted, if history is enabled.voidcreateUserIdentityLinkComment(java.lang.String taskId, java.lang.String userId, java.lang.String type, boolean create)Creates a new comment to indicate a new userIdentityLinkhas been created or deleted, if history is enabled.voidcreateUserIdentityLinkComment(java.lang.String taskId, java.lang.String userId, java.lang.String type, boolean create, boolean forceNullUserId)Creates a new comment to indicate a new userIdentityLinkhas been created or deleted, if history is enabled.voiddeleteHistoricIdentityLink(java.lang.String id)HistoricActivityInstanceEntityfindActivityInstance(ExecutionEntity execution, boolean createOnNotFound, boolean validateEndTimeNull)Finds theHistoricActivityInstanceEntitythat is active in the given execution.booleanisHistoryEnabled()booleanisHistoryLevelAtLeast(HistoryLevel level)voidrecordActivityEnd(ExecutionEntity executionEntity, java.lang.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(java.lang.String processInstanceId, java.lang.String processDefinitionId)Record a change of the process-definition id of a process instance, if activity history is enabled.voidrecordProcessInstanceEnd(java.lang.String processInstanceId, java.lang.String deleteReason, java.lang.String activityId)Record a process-instance ended.voidrecordProcessInstanceNameChange(java.lang.String processInstanceId, java.lang.String newName)Record a process-instance name change.voidrecordProcessInstanceStart(ExecutionEntity processInstance, org.activiti.bpmn.model.FlowElement startElement)Record a process-instance started and record start-event if activity history is enabled.voidrecordSubProcessInstanceStart(ExecutionEntity parentExecution, ExecutionEntity subProcessInstance, org.activiti.bpmn.model.FlowElement initialFlowElement)Record a sub-process-instance started and alters the calledProcessinstanceId on the current active activity's historic counterpart.voidrecordTaskAssigneeChange(java.lang.String taskId, java.lang.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(java.lang.String taskId, java.lang.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(java.lang.String taskId, java.lang.String taskDefinitionKey)Record task definition key change, if audit history is enabled.voidrecordTaskDescriptionChange(java.lang.String taskId, java.lang.String description)Record task description change, if audit history is enabled.voidrecordTaskDueDateChange(java.lang.String taskId, java.util.Date dueDate)Record task due date change, if audit history is enabled.voidrecordTaskEnd(java.lang.String taskId, java.lang.String deleteReason)Record task as ended, if audit history is enabled.voidrecordTaskExecutionIdChange(java.lang.String taskId, java.lang.String executionId)Record task execution id change, if audit history is enabled.voidrecordTaskFormKeyChange(java.lang.String taskId, java.lang.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(java.lang.String taskId, java.lang.String taskName)Record task name change, if audit history is enabled.voidrecordTaskOwnerChange(java.lang.String taskId, java.lang.String owner)Record task owner change, if audit history is enabled.voidrecordTaskParentTaskIdChange(java.lang.String taskId, java.lang.String parentTaskId)Record task parent task id change, if audit history is enabled.voidrecordTaskPriorityChange(java.lang.String taskId, int priority)Record task priority change, if audit history is enabled.voidrecordTaskProcessDefinitionChange(java.lang.String taskId, java.lang.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(java.lang.String processInstanceId, java.lang.String deleteReason, java.lang.String activityId)Record a process-instance ended. Updates the historic process instance if activity history is enabled.
-
recordProcessInstanceStart
void recordProcessInstanceStart(ExecutionEntity processInstance, org.activiti.bpmn.model.FlowElement startElement)
Record a process-instance started and record start-event if activity history is enabled.
-
recordProcessInstanceNameChange
void recordProcessInstanceNameChange(java.lang.String processInstanceId, java.lang.String newName)Record a process-instance name change.
-
recordSubProcessInstanceStart
void recordSubProcessInstanceStart(ExecutionEntity parentExecution, ExecutionEntity subProcessInstance, org.activiti.bpmn.model.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, java.lang.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(java.lang.String processInstanceId, java.lang.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(java.lang.String taskId, java.lang.String deleteReason)Record task as ended, if audit history is enabled.
-
recordTaskAssigneeChange
void recordTaskAssigneeChange(java.lang.String taskId, java.lang.String assignee)Record task assignee change, if audit history is enabled.
-
recordTaskOwnerChange
void recordTaskOwnerChange(java.lang.String taskId, java.lang.String owner)Record task owner change, if audit history is enabled.
-
recordTaskNameChange
void recordTaskNameChange(java.lang.String taskId, java.lang.String taskName)Record task name change, if audit history is enabled.
-
recordTaskDescriptionChange
void recordTaskDescriptionChange(java.lang.String taskId, java.lang.String description)Record task description change, if audit history is enabled.
-
recordTaskDueDateChange
void recordTaskDueDateChange(java.lang.String taskId, java.util.Date dueDate)Record task due date change, if audit history is enabled.
-
recordTaskPriorityChange
void recordTaskPriorityChange(java.lang.String taskId, int priority)Record task priority change, if audit history is enabled.
-
recordTaskCategoryChange
void recordTaskCategoryChange(java.lang.String taskId, java.lang.String category)Record task category change, if audit history is enabled.
-
recordTaskFormKeyChange
void recordTaskFormKeyChange(java.lang.String taskId, java.lang.String formKey)Record task form key change, if audit history is enabled.
-
recordTaskParentTaskIdChange
void recordTaskParentTaskIdChange(java.lang.String taskId, java.lang.String parentTaskId)Record task parent task id change, if audit history is enabled.
-
recordTaskExecutionIdChange
void recordTaskExecutionIdChange(java.lang.String taskId, java.lang.String executionId)Record task execution id change, if audit history is enabled.
-
recordTaskDefinitionKeyChange
void recordTaskDefinitionKeyChange(java.lang.String taskId, java.lang.String taskDefinitionKey)Record task definition key change, if audit history is enabled.
-
recordTaskProcessDefinitionChange
void recordTaskProcessDefinitionChange(java.lang.String taskId, java.lang.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(java.lang.String taskId, java.lang.String userId, java.lang.String groupId, java.lang.String type, boolean create)Creates a new comment to indicate a newIdentityLinkhas been created or deleted, if history is enabled.
-
createUserIdentityLinkComment
void createUserIdentityLinkComment(java.lang.String taskId, java.lang.String userId, java.lang.String type, boolean create)Creates a new comment to indicate a new userIdentityLinkhas been created or deleted, if history is enabled.
-
createGroupIdentityLinkComment
void createGroupIdentityLinkComment(java.lang.String taskId, java.lang.String groupId, java.lang.String type, boolean create)Creates a new comment to indicate a new groupIdentityLinkhas been created or deleted, if history is enabled.
-
createIdentityLinkComment
void createIdentityLinkComment(java.lang.String taskId, java.lang.String userId, java.lang.String groupId, java.lang.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(java.lang.String taskId, java.lang.String userId, java.lang.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(java.lang.String processInstanceId, java.lang.String userId, java.lang.String groupId, java.lang.String type, boolean create)Creates a new comment to indicate a newIdentityLinkhas been created or deleted, if history is enabled.
-
createProcessInstanceIdentityLinkComment
void createProcessInstanceIdentityLinkComment(java.lang.String processInstanceId, java.lang.String userId, java.lang.String groupId, java.lang.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(java.lang.String taskId, java.lang.String processInstanceId, java.lang.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(java.lang.String id)
-
updateProcessBusinessKeyInHistory
void updateProcessBusinessKeyInHistory(ExecutionEntity processInstance)
-
-