Package org.activiti.engine.impl.history
Interface HistoryManager
- All Known Implementing Classes:
DefaultHistoryManager
-
Method Summary
Modifier and TypeMethodDescriptionvoidcreateAttachmentComment(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.voidfindActivityInstance(ExecutionEntity execution, boolean createOnNotFound, boolean validateEndTimeNull) Finds theHistoricActivityInstanceEntitythat is active in the given execution.booleanbooleanvoidrecordActivityEnd(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, 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(String taskId, String assignee) Record task assignee change, if audit history is enabled.voidRecord 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 Details
-
isHistoryLevelAtLeast
- 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
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
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
Record the start of an activity, if activity history is enabled. -
recordActivityEnd
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
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. -
recordTaskAssignment
Record the assignment of task, if activity history is enabled. -
recordTaskClaim
record task instance claim time, if audit history is enabled- Parameters:
task-
-
recordTaskId
Record the id of a the task associated with a historic activity, if activity history is enabled. -
recordTaskEnd
Record task as ended, if audit history is enabled. -
recordTaskAssigneeChange
Record task assignee change, if audit history is enabled. -
recordTaskOwnerChange
Record task owner change, if audit history is enabled. -
recordTaskNameChange
Record task name change, if audit history is enabled. -
recordTaskDescriptionChange
Record task description change, if audit history is enabled. -
recordTaskDueDateChange
Record task due date change, if audit history is enabled. -
recordTaskPriorityChange
Record task priority change, if audit history is enabled. -
recordTaskCategoryChange
Record task category change, if audit history is enabled. -
recordTaskFormKeyChange
Record task form key change, if audit history is enabled. -
recordTaskParentTaskIdChange
Record task parent task id change, if audit history is enabled. -
recordTaskExecutionIdChange
Record task execution id change, if audit history is enabled. -
recordTaskDefinitionKeyChange
Record task definition key change, if audit history is enabled. -
recordTaskProcessDefinitionChange
Record a change of the process-definition id of a task instance, if activity history is enabled. -
recordVariableCreate
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
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(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
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(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
Record the creation of a newIdentityLink, if audit history is enabled. -
deleteHistoricIdentityLink
-
updateProcessBusinessKeyInHistory
-