Class ExecutionManager
- java.lang.Object
-
- org.camunda.bpm.engine.impl.persistence.AbstractManager
-
- org.camunda.bpm.engine.impl.persistence.entity.ExecutionManager
-
- All Implemented Interfaces:
Session
public class ExecutionManager extends AbstractManager
- Author:
- Tom Baeyens
-
-
Field Summary
Fields Modifier and Type Field Description protected static EnginePersistenceLogger
LOG
-
Constructor Summary
Constructors Constructor Description ExecutionManager()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected ListQueryParameterObject
configureParameterizedQuery(java.lang.Object parameter)
protected void
configureQuery(AbstractQuery<?,?> query)
protected void
createDefaultAuthorizations(ExecutionEntity execution)
void
deleteExecution(ExecutionEntity execution)
void
deleteProcessInstance(java.lang.String processInstanceId, java.lang.String deleteReason)
void
deleteProcessInstance(java.lang.String processInstanceId, java.lang.String deleteReason, boolean cascade, boolean skipCustomListeners)
void
deleteProcessInstance(java.lang.String processInstanceId, java.lang.String deleteReason, boolean cascade, boolean skipCustomListeners, boolean externallyTerminated, boolean skipIoMappings, boolean skipSubprocesses)
void
deleteProcessInstancesByProcessDefinition(java.lang.String processDefinitionId, java.lang.String deleteReason, boolean cascade, boolean skipCustomListeners, boolean skipIoMappings)
java.util.List<ExecutionEntity>
findChildExecutionsByParentExecutionId(java.lang.String parentExecutionId)
java.util.List<ImmutablePair<java.lang.String,java.lang.String>>
findDeploymentIdMappingsByQueryCriteria(ProcessInstanceQueryImpl processInstanceQuery)
java.util.List<ExecutionEntity>
findEventScopeExecutionsByActivityId(java.lang.String activityRef, java.lang.String parentExecutionId)
ExecutionEntity
findExecutionById(java.lang.String executionId)
long
findExecutionCountByNativeQuery(java.util.Map<java.lang.String,java.lang.Object> parameterMap)
long
findExecutionCountByQueryCriteria(ExecutionQueryImpl executionQuery)
java.util.List<Execution>
findExecutionsByNativeQuery(java.util.Map<java.lang.String,java.lang.Object> parameterMap, int firstResult, int maxResults)
java.util.List<ExecutionEntity>
findExecutionsByProcessInstanceId(java.lang.String processInstanceId)
java.util.List<ExecutionEntity>
findExecutionsByQueryCriteria(ExecutionQueryImpl executionQuery, Page page)
java.util.List<ProcessInstance>
findProcessInstanceByNativeQuery(java.util.Map<java.lang.String,java.lang.Object> parameterMap, int firstResult, int maxResults)
long
findProcessInstanceCountByQueryCriteria(ProcessInstanceQueryImpl processInstanceQuery)
java.util.List<ProcessInstance>
findProcessInstancesByQueryCriteria(ProcessInstanceQueryImpl processInstanceQuery, Page page)
java.util.List<java.lang.String>
findProcessInstancesIdsByQueryCriteria(ProcessInstanceQueryImpl processInstanceQuery)
ExecutionEntity
findSubProcessInstanceBySuperCaseExecutionId(java.lang.String superCaseExecutionId)
ExecutionEntity
findSubProcessInstanceBySuperExecutionId(java.lang.String superExecutionId)
void
insertExecution(ExecutionEntity execution)
void
updateExecutionSuspensionStateByProcessDefinitionId(java.lang.String processDefinitionId, SuspensionState suspensionState)
void
updateExecutionSuspensionStateByProcessDefinitionKey(java.lang.String processDefinitionKey, SuspensionState suspensionState)
void
updateExecutionSuspensionStateByProcessDefinitionKeyAndTenantId(java.lang.String processDefinitionKey, java.lang.String tenantId, SuspensionState suspensionState)
void
updateExecutionSuspensionStateByProcessInstanceId(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
-
-
-
-
Field Detail
-
LOG
protected static final EnginePersistenceLogger LOG
-
-
Method Detail
-
insertExecution
public void insertExecution(ExecutionEntity execution)
-
deleteExecution
public void deleteExecution(ExecutionEntity execution)
-
deleteProcessInstancesByProcessDefinition
public void deleteProcessInstancesByProcessDefinition(java.lang.String processDefinitionId, java.lang.String deleteReason, boolean cascade, boolean skipCustomListeners, boolean skipIoMappings)
-
deleteProcessInstance
public void deleteProcessInstance(java.lang.String processInstanceId, java.lang.String deleteReason)
-
deleteProcessInstance
public void deleteProcessInstance(java.lang.String processInstanceId, java.lang.String deleteReason, boolean cascade, boolean skipCustomListeners)
-
deleteProcessInstance
public void deleteProcessInstance(java.lang.String processInstanceId, java.lang.String deleteReason, boolean cascade, boolean skipCustomListeners, boolean externallyTerminated, boolean skipIoMappings, boolean skipSubprocesses)
-
findSubProcessInstanceBySuperExecutionId
public ExecutionEntity findSubProcessInstanceBySuperExecutionId(java.lang.String superExecutionId)
-
findSubProcessInstanceBySuperCaseExecutionId
public ExecutionEntity findSubProcessInstanceBySuperCaseExecutionId(java.lang.String superCaseExecutionId)
-
findChildExecutionsByParentExecutionId
public java.util.List<ExecutionEntity> findChildExecutionsByParentExecutionId(java.lang.String parentExecutionId)
-
findExecutionsByProcessInstanceId
public java.util.List<ExecutionEntity> findExecutionsByProcessInstanceId(java.lang.String processInstanceId)
-
findExecutionById
public ExecutionEntity findExecutionById(java.lang.String executionId)
-
findExecutionCountByQueryCriteria
public long findExecutionCountByQueryCriteria(ExecutionQueryImpl executionQuery)
-
findExecutionsByQueryCriteria
public java.util.List<ExecutionEntity> findExecutionsByQueryCriteria(ExecutionQueryImpl executionQuery, Page page)
-
findProcessInstanceCountByQueryCriteria
public long findProcessInstanceCountByQueryCriteria(ProcessInstanceQueryImpl processInstanceQuery)
-
findProcessInstancesByQueryCriteria
public java.util.List<ProcessInstance> findProcessInstancesByQueryCriteria(ProcessInstanceQueryImpl processInstanceQuery, Page page)
-
findProcessInstancesIdsByQueryCriteria
public java.util.List<java.lang.String> findProcessInstancesIdsByQueryCriteria(ProcessInstanceQueryImpl processInstanceQuery)
-
findDeploymentIdMappingsByQueryCriteria
public java.util.List<ImmutablePair<java.lang.String,java.lang.String>> findDeploymentIdMappingsByQueryCriteria(ProcessInstanceQueryImpl processInstanceQuery)
-
findEventScopeExecutionsByActivityId
public java.util.List<ExecutionEntity> findEventScopeExecutionsByActivityId(java.lang.String activityRef, java.lang.String parentExecutionId)
-
findExecutionsByNativeQuery
public java.util.List<Execution> findExecutionsByNativeQuery(java.util.Map<java.lang.String,java.lang.Object> parameterMap, int firstResult, int maxResults)
-
findProcessInstanceByNativeQuery
public java.util.List<ProcessInstance> findProcessInstanceByNativeQuery(java.util.Map<java.lang.String,java.lang.Object> parameterMap, int firstResult, int maxResults)
-
findExecutionCountByNativeQuery
public long findExecutionCountByNativeQuery(java.util.Map<java.lang.String,java.lang.Object> parameterMap)
-
updateExecutionSuspensionStateByProcessDefinitionId
public void updateExecutionSuspensionStateByProcessDefinitionId(java.lang.String processDefinitionId, SuspensionState suspensionState)
-
updateExecutionSuspensionStateByProcessInstanceId
public void updateExecutionSuspensionStateByProcessInstanceId(java.lang.String processInstanceId, SuspensionState suspensionState)
-
updateExecutionSuspensionStateByProcessDefinitionKey
public void updateExecutionSuspensionStateByProcessDefinitionKey(java.lang.String processDefinitionKey, SuspensionState suspensionState)
-
updateExecutionSuspensionStateByProcessDefinitionKeyAndTenantId
public void updateExecutionSuspensionStateByProcessDefinitionKeyAndTenantId(java.lang.String processDefinitionKey, java.lang.String tenantId, SuspensionState suspensionState)
-
createDefaultAuthorizations
protected void createDefaultAuthorizations(ExecutionEntity execution)
-
configureQuery
protected void configureQuery(AbstractQuery<?,?> query)
-
configureParameterizedQuery
protected ListQueryParameterObject configureParameterizedQuery(java.lang.Object parameter)
-
-