Class HistoricTaskInstanceManager
- java.lang.Object
-
- org.camunda.bpm.engine.impl.persistence.AbstractManager
-
- org.camunda.bpm.engine.impl.persistence.AbstractHistoricManager
-
- 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
Constructors Constructor Description HistoricTaskInstanceManager()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
addRemovalTimeToTaskInstancesByProcessInstanceId(java.lang.String processInstanceId, java.util.Date removalTime)
void
addRemovalTimeToTaskInstancesByRootProcessInstanceId(java.lang.String rootProcessInstanceId, java.util.Date removalTime)
protected void
configureQuery(HistoricTaskInstanceQueryImpl query)
void
createHistoricTask(TaskEntity task)
void
deleteHistoricTaskInstanceById(java.lang.String taskId)
void
deleteHistoricTaskInstancesByCaseInstanceIds(java.util.List<java.lang.String> caseInstanceIds)
void
deleteHistoricTaskInstancesByProcessInstanceIds(java.util.List<java.lang.String> processInstanceIds, boolean deleteVariableInstances)
Deletes all data related with tasks, which belongs to specified process instance ids.DbOperation
deleteHistoricTaskInstancesByRemovalTime(java.util.Date removalTime, int minuteFrom, int minuteTo, int batchSize)
HistoricTaskInstanceEntity
findHistoricTaskInstanceById(java.lang.String taskId)
long
findHistoricTaskInstanceCountByNativeQuery(java.util.Map<java.lang.String,java.lang.Object> parameterMap)
long
findHistoricTaskInstanceCountByQueryCriteria(HistoricTaskInstanceQueryImpl historicTaskInstanceQuery)
java.util.List<HistoricTaskInstance>
findHistoricTaskInstancesByNativeQuery(java.util.Map<java.lang.String,java.lang.Object> parameterMap, int firstResult, int maxResults)
java.util.List<HistoricTaskInstance>
findHistoricTaskInstancesByQueryCriteria(HistoricTaskInstanceQueryImpl historicTaskInstanceQuery, Page page)
void
markTaskInstanceEnded(java.lang.String taskId, java.lang.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, getCamundaFormDefinitionManager, 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
-
-
-
-
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)
-
findHistoricTaskInstancesByQueryCriteria
public java.util.List<HistoricTaskInstance> findHistoricTaskInstancesByQueryCriteria(HistoricTaskInstanceQueryImpl historicTaskInstanceQuery, Page page)
-
findHistoricTaskInstanceById
public HistoricTaskInstanceEntity findHistoricTaskInstanceById(java.lang.String taskId)
-
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)
-
configureQuery
protected void configureQuery(HistoricTaskInstanceQueryImpl query)
-
deleteHistoricTaskInstancesByRemovalTime
public DbOperation deleteHistoricTaskInstancesByRemovalTime(java.util.Date removalTime, int minuteFrom, int minuteTo, int batchSize)
-
-