Interface HistoryManager

All Known Implementing Classes:
DefaultHistoryManager

@Internal public interface HistoryManager
  • Method Details

    • 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, org.activiti.bpmn.model.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, 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, String deleteReason)
      Record the end of an activity, if activity history is enabled.
    • findActivityInstance

      HistoricActivityInstanceEntity findActivityInstance(ExecutionEntity execution, boolean createOnNotFound, boolean validateEndTimeNull)
      Finds the HistoricActivityInstanceEntity that 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 new IdentityLink has 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 user IdentityLink has 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 group IdentityLink has 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 new IdentityLink has 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 user IdentityLink has 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 new IdentityLink has 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 new IdentityLink has 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 new IdentityLink, if audit history is enabled.
    • deleteHistoricIdentityLink

      void deleteHistoricIdentityLink(String id)
    • updateProcessBusinessKeyInHistory

      void updateProcessBusinessKeyInHistory(ExecutionEntity processInstance)