Class ProcessInstanceAdminServiceImpl

  • All Implemented Interfaces:
    org.jbpm.services.api.admin.ProcessInstanceAdminService

    public class ProcessInstanceAdminServiceImpl
    extends Object
    implements org.jbpm.services.api.admin.ProcessInstanceAdminService
    • Constructor Detail

      • ProcessInstanceAdminServiceImpl

        public ProcessInstanceAdminServiceImpl()
    • Method Detail

      • setProcessService

        public void setProcessService​(org.jbpm.services.api.ProcessService processService)
      • setRuntimeDataService

        public void setRuntimeDataService​(org.jbpm.services.api.RuntimeDataService runtimeDataService)
      • setIdentityProvider

        public void setIdentityProvider​(org.kie.internal.identity.IdentityProvider identityProvider)
      • setCommandService

        public void setCommandService​(org.jbpm.shared.services.impl.TransactionalCommandService commandService)
      • getProcessNodes

        public Collection<org.jbpm.services.api.admin.ProcessNode> getProcessNodes​(long processInstanceId)
                                                                            throws org.jbpm.services.api.ProcessInstanceNotFoundException
        Specified by:
        getProcessNodes in interface org.jbpm.services.api.admin.ProcessInstanceAdminService
        Throws:
        org.jbpm.services.api.ProcessInstanceNotFoundException
      • cancelNodeInstance

        public void cancelNodeInstance​(long processInstanceId,
                                       long nodeInstanceId)
                                throws org.jbpm.services.api.NodeInstanceNotFoundException,
                                       org.jbpm.services.api.ProcessInstanceNotFoundException
        Specified by:
        cancelNodeInstance in interface org.jbpm.services.api.admin.ProcessInstanceAdminService
        Throws:
        org.jbpm.services.api.NodeInstanceNotFoundException
        org.jbpm.services.api.ProcessInstanceNotFoundException
      • retriggerNodeInstance

        public void retriggerNodeInstance​(long processInstanceId,
                                          long nodeInstanceId)
                                   throws org.jbpm.services.api.NodeInstanceNotFoundException,
                                          org.jbpm.services.api.ProcessInstanceNotFoundException
        Specified by:
        retriggerNodeInstance in interface org.jbpm.services.api.admin.ProcessInstanceAdminService
        Throws:
        org.jbpm.services.api.NodeInstanceNotFoundException
        org.jbpm.services.api.ProcessInstanceNotFoundException
      • updateTimer

        public void updateTimer​(long processInstanceId,
                                long timerId,
                                long delay,
                                long period,
                                int repeatLimit)
                         throws org.jbpm.services.api.NodeInstanceNotFoundException,
                                org.jbpm.services.api.ProcessInstanceNotFoundException
        Specified by:
        updateTimer in interface org.jbpm.services.api.admin.ProcessInstanceAdminService
        Throws:
        org.jbpm.services.api.NodeInstanceNotFoundException
        org.jbpm.services.api.ProcessInstanceNotFoundException
      • updateTimerRelative

        public void updateTimerRelative​(long processInstanceId,
                                        long timerId,
                                        long delay,
                                        long period,
                                        int repeatLimit)
                                 throws org.jbpm.services.api.NodeInstanceNotFoundException,
                                        org.jbpm.services.api.ProcessInstanceNotFoundException
        Specified by:
        updateTimerRelative in interface org.jbpm.services.api.admin.ProcessInstanceAdminService
        Throws:
        org.jbpm.services.api.NodeInstanceNotFoundException
        org.jbpm.services.api.ProcessInstanceNotFoundException
      • getTimerInstances

        public Collection<org.jbpm.services.api.admin.TimerInstance> getTimerInstances​(long processInstanceId)
                                                                                throws org.jbpm.services.api.ProcessInstanceNotFoundException
        Specified by:
        getTimerInstances in interface org.jbpm.services.api.admin.ProcessInstanceAdminService
        Throws:
        org.jbpm.services.api.ProcessInstanceNotFoundException
      • triggerNode

        public void triggerNode​(long processInstanceId,
                                long nodeId)
                         throws org.jbpm.services.api.NodeNotFoundException,
                                org.jbpm.services.api.ProcessInstanceNotFoundException
        Specified by:
        triggerNode in interface org.jbpm.services.api.admin.ProcessInstanceAdminService
        Throws:
        org.jbpm.services.api.NodeNotFoundException
        org.jbpm.services.api.ProcessInstanceNotFoundException
      • getActiveNodeInstances

        public Collection<org.jbpm.services.api.model.NodeInstanceDesc> getActiveNodeInstances​(long processInstanceId)
                                                                                        throws org.jbpm.services.api.ProcessInstanceNotFoundException
        Specified by:
        getActiveNodeInstances in interface org.jbpm.services.api.admin.ProcessInstanceAdminService
        Throws:
        org.jbpm.services.api.ProcessInstanceNotFoundException
      • acknowledgeError

        public void acknowledgeError​(String... errorId)
                              throws org.jbpm.services.api.admin.ExecutionErrorNotFoundException
        Specified by:
        acknowledgeError in interface org.jbpm.services.api.admin.ProcessInstanceAdminService
        Throws:
        org.jbpm.services.api.admin.ExecutionErrorNotFoundException
      • getError

        public org.kie.internal.runtime.error.ExecutionError getError​(String errorId)
                                                               throws org.jbpm.services.api.admin.ExecutionErrorNotFoundException
        Specified by:
        getError in interface org.jbpm.services.api.admin.ProcessInstanceAdminService
        Throws:
        org.jbpm.services.api.admin.ExecutionErrorNotFoundException
      • getErrors

        public List<org.kie.internal.runtime.error.ExecutionError> getErrors​(boolean includeAcknowledged,
                                                                             org.kie.api.runtime.query.QueryContext queryContext)
        Specified by:
        getErrors in interface org.jbpm.services.api.admin.ProcessInstanceAdminService
      • getErrorsByProcessId

        public List<org.kie.internal.runtime.error.ExecutionError> getErrorsByProcessId​(String deploymentId,
                                                                                        String processId,
                                                                                        boolean includeAcknowledged,
                                                                                        org.kie.api.runtime.query.QueryContext queryContext)
        Specified by:
        getErrorsByProcessId in interface org.jbpm.services.api.admin.ProcessInstanceAdminService
      • getErrorsByProcessInstanceId

        public List<org.kie.internal.runtime.error.ExecutionError> getErrorsByProcessInstanceId​(long processInstanceId,
                                                                                                boolean includeAcknowledged,
                                                                                                org.kie.api.runtime.query.QueryContext queryContext)
        Specified by:
        getErrorsByProcessInstanceId in interface org.jbpm.services.api.admin.ProcessInstanceAdminService
      • getErrorsByProcessInstanceId

        public List<org.kie.internal.runtime.error.ExecutionError> getErrorsByProcessInstanceId​(long processInstanceId,
                                                                                                String nodeName,
                                                                                                boolean includeAcknowledged,
                                                                                                org.kie.api.runtime.query.QueryContext queryContext)
        Specified by:
        getErrorsByProcessInstanceId in interface org.jbpm.services.api.admin.ProcessInstanceAdminService
      • getErrorsByDeploymentId

        public List<org.kie.internal.runtime.error.ExecutionError> getErrorsByDeploymentId​(String containerId,
                                                                                           boolean includeAcknowledged,
                                                                                           org.kie.api.runtime.query.QueryContext queryContext)
        Specified by:
        getErrorsByDeploymentId in interface org.jbpm.services.api.admin.ProcessInstanceAdminService
      • applyQueryContext

        protected void applyQueryContext​(Map<String,​Object> params,
                                         org.kie.api.runtime.query.QueryContext queryContext)
      • getAckMode

        protected List<Short> getAckMode​(boolean includeAcknowledged)