Interface HistoryManager

    • 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.
      • 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 new IdentityLink has 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 user IdentityLink has 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 group IdentityLink has 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 new IdentityLink has 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 user IdentityLink has 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 new IdentityLink has 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 new IdentityLink has 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 new IdentityLink, if audit history is enabled.
      • deleteHistoricIdentityLink

        void deleteHistoricIdentityLink​(java.lang.String id)
      • updateProcessBusinessKeyInHistory

        void updateProcessBusinessKeyInHistory​(ExecutionEntity processInstance)