Class ExecutionManager

  • All Implemented Interfaces:
    Session

    public class ExecutionManager
    extends AbstractManager
    Author:
    Tom Baeyens
    • Constructor Detail

      • ExecutionManager

        public ExecutionManager()
    • 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)
      • findProcessInstanceCountByQueryCriteria

        public long findProcessInstanceCountByQueryCriteria​(ProcessInstanceQueryImpl processInstanceQuery)
      • 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)