Class HistoricTaskInstanceManager

    • Constructor Detail

      • HistoricTaskInstanceManager

        public HistoricTaskInstanceManager()
    • Method Detail

      • deleteHistoricTaskInstancesByProcessInstanceIds

        public void deleteHistoricTaskInstancesByProcessInstanceIds​(java.util.List<java.lang.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​(java.util.List<java.lang.String> caseInstanceIds)
      • findHistoricTaskInstanceCountByQueryCriteria

        public long findHistoricTaskInstanceCountByQueryCriteria​(HistoricTaskInstanceQueryImpl historicTaskInstanceQuery)
      • deleteHistoricTaskInstanceById

        public void deleteHistoricTaskInstanceById​(java.lang.String taskId)
      • findHistoricTaskInstancesByNativeQuery

        public java.util.List<HistoricTaskInstance> findHistoricTaskInstancesByNativeQuery​(java.util.Map<java.lang.String,​java.lang.Object> parameterMap,
                                                                                           int firstResult,
                                                                                           int maxResults)
      • findHistoricTaskInstanceCountByNativeQuery

        public long findHistoricTaskInstanceCountByNativeQuery​(java.util.Map<java.lang.String,​java.lang.Object> parameterMap)
      • updateHistoricTaskInstance

        public void updateHistoricTaskInstance​(TaskEntity taskEntity)
      • addRemovalTimeToTaskInstancesByRootProcessInstanceId

        public void addRemovalTimeToTaskInstancesByRootProcessInstanceId​(java.lang.String rootProcessInstanceId,
                                                                         java.util.Date removalTime)
      • addRemovalTimeToTaskInstancesByProcessInstanceId

        public void addRemovalTimeToTaskInstancesByProcessInstanceId​(java.lang.String processInstanceId,
                                                                     java.util.Date removalTime)
      • markTaskInstanceEnded

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

        public void createHistoricTask​(TaskEntity task)
      • deleteHistoricTaskInstancesByRemovalTime

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