org.camunda.bpm.engine.impl.persistence.entity
Class HistoricTaskInstanceManager

java.lang.Object
  extended by org.camunda.bpm.engine.impl.persistence.AbstractManager
      extended by org.camunda.bpm.engine.impl.persistence.AbstractHistoricManager
          extended by org.camunda.bpm.engine.impl.persistence.entity.HistoricTaskInstanceManager
All Implemented Interfaces:
Session

public class HistoricTaskInstanceManager
extends AbstractHistoricManager

Author:
Tom Baeyens

Field Summary
 
Fields inherited from class org.camunda.bpm.engine.impl.persistence.AbstractHistoricManager
historyLevel, isHistoryEnabled, isHistoryLevelFullEnabled, LOG
 
Constructor Summary
HistoricTaskInstanceManager()
           
 
Method Summary
protected  void configureQuery(HistoricTaskInstanceQueryImpl query)
           
 void createHistoricTask(TaskEntity task)
           
 void deleteHistoricTaskInstanceById(String taskId)
           
protected  void deleteHistoricTaskInstances(String key, String value)
           
 void deleteHistoricTaskInstancesByCaseDefinitionId(String caseDefinitionId)
           
 void deleteHistoricTaskInstancesByCaseInstanceId(String caseInstanceId)
           
 void deleteHistoricTaskInstancesByCaseInstanceIds(List<String> caseInstanceIds)
           
 void deleteHistoricTaskInstancesByProcessInstanceId(String processInstanceId)
           
 void deleteHistoricTaskInstancesByProcessInstanceIds(List<String> processInstanceIds, boolean deleteVariableInstances)
          Deletes all data related with tasks, which belongs to specified process instance ids.
 HistoricTaskInstanceEntity findHistoricTaskInstanceById(String taskId)
           
 long findHistoricTaskInstanceCountByNativeQuery(Map<String,Object> parameterMap)
           
 long findHistoricTaskInstanceCountByQueryCriteria(HistoricTaskInstanceQueryImpl historicTaskInstanceQuery)
           
 List<HistoricTaskInstance> findHistoricTaskInstancesByNativeQuery(Map<String,Object> parameterMap, int firstResult, int maxResults)
           
 List<HistoricTaskInstance> findHistoricTaskInstancesByQueryCriteria(HistoricTaskInstanceQueryImpl historicTaskInstanceQuery, Page page)
           
 void markTaskInstanceEnded(String taskId, String deleteReason)
           
 void updateHistoricTaskInstance(TaskEntity taskEntity)
           
 
Methods inherited from class org.camunda.bpm.engine.impl.persistence.AbstractHistoricManager
checkHistoryEnabled, isHistoryEnabled, isHistoryLevelFullEnabled
 
Methods inherited from class org.camunda.bpm.engine.impl.persistence.AbstractManager
checkAuthorization, close, configureQuery, delete, deleteAuthorizations, deleteAuthorizationsForGroup, deleteAuthorizationsForUser, deleteDefaultAuthorizations, flush, getAttachmentManager, getAuthorizationManager, getBatchManager, getByteArrayManager, getCaseDefinitionManager, getCaseExecutionManager, getCaseInstanceManager, getCommandContext, getCurrentAuthentication, getDbEntityManager, getDbSqlSession, getDecisionDefinitionManager, getDecisionRequirementsDefinitionManager, getDeploymentManager, getEventSubscriptionManager, getHistoricActivityInstanceManager, getHistoricBatchManager, getHistoricCaseActivityInstanceManager, getHistoricCaseInstanceManager, getHistoricDecisionInstanceManager, getHistoricDetailManager, getHistoricExternalTaskLogManager, getHistoricIdentityLinkManager, getHistoricIncidentManager, getHistoricJobLogManager, getHistoricProcessInstanceManager, getHistoricReportManager, getHistoricTaskInstanceManager, getHistoricVariableInstanceManager, getIdentityInfoManager, getIdentityLinkManager, getJobDefinitionManager, getJobManager, getProcessDefinitionManager, getProcessInstanceManager, getResourceAuthorizationProvider, getResourceManager, getSession, getTaskManager, getTaskReportManager, getTenantManager, getUserOperationLogManager, getVariableInstanceManager, insert, isAuthorizationEnabled, saveDefaultAuthorizations
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

HistoricTaskInstanceManager

public HistoricTaskInstanceManager()
Method Detail

deleteHistoricTaskInstancesByProcessInstanceId

public void deleteHistoricTaskInstancesByProcessInstanceId(String processInstanceId)

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.

deleteHistoricTaskInstancesByCaseInstanceId

public void deleteHistoricTaskInstancesByCaseInstanceId(String caseInstanceId)

deleteHistoricTaskInstancesByCaseInstanceIds

public void deleteHistoricTaskInstancesByCaseInstanceIds(List<String> caseInstanceIds)

deleteHistoricTaskInstancesByCaseDefinitionId

public void deleteHistoricTaskInstancesByCaseDefinitionId(String caseDefinitionId)

deleteHistoricTaskInstances

protected void deleteHistoricTaskInstances(String key,
                                           String value)

findHistoricTaskInstanceCountByQueryCriteria

public long findHistoricTaskInstanceCountByQueryCriteria(HistoricTaskInstanceQueryImpl historicTaskInstanceQuery)

findHistoricTaskInstancesByQueryCriteria

public List<HistoricTaskInstance> findHistoricTaskInstancesByQueryCriteria(HistoricTaskInstanceQueryImpl historicTaskInstanceQuery,
                                                                           Page page)

findHistoricTaskInstanceById

public HistoricTaskInstanceEntity findHistoricTaskInstanceById(String taskId)

deleteHistoricTaskInstanceById

public void deleteHistoricTaskInstanceById(String taskId)

findHistoricTaskInstancesByNativeQuery

public List<HistoricTaskInstance> findHistoricTaskInstancesByNativeQuery(Map<String,Object> parameterMap,
                                                                         int firstResult,
                                                                         int maxResults)

findHistoricTaskInstanceCountByNativeQuery

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

updateHistoricTaskInstance

public void updateHistoricTaskInstance(TaskEntity taskEntity)

markTaskInstanceEnded

public void markTaskInstanceEnded(String taskId,
                                  String deleteReason)

createHistoricTask

public void createHistoricTask(TaskEntity task)

configureQuery

protected void configureQuery(HistoricTaskInstanceQueryImpl query)


Copyright © 2017 camunda services GmbH. All rights reserved.