Class HistoricTaskInstanceManager

    • Constructor Detail

      • HistoricTaskInstanceManager

        public HistoricTaskInstanceManager()
    • Method Detail

      • deleteHistoricTaskInstancesByProcessInstanceIds

        public void deleteHistoricTaskInstancesByProcessInstanceIds​(List<String> processInstanceIds,
                                                                    boolean deleteVariableInstances)
        Deletes all data related with tasks, which belongs to specified process instance ids.
        Parameters:
        processInstanceIds -
        deleteVariableInstances - when true, will also delete variable instances. Can be false when variable instances were deleted separately.
      • deleteHistoricTaskInstancesByCaseInstanceIds

        public void deleteHistoricTaskInstancesByCaseInstanceIds​(List<String> caseInstanceIds)
      • findHistoricTaskInstanceCountByQueryCriteria

        public long findHistoricTaskInstanceCountByQueryCriteria​(HistoricTaskInstanceQueryImpl historicTaskInstanceQuery)
      • deleteHistoricTaskInstanceById

        public void deleteHistoricTaskInstanceById​(String taskId)
      • findHistoricTaskInstanceCountByNativeQuery

        public long findHistoricTaskInstanceCountByNativeQuery​(Map<String,​Object> parameterMap)
      • updateHistoricTaskInstance

        public void updateHistoricTaskInstance​(TaskEntity taskEntity)
      • addRemovalTimeToTaskInstancesByRootProcessInstanceId

        public void addRemovalTimeToTaskInstancesByRootProcessInstanceId​(String rootProcessInstanceId,
                                                                         Date removalTime)
      • addRemovalTimeToTaskInstancesByProcessInstanceId

        public void addRemovalTimeToTaskInstancesByProcessInstanceId​(String processInstanceId,
                                                                     Date removalTime)
      • markTaskInstanceEnded

        public void markTaskInstanceEnded​(String taskId,
                                          String deleteReason)
      • createHistoricTask

        public void createHistoricTask​(TaskEntity task)
      • deleteHistoricTaskInstancesByRemovalTime

        public DbOperation deleteHistoricTaskInstancesByRemovalTime​(Date removalTime,
                                                                    int minuteFrom,
                                                                    int minuteTo,
                                                                    int batchSize)