Class TaskManager
- java.lang.Object
-
- org.camunda.bpm.engine.impl.persistence.AbstractManager
-
- org.camunda.bpm.engine.impl.persistence.entity.TaskManager
-
- All Implemented Interfaces:
Session
public class TaskManager extends AbstractManager
- Author:
- Tom Baeyens
-
-
Constructor Summary
Constructors Constructor Description TaskManager()
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description protected ListQueryParameterObject
configureParameterizedQuery(java.lang.Object parameter)
protected void
configureQuery(TaskQueryImpl query)
protected void
createDefaultAuthorizations(TaskEntity task)
void
deleteTask(TaskEntity task, java.lang.String deleteReason, boolean cascade, boolean skipCustomListeners)
void
deleteTasksByCaseInstanceId(java.lang.String caseInstanceId, java.lang.String deleteReason, boolean cascade)
void
deleteTasksByProcessInstanceId(java.lang.String processInstanceId, java.lang.String deleteReason, boolean cascade, boolean skipCustomListeners)
TaskEntity
findTaskByCaseExecutionId(java.lang.String caseExecutionId)
TaskEntity
findTaskById(java.lang.String id)
long
findTaskCountByNativeQuery(java.util.Map<java.lang.String,java.lang.Object> parameterMap)
long
findTaskCountByQueryCriteria(TaskQueryImpl taskQuery)
java.util.List<TaskEntity>
findTasksByExecutionId(java.lang.String executionId)
java.util.List<Task>
findTasksByNativeQuery(java.util.Map<java.lang.String,java.lang.Object> parameterMap, int firstResult, int maxResults)
java.util.List<Task>
findTasksByParentTaskId(java.lang.String parentTaskId)
java.util.List<TaskEntity>
findTasksByProcessInstanceId(java.lang.String processInstanceId)
java.util.List<Task>
findTasksByQueryCriteria(TaskQueryImpl taskQuery)
java.util.List<Task>
findTasksByQueryCriteria(TaskQueryImpl taskQuery, Page page)
Deprecated.void
insertTask(TaskEntity task)
void
updateTaskSuspensionStateByCaseExecutionId(java.lang.String caseExecutionId, SuspensionState suspensionState)
void
updateTaskSuspensionStateByProcessDefinitionId(java.lang.String processDefinitionId, SuspensionState suspensionState)
void
updateTaskSuspensionStateByProcessDefinitionKey(java.lang.String processDefinitionKey, SuspensionState suspensionState)
void
updateTaskSuspensionStateByProcessDefinitionKeyAndTenantId(java.lang.String processDefinitionKey, java.lang.String processDefinitionTenantId, SuspensionState suspensionState)
void
updateTaskSuspensionStateByProcessInstanceId(java.lang.String processInstanceId, SuspensionState suspensionState)
-
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
-
insertTask
public void insertTask(TaskEntity task)
-
deleteTasksByProcessInstanceId
public void deleteTasksByProcessInstanceId(java.lang.String processInstanceId, java.lang.String deleteReason, boolean cascade, boolean skipCustomListeners)
-
deleteTasksByCaseInstanceId
public void deleteTasksByCaseInstanceId(java.lang.String caseInstanceId, java.lang.String deleteReason, boolean cascade)
-
deleteTask
public void deleteTask(TaskEntity task, java.lang.String deleteReason, boolean cascade, boolean skipCustomListeners)
-
findTaskById
public TaskEntity findTaskById(java.lang.String id)
-
findTasksByExecutionId
public java.util.List<TaskEntity> findTasksByExecutionId(java.lang.String executionId)
-
findTaskByCaseExecutionId
public TaskEntity findTaskByCaseExecutionId(java.lang.String caseExecutionId)
-
findTasksByProcessInstanceId
public java.util.List<TaskEntity> findTasksByProcessInstanceId(java.lang.String processInstanceId)
-
findTasksByQueryCriteria
@Deprecated public java.util.List<Task> findTasksByQueryCriteria(TaskQueryImpl taskQuery, Page page)
Deprecated.
-
findTasksByQueryCriteria
public java.util.List<Task> findTasksByQueryCriteria(TaskQueryImpl taskQuery)
-
findTaskCountByQueryCriteria
public long findTaskCountByQueryCriteria(TaskQueryImpl taskQuery)
-
findTasksByNativeQuery
public java.util.List<Task> findTasksByNativeQuery(java.util.Map<java.lang.String,java.lang.Object> parameterMap, int firstResult, int maxResults)
-
findTaskCountByNativeQuery
public long findTaskCountByNativeQuery(java.util.Map<java.lang.String,java.lang.Object> parameterMap)
-
findTasksByParentTaskId
public java.util.List<Task> findTasksByParentTaskId(java.lang.String parentTaskId)
-
updateTaskSuspensionStateByProcessDefinitionId
public void updateTaskSuspensionStateByProcessDefinitionId(java.lang.String processDefinitionId, SuspensionState suspensionState)
-
updateTaskSuspensionStateByProcessInstanceId
public void updateTaskSuspensionStateByProcessInstanceId(java.lang.String processInstanceId, SuspensionState suspensionState)
-
updateTaskSuspensionStateByProcessDefinitionKey
public void updateTaskSuspensionStateByProcessDefinitionKey(java.lang.String processDefinitionKey, SuspensionState suspensionState)
-
updateTaskSuspensionStateByProcessDefinitionKeyAndTenantId
public void updateTaskSuspensionStateByProcessDefinitionKeyAndTenantId(java.lang.String processDefinitionKey, java.lang.String processDefinitionTenantId, SuspensionState suspensionState)
-
updateTaskSuspensionStateByCaseExecutionId
public void updateTaskSuspensionStateByCaseExecutionId(java.lang.String caseExecutionId, SuspensionState suspensionState)
-
createDefaultAuthorizations
protected void createDefaultAuthorizations(TaskEntity task)
-
configureQuery
protected void configureQuery(TaskQueryImpl query)
-
configureParameterizedQuery
protected ListQueryParameterObject configureParameterizedQuery(java.lang.Object parameter)
-
-