Class ProcessAPIImpl

java.lang.Object
org.bonitasoft.engine.api.impl.ProcessAPIImpl
All Implemented Interfaces:
org.bonitasoft.engine.api.DocumentAPI, org.bonitasoft.engine.api.ProcessAPI, org.bonitasoft.engine.api.ProcessManagementAPI, org.bonitasoft.engine.api.ProcessRuntimeAPI

public class ProcessAPIImpl extends Object implements org.bonitasoft.engine.api.ProcessAPI
Author:
Baptiste Mesta, Matthieu Chaffotte, Yanyan Liu, Elias Ricken de Medeiros, Zhao Na, Zhang Bole, Emmanuel Duchastenier, Celine Souchet, Arthur Freycon, Haroun EL ALAMI
  • Field Details

  • Constructor Details

  • Method Details

    • searchHumanTaskInstances

      public org.bonitasoft.engine.search.SearchResult<org.bonitasoft.engine.bpm.flownode.HumanTaskInstance> searchHumanTaskInstances(org.bonitasoft.engine.search.SearchOptions searchOptions) throws org.bonitasoft.engine.exception.SearchException
      Specified by:
      searchHumanTaskInstances in interface org.bonitasoft.engine.api.ProcessRuntimeAPI
      Throws:
      org.bonitasoft.engine.exception.SearchException
    • deleteProcessDefinition

      public void deleteProcessDefinition(long processDefinitionId) throws org.bonitasoft.engine.exception.DeletionException
      Specified by:
      deleteProcessDefinition in interface org.bonitasoft.engine.api.ProcessManagementAPI
      Throws:
      org.bonitasoft.engine.exception.DeletionException
    • deleteProcessDefinitions

      public void deleteProcessDefinitions(List<Long> processDefinitionIds) throws org.bonitasoft.engine.exception.DeletionException
      Specified by:
      deleteProcessDefinitions in interface org.bonitasoft.engine.api.ProcessManagementAPI
      Throws:
      org.bonitasoft.engine.exception.DeletionException
    • deployAndEnableProcess

      public org.bonitasoft.engine.bpm.process.ProcessDefinition deployAndEnableProcess(org.bonitasoft.engine.bpm.process.DesignProcessDefinition designProcessDefinition) throws org.bonitasoft.engine.bpm.process.ProcessDeployException, org.bonitasoft.engine.bpm.process.ProcessEnablementException, org.bonitasoft.engine.exception.AlreadyExistsException, org.bonitasoft.engine.bpm.process.InvalidProcessDefinitionException
      Specified by:
      deployAndEnableProcess in interface org.bonitasoft.engine.api.ProcessManagementAPI
      Throws:
      org.bonitasoft.engine.bpm.process.ProcessDeployException
      org.bonitasoft.engine.bpm.process.ProcessEnablementException
      org.bonitasoft.engine.exception.AlreadyExistsException
      org.bonitasoft.engine.bpm.process.InvalidProcessDefinitionException
    • deployAndEnableProcess

      public org.bonitasoft.engine.bpm.process.ProcessDefinition deployAndEnableProcess(org.bonitasoft.engine.bpm.bar.BusinessArchive businessArchive) throws org.bonitasoft.engine.bpm.process.ProcessDeployException, org.bonitasoft.engine.bpm.process.ProcessEnablementException, org.bonitasoft.engine.exception.AlreadyExistsException
      Specified by:
      deployAndEnableProcess in interface org.bonitasoft.engine.api.ProcessManagementAPI
      Throws:
      org.bonitasoft.engine.bpm.process.ProcessDeployException
      org.bonitasoft.engine.bpm.process.ProcessEnablementException
      org.bonitasoft.engine.exception.AlreadyExistsException
    • deploy

      public org.bonitasoft.engine.bpm.process.ProcessDefinition deploy(org.bonitasoft.engine.bpm.process.DesignProcessDefinition designProcessDefinition) throws org.bonitasoft.engine.exception.AlreadyExistsException, org.bonitasoft.engine.bpm.process.ProcessDeployException
      Specified by:
      deploy in interface org.bonitasoft.engine.api.ProcessManagementAPI
      Throws:
      org.bonitasoft.engine.exception.AlreadyExistsException
      org.bonitasoft.engine.bpm.process.ProcessDeployException
    • deploy

      public org.bonitasoft.engine.bpm.process.ProcessDefinition deploy(org.bonitasoft.engine.bpm.bar.BusinessArchive businessArchive) throws org.bonitasoft.engine.bpm.process.ProcessDeployException, org.bonitasoft.engine.exception.AlreadyExistsException
      Specified by:
      deploy in interface org.bonitasoft.engine.api.ProcessManagementAPI
      Throws:
      org.bonitasoft.engine.bpm.process.ProcessDeployException
      org.bonitasoft.engine.exception.AlreadyExistsException
    • importActorMapping

      public void importActorMapping(long pDefinitionId, byte[] actorMappingXML) throws org.bonitasoft.engine.bpm.actor.ActorMappingImportException
      Specified by:
      importActorMapping in interface org.bonitasoft.engine.api.ProcessManagementAPI
      Throws:
      org.bonitasoft.engine.bpm.actor.ActorMappingImportException
    • exportBarProcessContentUnderHome

      public byte[] exportBarProcessContentUnderHome(long processDefinitionId) throws org.bonitasoft.engine.bpm.process.ProcessExportException
      Specified by:
      exportBarProcessContentUnderHome in interface org.bonitasoft.engine.api.ProcessManagementAPI
      Throws:
      org.bonitasoft.engine.bpm.process.ProcessExportException
    • disableAndDeleteProcessDefinition

      public void disableAndDeleteProcessDefinition(long processDefinitionId) throws org.bonitasoft.engine.bpm.process.ProcessDefinitionNotFoundException, org.bonitasoft.engine.bpm.process.ProcessActivationException, org.bonitasoft.engine.exception.DeletionException
      Specified by:
      disableAndDeleteProcessDefinition in interface org.bonitasoft.engine.api.ProcessManagementAPI
      Throws:
      org.bonitasoft.engine.bpm.process.ProcessDefinitionNotFoundException
      org.bonitasoft.engine.bpm.process.ProcessActivationException
      org.bonitasoft.engine.exception.DeletionException
    • disableProcess

      public void disableProcess(long processDefinitionId) throws org.bonitasoft.engine.bpm.process.ProcessDefinitionNotFoundException, org.bonitasoft.engine.bpm.process.ProcessActivationException
      Specified by:
      disableProcess in interface org.bonitasoft.engine.api.ProcessManagementAPI
      Throws:
      org.bonitasoft.engine.bpm.process.ProcessDefinitionNotFoundException
      org.bonitasoft.engine.bpm.process.ProcessActivationException
    • enableProcess

      public void enableProcess(long processDefinitionId) throws org.bonitasoft.engine.bpm.process.ProcessDefinitionNotFoundException, org.bonitasoft.engine.bpm.process.ProcessEnablementException
      Specified by:
      enableProcess in interface org.bonitasoft.engine.api.ProcessManagementAPI
      Throws:
      org.bonitasoft.engine.bpm.process.ProcessDefinitionNotFoundException
      org.bonitasoft.engine.bpm.process.ProcessEnablementException
    • executeFlowNode

      public void executeFlowNode(long flownodeInstanceId) throws org.bonitasoft.engine.bpm.flownode.FlowNodeExecutionException
      Specified by:
      executeFlowNode in interface org.bonitasoft.engine.api.ProcessRuntimeAPI
      Throws:
      org.bonitasoft.engine.bpm.flownode.FlowNodeExecutionException
    • executeFlowNode

      public void executeFlowNode(long userId, long flownodeInstanceId) throws org.bonitasoft.engine.bpm.flownode.FlowNodeExecutionException
      Specified by:
      executeFlowNode in interface org.bonitasoft.engine.api.ProcessRuntimeAPI
      Throws:
      org.bonitasoft.engine.bpm.flownode.FlowNodeExecutionException
    • getActivities

      public List<org.bonitasoft.engine.bpm.flownode.ActivityInstance> getActivities(long processInstanceId, int startIndex, int maxResults)
      Specified by:
      getActivities in interface org.bonitasoft.engine.api.ProcessRuntimeAPI
    • getNumberOfProcessDeploymentInfos

      public long getNumberOfProcessDeploymentInfos()
      Specified by:
      getNumberOfProcessDeploymentInfos in interface org.bonitasoft.engine.api.ProcessManagementAPI
    • getProcessDefinition

      public org.bonitasoft.engine.bpm.process.ProcessDefinition getProcessDefinition(long processDefinitionId) throws org.bonitasoft.engine.bpm.process.ProcessDefinitionNotFoundException
      Specified by:
      getProcessDefinition in interface org.bonitasoft.engine.api.ProcessManagementAPI
      Throws:
      org.bonitasoft.engine.bpm.process.ProcessDefinitionNotFoundException
    • getDesignProcessDefinition

      public org.bonitasoft.engine.bpm.process.DesignProcessDefinition getDesignProcessDefinition(long processDefinitionId) throws org.bonitasoft.engine.bpm.process.ProcessDefinitionNotFoundException
      Specified by:
      getDesignProcessDefinition in interface org.bonitasoft.engine.api.ProcessManagementAPI
      Throws:
      org.bonitasoft.engine.bpm.process.ProcessDefinitionNotFoundException
    • getProcessDeploymentInfo

      public org.bonitasoft.engine.bpm.process.ProcessDeploymentInfo getProcessDeploymentInfo(long processDefinitionId) throws org.bonitasoft.engine.bpm.process.ProcessDefinitionNotFoundException
      Specified by:
      getProcessDeploymentInfo in interface org.bonitasoft.engine.api.ProcessManagementAPI
      Throws:
      org.bonitasoft.engine.bpm.process.ProcessDefinitionNotFoundException
    • getProcessInstance

      public org.bonitasoft.engine.bpm.process.ProcessInstance getProcessInstance(long processInstanceId) throws org.bonitasoft.engine.bpm.process.ProcessInstanceNotFoundException
      Specified by:
      getProcessInstance in interface org.bonitasoft.engine.api.ProcessRuntimeAPI
      Throws:
      org.bonitasoft.engine.bpm.process.ProcessInstanceNotFoundException
    • getSProcessInstance

      protected SProcessInstance getSProcessInstance(long processInstanceId) throws SProcessInstanceNotFoundException, SProcessInstanceReadException
      Throws:
      SProcessInstanceNotFoundException
      SProcessInstanceReadException
    • getArchivedProcessInstances

      public List<org.bonitasoft.engine.bpm.process.ArchivedProcessInstance> getArchivedProcessInstances(long processInstanceId, int startIndex, int maxResults)
      Specified by:
      getArchivedProcessInstances in interface org.bonitasoft.engine.api.ProcessRuntimeAPI
    • getArchivedProcessInstance

      public org.bonitasoft.engine.bpm.process.ArchivedProcessInstance getArchivedProcessInstance(long id) throws org.bonitasoft.engine.bpm.process.ArchivedProcessInstanceNotFoundException, org.bonitasoft.engine.exception.RetrieveException
      Specified by:
      getArchivedProcessInstance in interface org.bonitasoft.engine.api.ProcessRuntimeAPI
      Throws:
      org.bonitasoft.engine.bpm.process.ArchivedProcessInstanceNotFoundException
      org.bonitasoft.engine.exception.RetrieveException
    • toArchivedProcessInstance

      protected org.bonitasoft.engine.bpm.process.ArchivedProcessInstance toArchivedProcessInstance(SAProcessInstance archivedProcessInstance, SProcessDefinition sProcessDefinition)
      internal use for mocking purpose
    • getFinalArchivedProcessInstance

      public org.bonitasoft.engine.bpm.process.ArchivedProcessInstance getFinalArchivedProcessInstance(long sourceProcessInstanceId) throws org.bonitasoft.engine.bpm.process.ArchivedProcessInstanceNotFoundException
      Specified by:
      getFinalArchivedProcessInstance in interface org.bonitasoft.engine.api.ProcessRuntimeAPI
      Throws:
      org.bonitasoft.engine.bpm.process.ArchivedProcessInstanceNotFoundException
    • startProcess

      public org.bonitasoft.engine.bpm.process.ProcessInstance startProcess(long processDefinitionId) throws org.bonitasoft.engine.bpm.process.ProcessActivationException, org.bonitasoft.engine.bpm.process.ProcessExecutionException
      Specified by:
      startProcess in interface org.bonitasoft.engine.api.ProcessRuntimeAPI
      Throws:
      org.bonitasoft.engine.bpm.process.ProcessActivationException
      org.bonitasoft.engine.bpm.process.ProcessExecutionException
    • startProcess

      public org.bonitasoft.engine.bpm.process.ProcessInstance startProcess(long userId, long processDefinitionId) throws org.bonitasoft.engine.bpm.process.ProcessDefinitionNotFoundException, org.bonitasoft.engine.bpm.process.ProcessExecutionException, org.bonitasoft.engine.bpm.process.ProcessActivationException
      Specified by:
      startProcess in interface org.bonitasoft.engine.api.ProcessRuntimeAPI
      Throws:
      org.bonitasoft.engine.bpm.process.ProcessDefinitionNotFoundException
      org.bonitasoft.engine.bpm.process.ProcessExecutionException
      org.bonitasoft.engine.bpm.process.ProcessActivationException
    • getNumberOfActors

      public int getNumberOfActors(long processDefinitionId) throws org.bonitasoft.engine.bpm.process.ProcessDefinitionNotFoundException
      Specified by:
      getNumberOfActors in interface org.bonitasoft.engine.api.ProcessManagementAPI
      Throws:
      org.bonitasoft.engine.bpm.process.ProcessDefinitionNotFoundException
    • getActors

      public List<org.bonitasoft.engine.bpm.actor.ActorInstance> getActors(long processDefinitionId, int startIndex, int maxResults, org.bonitasoft.engine.bpm.actor.ActorCriterion sort)
      Specified by:
      getActors in interface org.bonitasoft.engine.api.ProcessManagementAPI
    • getActorMembers

      public List<org.bonitasoft.engine.bpm.actor.ActorMember> getActorMembers(long actorId, int startIndex, int maxResults)
      Specified by:
      getActorMembers in interface org.bonitasoft.engine.api.ProcessManagementAPI
    • getNumberOfActorMembers

      public long getNumberOfActorMembers(long actorId)
      Specified by:
      getNumberOfActorMembers in interface org.bonitasoft.engine.api.ProcessManagementAPI
    • getNumberOfUsersOfActor

      public long getNumberOfUsersOfActor(long actorId)
      Specified by:
      getNumberOfUsersOfActor in interface org.bonitasoft.engine.api.ProcessManagementAPI
    • getNumberOfRolesOfActor

      public long getNumberOfRolesOfActor(long actorId)
      Specified by:
      getNumberOfRolesOfActor in interface org.bonitasoft.engine.api.ProcessManagementAPI
    • getNumberOfGroupsOfActor

      public long getNumberOfGroupsOfActor(long actorId)
      Specified by:
      getNumberOfGroupsOfActor in interface org.bonitasoft.engine.api.ProcessManagementAPI
    • getNumberOfMembershipsOfActor

      public long getNumberOfMembershipsOfActor(long actorId)
      Specified by:
      getNumberOfMembershipsOfActor in interface org.bonitasoft.engine.api.ProcessManagementAPI
    • updateActor

      @Deprecated(since="9.0.0") public org.bonitasoft.engine.bpm.actor.ActorInstance updateActor(long actorId, org.bonitasoft.engine.bpm.actor.ActorUpdater descriptor) throws org.bonitasoft.engine.bpm.actor.ActorNotFoundException, org.bonitasoft.engine.exception.UpdateException
      Deprecated.
      Specified by:
      updateActor in interface org.bonitasoft.engine.api.ProcessManagementAPI
      Throws:
      org.bonitasoft.engine.bpm.actor.ActorNotFoundException
      org.bonitasoft.engine.exception.UpdateException
    • addUserToActor

      public org.bonitasoft.engine.bpm.actor.ActorMember addUserToActor(long actorId, long userId) throws org.bonitasoft.engine.exception.CreationException
      Specified by:
      addUserToActor in interface org.bonitasoft.engine.api.ProcessManagementAPI
      Throws:
      org.bonitasoft.engine.exception.CreationException
    • addUserToActor

      public org.bonitasoft.engine.bpm.actor.ActorMember addUserToActor(String actorName, org.bonitasoft.engine.bpm.process.ProcessDefinition processDefinition, long userId) throws org.bonitasoft.engine.exception.CreationException, org.bonitasoft.engine.bpm.actor.ActorNotFoundException
      Specified by:
      addUserToActor in interface org.bonitasoft.engine.api.ProcessManagementAPI
      Throws:
      org.bonitasoft.engine.exception.CreationException
      org.bonitasoft.engine.bpm.actor.ActorNotFoundException
    • addGroupToActor

      public org.bonitasoft.engine.bpm.actor.ActorMember addGroupToActor(long actorId, long groupId) throws org.bonitasoft.engine.exception.CreationException
      Specified by:
      addGroupToActor in interface org.bonitasoft.engine.api.ProcessManagementAPI
      Throws:
      org.bonitasoft.engine.exception.CreationException
    • addGroupToActor

      public org.bonitasoft.engine.bpm.actor.ActorMember addGroupToActor(String actorName, long groupId, org.bonitasoft.engine.bpm.process.ProcessDefinition processDefinition) throws org.bonitasoft.engine.exception.CreationException, org.bonitasoft.engine.bpm.actor.ActorNotFoundException
      Specified by:
      addGroupToActor in interface org.bonitasoft.engine.api.ProcessManagementAPI
      Throws:
      org.bonitasoft.engine.exception.CreationException
      org.bonitasoft.engine.bpm.actor.ActorNotFoundException
    • addRoleToActor

      public org.bonitasoft.engine.bpm.actor.ActorMember addRoleToActor(long actorId, long roleId) throws org.bonitasoft.engine.exception.CreationException
      Specified by:
      addRoleToActor in interface org.bonitasoft.engine.api.ProcessManagementAPI
      Throws:
      org.bonitasoft.engine.exception.CreationException
    • addRoleToActor

      public org.bonitasoft.engine.bpm.actor.ActorMember addRoleToActor(String actorName, org.bonitasoft.engine.bpm.process.ProcessDefinition processDefinition, long roleId) throws org.bonitasoft.engine.bpm.actor.ActorNotFoundException, org.bonitasoft.engine.exception.CreationException
      Specified by:
      addRoleToActor in interface org.bonitasoft.engine.api.ProcessManagementAPI
      Throws:
      org.bonitasoft.engine.bpm.actor.ActorNotFoundException
      org.bonitasoft.engine.exception.CreationException
    • addRoleAndGroupToActor

      public org.bonitasoft.engine.bpm.actor.ActorMember addRoleAndGroupToActor(String actorName, org.bonitasoft.engine.bpm.process.ProcessDefinition processDefinition, long roleId, long groupId) throws org.bonitasoft.engine.bpm.actor.ActorNotFoundException, org.bonitasoft.engine.exception.CreationException
      Specified by:
      addRoleAndGroupToActor in interface org.bonitasoft.engine.api.ProcessManagementAPI
      Throws:
      org.bonitasoft.engine.bpm.actor.ActorNotFoundException
      org.bonitasoft.engine.exception.CreationException
    • addRoleAndGroupToActor

      public org.bonitasoft.engine.bpm.actor.ActorMember addRoleAndGroupToActor(long actorId, long roleId, long groupId) throws org.bonitasoft.engine.exception.CreationException
      Specified by:
      addRoleAndGroupToActor in interface org.bonitasoft.engine.api.ProcessManagementAPI
      Throws:
      org.bonitasoft.engine.exception.CreationException
    • removeActorMember

      public void removeActorMember(long actorMemberId) throws org.bonitasoft.engine.exception.DeletionException
      Specified by:
      removeActorMember in interface org.bonitasoft.engine.api.ProcessManagementAPI
      Throws:
      org.bonitasoft.engine.exception.DeletionException
    • getActor

      public org.bonitasoft.engine.bpm.actor.ActorInstance getActor(long actorId) throws org.bonitasoft.engine.bpm.actor.ActorNotFoundException
      Specified by:
      getActor in interface org.bonitasoft.engine.api.ProcessManagementAPI
      Throws:
      org.bonitasoft.engine.bpm.actor.ActorNotFoundException
    • getActivityInstance

      public org.bonitasoft.engine.bpm.flownode.ActivityInstance getActivityInstance(long activityInstanceId) throws org.bonitasoft.engine.bpm.flownode.ActivityInstanceNotFoundException
      Specified by:
      getActivityInstance in interface org.bonitasoft.engine.api.ProcessRuntimeAPI
      Throws:
      org.bonitasoft.engine.bpm.flownode.ActivityInstanceNotFoundException
    • getSActivityInstance

      protected SActivityInstance getSActivityInstance(long activityInstanceId) throws SActivityInstanceNotFoundException, SActivityReadException
      Throws:
      SActivityInstanceNotFoundException
      SActivityReadException
    • getFlowNodeInstance

      public org.bonitasoft.engine.bpm.flownode.FlowNodeInstance getFlowNodeInstance(long flowNodeInstanceId) throws org.bonitasoft.engine.bpm.flownode.FlowNodeInstanceNotFoundException
      Specified by:
      getFlowNodeInstance in interface org.bonitasoft.engine.api.ProcessRuntimeAPI
      Throws:
      org.bonitasoft.engine.bpm.flownode.FlowNodeInstanceNotFoundException
    • getAssignedHumanTaskInstances

      public List<org.bonitasoft.engine.bpm.flownode.HumanTaskInstance> getAssignedHumanTaskInstances(long userId, int startIndex, int maxResults, org.bonitasoft.engine.bpm.flownode.ActivityInstanceCriterion pagingCriterion)
      Specified by:
      getAssignedHumanTaskInstances in interface org.bonitasoft.engine.api.ProcessRuntimeAPI
    • getNumberOfPendingHumanTaskInstances

      public long getNumberOfPendingHumanTaskInstances(long userId)
      Specified by:
      getNumberOfPendingHumanTaskInstances in interface org.bonitasoft.engine.api.ProcessRuntimeAPI
    • getPendingHumanTaskInstances

      public List<org.bonitasoft.engine.bpm.flownode.HumanTaskInstance> getPendingHumanTaskInstances(long userId, int startIndex, int maxResults, org.bonitasoft.engine.bpm.flownode.ActivityInstanceCriterion pagingCriterion)
      Specified by:
      getPendingHumanTaskInstances in interface org.bonitasoft.engine.api.ProcessRuntimeAPI
    • getArchivedActivityInstance

      public org.bonitasoft.engine.bpm.flownode.ArchivedActivityInstance getArchivedActivityInstance(long sourceActivityInstanceId) throws org.bonitasoft.engine.bpm.flownode.ActivityInstanceNotFoundException
      Specified by:
      getArchivedActivityInstance in interface org.bonitasoft.engine.api.ProcessRuntimeAPI
      Throws:
      org.bonitasoft.engine.bpm.flownode.ActivityInstanceNotFoundException
    • getArchivedFlowNodeInstance

      public org.bonitasoft.engine.bpm.flownode.ArchivedFlowNodeInstance getArchivedFlowNodeInstance(long archivedFlowNodeInstanceId) throws org.bonitasoft.engine.bpm.flownode.ArchivedFlowNodeInstanceNotFoundException, org.bonitasoft.engine.exception.RetrieveException
      Specified by:
      getArchivedFlowNodeInstance in interface org.bonitasoft.engine.api.ProcessRuntimeAPI
      Throws:
      org.bonitasoft.engine.bpm.flownode.ArchivedFlowNodeInstanceNotFoundException
      org.bonitasoft.engine.exception.RetrieveException
    • getProcessInstances

      public List<org.bonitasoft.engine.bpm.process.ProcessInstance> getProcessInstances(int startIndex, int maxResults, org.bonitasoft.engine.bpm.process.ProcessInstanceCriterion criterion)
      Specified by:
      getProcessInstances in interface org.bonitasoft.engine.api.ProcessRuntimeAPI
    • getNumberOfProcessInstances

      public long getNumberOfProcessInstances()
      Specified by:
      getNumberOfProcessInstances in interface org.bonitasoft.engine.api.ProcessRuntimeAPI
    • searchProcessInstances

      protected org.bonitasoft.engine.search.SearchResult<org.bonitasoft.engine.bpm.process.ProcessInstance> searchProcessInstances(ServiceAccessor serviceAccessor, org.bonitasoft.engine.search.SearchOptions searchOptions) throws SBonitaException
      Throws:
      SBonitaException
    • getArchivedProcessInstances

      @Deprecated public List<org.bonitasoft.engine.bpm.process.ArchivedProcessInstance> getArchivedProcessInstances(int startIndex, int maxResults, org.bonitasoft.engine.bpm.process.ProcessInstanceCriterion criterion)
      Deprecated.
      Specified by:
      getArchivedProcessInstances in interface org.bonitasoft.engine.api.ProcessRuntimeAPI
    • getCompletedProcessInstances

      public List<org.bonitasoft.engine.bpm.process.ArchivedProcessInstance> getCompletedProcessInstances(int startIndex, int maxResults, org.bonitasoft.engine.bpm.process.ProcessInstanceCriterion criterion)
      Specified by:
      getCompletedProcessInstances in interface org.bonitasoft.engine.api.ProcessRuntimeAPI
    • getNumberOfArchivedProcessInstances

      @Deprecated public long getNumberOfArchivedProcessInstances()
      Deprecated.
      Specified by:
      getNumberOfArchivedProcessInstances in interface org.bonitasoft.engine.api.ProcessRuntimeAPI
    • getNumberOfCompletedProcessInstances

      public long getNumberOfCompletedProcessInstances()
      Specified by:
      getNumberOfCompletedProcessInstances in interface org.bonitasoft.engine.api.ProcessRuntimeAPI
    • searchArchivedProcessInstances

      public org.bonitasoft.engine.search.SearchResult<org.bonitasoft.engine.bpm.process.ArchivedProcessInstance> searchArchivedProcessInstances(org.bonitasoft.engine.search.SearchOptions searchOptions) throws org.bonitasoft.engine.exception.RetrieveException, org.bonitasoft.engine.exception.SearchException
      Specified by:
      searchArchivedProcessInstances in interface org.bonitasoft.engine.api.ProcessRuntimeAPI
      Throws:
      org.bonitasoft.engine.exception.RetrieveException
      org.bonitasoft.engine.exception.SearchException
    • searchArchivedProcessInstancesInAllStates

      public org.bonitasoft.engine.search.SearchResult<org.bonitasoft.engine.bpm.process.ArchivedProcessInstance> searchArchivedProcessInstancesInAllStates(org.bonitasoft.engine.search.SearchOptions searchOptions) throws org.bonitasoft.engine.exception.SearchException
      Specified by:
      searchArchivedProcessInstancesInAllStates in interface org.bonitasoft.engine.api.ProcessRuntimeAPI
      Throws:
      org.bonitasoft.engine.exception.SearchException
    • getOpenActivityInstances

      public List<org.bonitasoft.engine.bpm.flownode.ActivityInstance> getOpenActivityInstances(long processInstanceId, int startIndex, int maxResults, org.bonitasoft.engine.bpm.flownode.ActivityInstanceCriterion criterion)
      Specified by:
      getOpenActivityInstances in interface org.bonitasoft.engine.api.ProcessRuntimeAPI
    • getArchivedActivityInstances

      public List<org.bonitasoft.engine.bpm.flownode.ArchivedActivityInstance> getArchivedActivityInstances(long processInstanceId, int startIndex, int maxResults, org.bonitasoft.engine.bpm.flownode.ActivityInstanceCriterion criterion)
      Specified by:
      getArchivedActivityInstances in interface org.bonitasoft.engine.api.ProcessRuntimeAPI
    • getNumberOfOpenedActivityInstances

      public int getNumberOfOpenedActivityInstances(long processInstanceId)
      Specified by:
      getNumberOfOpenedActivityInstances in interface org.bonitasoft.engine.api.ProcessRuntimeAPI
    • createCategory

      public org.bonitasoft.engine.bpm.category.Category createCategory(String name, String description) throws org.bonitasoft.engine.exception.CreationException
      Specified by:
      createCategory in interface org.bonitasoft.engine.api.ProcessManagementAPI
      Throws:
      org.bonitasoft.engine.exception.CreationException
    • getCategory

      public org.bonitasoft.engine.bpm.category.Category getCategory(long categoryId) throws org.bonitasoft.engine.bpm.category.CategoryNotFoundException
      Specified by:
      getCategory in interface org.bonitasoft.engine.api.ProcessManagementAPI
      Throws:
      org.bonitasoft.engine.bpm.category.CategoryNotFoundException
    • getNumberOfCategories

      public long getNumberOfCategories()
      Specified by:
      getNumberOfCategories in interface org.bonitasoft.engine.api.ProcessManagementAPI
    • getCategories

      public List<org.bonitasoft.engine.bpm.category.Category> getCategories(int startIndex, int maxResults, org.bonitasoft.engine.bpm.category.CategoryCriterion sortCriterion)
      Specified by:
      getCategories in interface org.bonitasoft.engine.api.ProcessManagementAPI
    • addCategoriesToProcess

      public void addCategoriesToProcess(long processDefinitionId, List<Long> categoryIds) throws org.bonitasoft.engine.exception.CreationException
      Specified by:
      addCategoriesToProcess in interface org.bonitasoft.engine.api.ProcessManagementAPI
      Throws:
      org.bonitasoft.engine.exception.CreationException
    • removeCategoriesFromProcess

      public void removeCategoriesFromProcess(long processDefinitionId, List<Long> categoryIds) throws org.bonitasoft.engine.exception.DeletionException
      Specified by:
      removeCategoriesFromProcess in interface org.bonitasoft.engine.api.ProcessManagementAPI
      Throws:
      org.bonitasoft.engine.exception.DeletionException
    • addProcessDefinitionToCategory

      public void addProcessDefinitionToCategory(long categoryId, long processDefinitionId) throws org.bonitasoft.engine.exception.CreationException
      Specified by:
      addProcessDefinitionToCategory in interface org.bonitasoft.engine.api.ProcessManagementAPI
      Throws:
      org.bonitasoft.engine.exception.CreationException
    • addProcessDefinitionsToCategory

      public void addProcessDefinitionsToCategory(long categoryId, List<Long> processDefinitionIds) throws org.bonitasoft.engine.exception.CreationException
      Specified by:
      addProcessDefinitionsToCategory in interface org.bonitasoft.engine.api.ProcessManagementAPI
      Throws:
      org.bonitasoft.engine.exception.CreationException
    • getNumberOfCategories

      public long getNumberOfCategories(long processDefinitionId)
      Specified by:
      getNumberOfCategories in interface org.bonitasoft.engine.api.ProcessManagementAPI
    • getNumberOfProcessDefinitionsOfCategory

      public long getNumberOfProcessDefinitionsOfCategory(long categoryId)
      Specified by:
      getNumberOfProcessDefinitionsOfCategory in interface org.bonitasoft.engine.api.ProcessManagementAPI
    • getProcessDeploymentInfosOfCategory

      public List<org.bonitasoft.engine.bpm.process.ProcessDeploymentInfo> getProcessDeploymentInfosOfCategory(long categoryId, int startIndex, int maxResults, org.bonitasoft.engine.bpm.process.ProcessDeploymentInfoCriterion sortCriterion)
      Specified by:
      getProcessDeploymentInfosOfCategory in interface org.bonitasoft.engine.api.ProcessManagementAPI
    • getCategoriesOfProcessDefinition

      public List<org.bonitasoft.engine.bpm.category.Category> getCategoriesOfProcessDefinition(long processDefinitionId, int startIndex, int maxResults, org.bonitasoft.engine.bpm.category.CategoryCriterion sortingCriterion)
      Specified by:
      getCategoriesOfProcessDefinition in interface org.bonitasoft.engine.api.ProcessManagementAPI
    • getCategoriesUnrelatedToProcessDefinition

      public List<org.bonitasoft.engine.bpm.category.Category> getCategoriesUnrelatedToProcessDefinition(long processDefinitionId, int startIndex, int maxResults, org.bonitasoft.engine.bpm.category.CategoryCriterion sortingCriterion)
      Specified by:
      getCategoriesUnrelatedToProcessDefinition in interface org.bonitasoft.engine.api.ProcessManagementAPI
    • updateCategory

      public void updateCategory(long categoryId, org.bonitasoft.engine.bpm.category.CategoryUpdater updater) throws org.bonitasoft.engine.bpm.category.CategoryNotFoundException, org.bonitasoft.engine.exception.UpdateException
      Specified by:
      updateCategory in interface org.bonitasoft.engine.api.ProcessManagementAPI
      Throws:
      org.bonitasoft.engine.bpm.category.CategoryNotFoundException
      org.bonitasoft.engine.exception.UpdateException
    • deleteCategory

      public void deleteCategory(long categoryId) throws org.bonitasoft.engine.exception.DeletionException
      Specified by:
      deleteCategory in interface org.bonitasoft.engine.api.ProcessManagementAPI
      Throws:
      org.bonitasoft.engine.exception.DeletionException
    • getNumberOfUncategorizedProcessDefinitions

      public long getNumberOfUncategorizedProcessDefinitions()
      Specified by:
      getNumberOfUncategorizedProcessDefinitions in interface org.bonitasoft.engine.api.ProcessManagementAPI
    • getUncategorizedProcessDeploymentInfos

      public List<org.bonitasoft.engine.bpm.process.ProcessDeploymentInfo> getUncategorizedProcessDeploymentInfos(int startIndex, int maxResults, org.bonitasoft.engine.bpm.process.ProcessDeploymentInfoCriterion sortCriterion)
      Specified by:
      getUncategorizedProcessDeploymentInfos in interface org.bonitasoft.engine.api.ProcessManagementAPI
    • getNumberOfProcessDeploymentInfosUnrelatedToCategory

      public long getNumberOfProcessDeploymentInfosUnrelatedToCategory(long categoryId)
      Specified by:
      getNumberOfProcessDeploymentInfosUnrelatedToCategory in interface org.bonitasoft.engine.api.ProcessManagementAPI
    • getProcessDeploymentInfosUnrelatedToCategory

      public List<org.bonitasoft.engine.bpm.process.ProcessDeploymentInfo> getProcessDeploymentInfosUnrelatedToCategory(long categoryId, int startIndex, int maxResults, org.bonitasoft.engine.bpm.process.ProcessDeploymentInfoCriterion sortingCriterion)
      Specified by:
      getProcessDeploymentInfosUnrelatedToCategory in interface org.bonitasoft.engine.api.ProcessManagementAPI
    • removeCategoriesFromProcessDefinition

      public long removeCategoriesFromProcessDefinition(long processDefinitionId, int startIndex, int maxResults) throws org.bonitasoft.engine.exception.DeletionException
      Specified by:
      removeCategoriesFromProcessDefinition in interface org.bonitasoft.engine.api.ProcessManagementAPI
      Throws:
      org.bonitasoft.engine.exception.DeletionException
    • removeProcessDefinitionsFromCategory

      public long removeProcessDefinitionsFromCategory(long categoryId, int startIndex, int maxResults) throws org.bonitasoft.engine.exception.DeletionException
      Specified by:
      removeProcessDefinitionsFromCategory in interface org.bonitasoft.engine.api.ProcessManagementAPI
      Throws:
      org.bonitasoft.engine.exception.DeletionException
    • getEventInstances

      public List<org.bonitasoft.engine.bpm.flownode.EventInstance> getEventInstances(long rootContainerId, int startIndex, int maxResults, org.bonitasoft.engine.bpm.flownode.EventCriterion criterion)
      Specified by:
      getEventInstances in interface org.bonitasoft.engine.api.ProcessRuntimeAPI
    • assignUserTask

      public void assignUserTask(long userTaskId, long userId) throws org.bonitasoft.engine.exception.UpdateException
      Specified by:
      assignUserTask in interface org.bonitasoft.engine.api.ProcessRuntimeAPI
      Throws:
      org.bonitasoft.engine.exception.UpdateException
    • assignUserTaskIfNotAssigned

      public void assignUserTaskIfNotAssigned(long userTaskId, long userId) throws org.bonitasoft.engine.exception.UpdateException
      Specified by:
      assignUserTaskIfNotAssigned in interface org.bonitasoft.engine.api.ProcessRuntimeAPI
      Throws:
      org.bonitasoft.engine.exception.UpdateException
    • assignAndExecuteUserTask

      public void assignAndExecuteUserTask(long userId, long userTaskInstanceId, Map<String,Serializable> inputs) throws org.bonitasoft.engine.bpm.flownode.UserTaskNotFoundException, org.bonitasoft.engine.bpm.contract.ContractViolationException, org.bonitasoft.engine.bpm.flownode.FlowNodeExecutionException
      Specified by:
      assignAndExecuteUserTask in interface org.bonitasoft.engine.api.ProcessRuntimeAPI
      Throws:
      org.bonitasoft.engine.bpm.flownode.UserTaskNotFoundException
      org.bonitasoft.engine.bpm.contract.ContractViolationException
      org.bonitasoft.engine.bpm.flownode.FlowNodeExecutionException
    • updateActorsOfUserTask

      public void updateActorsOfUserTask(long userTaskId) throws org.bonitasoft.engine.exception.UpdateException
      Specified by:
      updateActorsOfUserTask in interface org.bonitasoft.engine.api.ProcessRuntimeAPI
      Throws:
      org.bonitasoft.engine.exception.UpdateException
    • getActivityDataDefinitions

      public List<org.bonitasoft.engine.bpm.data.DataDefinition> getActivityDataDefinitions(long processDefinitionId, String activityName, int startIndex, int maxResults) throws org.bonitasoft.engine.bpm.flownode.ActivityDefinitionNotFoundException, org.bonitasoft.engine.bpm.process.ProcessDefinitionNotFoundException
      Specified by:
      getActivityDataDefinitions in interface org.bonitasoft.engine.api.ProcessManagementAPI
      Throws:
      org.bonitasoft.engine.bpm.flownode.ActivityDefinitionNotFoundException
      org.bonitasoft.engine.bpm.process.ProcessDefinitionNotFoundException
    • getProcessDataDefinitions

      public List<org.bonitasoft.engine.bpm.data.DataDefinition> getProcessDataDefinitions(long processDefinitionId, int startIndex, int maxResults) throws org.bonitasoft.engine.bpm.process.ProcessDefinitionNotFoundException
      Specified by:
      getProcessDataDefinitions in interface org.bonitasoft.engine.api.ProcessManagementAPI
      Throws:
      org.bonitasoft.engine.bpm.process.ProcessDefinitionNotFoundException
    • getHumanTaskInstance

      public org.bonitasoft.engine.bpm.flownode.HumanTaskInstance getHumanTaskInstance(long activityInstanceId) throws org.bonitasoft.engine.bpm.flownode.ActivityInstanceNotFoundException
      Specified by:
      getHumanTaskInstance in interface org.bonitasoft.engine.api.ProcessRuntimeAPI
      Throws:
      org.bonitasoft.engine.bpm.flownode.ActivityInstanceNotFoundException
    • getNumberOfAssignedHumanTaskInstances

      public long getNumberOfAssignedHumanTaskInstances(long userId)
      Specified by:
      getNumberOfAssignedHumanTaskInstances in interface org.bonitasoft.engine.api.ProcessRuntimeAPI
    • getNumberOfOpenTasks

      public Map<Long,Long> getNumberOfOpenTasks(List<Long> userIds)
      Specified by:
      getNumberOfOpenTasks in interface org.bonitasoft.engine.api.ProcessRuntimeAPI
    • getProcessResources

      public Map<String,byte[]> getProcessResources(long processDefinitionId, String filenamesPattern) throws org.bonitasoft.engine.exception.RetrieveException
      Specified by:
      getProcessResources in interface org.bonitasoft.engine.api.ProcessManagementAPI
      Throws:
      org.bonitasoft.engine.exception.RetrieveException
    • getExternalProcessResource

      public byte[] getExternalProcessResource(long processDefinitionId, String fileName) throws org.bonitasoft.engine.exception.RetrieveException, FileNotFoundException
      Specified by:
      getExternalProcessResource in interface org.bonitasoft.engine.api.ProcessManagementAPI
      Throws:
      org.bonitasoft.engine.exception.RetrieveException
      FileNotFoundException
    • getLatestProcessDefinitionId

      public long getLatestProcessDefinitionId(String processName) throws org.bonitasoft.engine.bpm.process.ProcessDefinitionNotFoundException
      Specified by:
      getLatestProcessDefinitionId in interface org.bonitasoft.engine.api.ProcessManagementAPI
      Throws:
      org.bonitasoft.engine.bpm.process.ProcessDefinitionNotFoundException
    • getProcessDataInstances

      public List<org.bonitasoft.engine.bpm.data.DataInstance> getProcessDataInstances(long processInstanceId, int startIndex, int maxResults)
      Specified by:
      getProcessDataInstances in interface org.bonitasoft.engine.api.ProcessRuntimeAPI
    • getProcessDataInstance

      public org.bonitasoft.engine.bpm.data.DataInstance getProcessDataInstance(String dataName, long processInstanceId) throws org.bonitasoft.engine.bpm.data.DataNotFoundException
      Specified by:
      getProcessDataInstance in interface org.bonitasoft.engine.api.ProcessRuntimeAPI
      Throws:
      org.bonitasoft.engine.bpm.data.DataNotFoundException
    • updateProcessDataInstance

      public void updateProcessDataInstance(String dataName, long processInstanceId, Serializable dataValue) throws org.bonitasoft.engine.exception.UpdateException
      Specified by:
      updateProcessDataInstance in interface org.bonitasoft.engine.api.ProcessRuntimeAPI
      Throws:
      org.bonitasoft.engine.exception.UpdateException
    • updateProcessDataInstances

      public void updateProcessDataInstances(long processInstanceId, Map<String,Serializable> dataNameValues) throws org.bonitasoft.engine.exception.UpdateException
      Specified by:
      updateProcessDataInstances in interface org.bonitasoft.engine.api.ProcessRuntimeAPI
      Throws:
      org.bonitasoft.engine.exception.UpdateException
    • updateDataInstances

      protected void updateDataInstances(List<SDataInstance> sDataInstances, Map<String,Serializable> dataNameValues, ClassLoader classLoader) throws ClassNotFoundException, org.bonitasoft.engine.exception.UpdateException, SDataInstanceException
      Throws:
      ClassNotFoundException
      org.bonitasoft.engine.exception.UpdateException
      SDataInstanceException
    • updateDataInstance

      protected void updateDataInstance(DataInstanceService dataInstanceService, SDataInstance sDataInstance, Serializable dataNewValue, ClassLoader classLoader) throws org.bonitasoft.engine.exception.UpdateException, SDataInstanceException
      Throws:
      org.bonitasoft.engine.exception.UpdateException
      SDataInstanceException
    • verifyTypeOfNewDataValue

      protected void verifyTypeOfNewDataValue(SDataInstance sDataInstance, Serializable dataValue, ClassLoader classLoader) throws org.bonitasoft.engine.exception.UpdateException
      Throws:
      org.bonitasoft.engine.exception.UpdateException
    • getProcessInstanceClassloader

      protected ClassLoader getProcessInstanceClassloader(ServiceAccessor serviceAccessor, long processInstanceId) throws SProcessInstanceNotFoundException, SProcessInstanceReadException, SClassLoaderException
      Throws:
      SProcessInstanceNotFoundException
      SProcessInstanceReadException
      SClassLoaderException
    • getActivityDataInstances

      public List<org.bonitasoft.engine.bpm.data.DataInstance> getActivityDataInstances(long activityInstanceId, int startIndex, int maxResults)
      Specified by:
      getActivityDataInstances in interface org.bonitasoft.engine.api.ProcessRuntimeAPI
    • getActivityDataInstance

      public org.bonitasoft.engine.bpm.data.DataInstance getActivityDataInstance(String dataName, long activityInstanceId) throws org.bonitasoft.engine.bpm.data.DataNotFoundException
      Specified by:
      getActivityDataInstance in interface org.bonitasoft.engine.api.ProcessRuntimeAPI
      Throws:
      org.bonitasoft.engine.bpm.data.DataNotFoundException
    • updateActivityDataInstance

      public void updateActivityDataInstance(String dataName, long activityInstanceId, Serializable dataValue) throws org.bonitasoft.engine.exception.UpdateException
      Specified by:
      updateActivityDataInstance in interface org.bonitasoft.engine.api.ProcessRuntimeAPI
      Throws:
      org.bonitasoft.engine.exception.UpdateException
    • getActivityTransientDataInstance

      public org.bonitasoft.engine.bpm.data.DataInstance getActivityTransientDataInstance(String dataName, long activityInstanceId) throws org.bonitasoft.engine.bpm.data.DataNotFoundException
      Specified by:
      getActivityTransientDataInstance in interface org.bonitasoft.engine.api.ProcessRuntimeAPI
      Throws:
      org.bonitasoft.engine.bpm.data.DataNotFoundException
    • convertModeltoDataInstance

      protected org.bonitasoft.engine.bpm.data.DataInstance convertModeltoDataInstance(SDataInstance data)
      isolate static call for mocking reasons
    • getActivityTransientDataInstances

      public List<org.bonitasoft.engine.bpm.data.DataInstance> getActivityTransientDataInstances(long activityInstanceId, int startIndex, int maxResults)
      Specified by:
      getActivityTransientDataInstances in interface org.bonitasoft.engine.api.ProcessRuntimeAPI
    • convertModelToDataInstances

      protected List<org.bonitasoft.engine.bpm.data.DataInstance> convertModelToDataInstances(List<SDataInstance> dataInstances)
      isolate static call for mocking reasons
    • updateActivityTransientDataInstance

      public void updateActivityTransientDataInstance(String dataName, long activityInstanceId, Serializable dataValue) throws org.bonitasoft.engine.exception.UpdateException
      Specified by:
      updateActivityTransientDataInstance in interface org.bonitasoft.engine.api.ProcessRuntimeAPI
      Throws:
      org.bonitasoft.engine.exception.UpdateException
    • updateTransientData

      protected void updateTransientData(String dataName, long activityInstanceId, Serializable dataValue, TransientDataService transientDataInstanceService, ClassLoader classLoader) throws SDataInstanceException, org.bonitasoft.engine.exception.UpdateException
      Throws:
      SDataInstanceException
      org.bonitasoft.engine.exception.UpdateException
    • importActorMapping

      public void importActorMapping(long processDefinitionId, String xmlContent) throws org.bonitasoft.engine.bpm.actor.ActorMappingImportException
      Specified by:
      importActorMapping in interface org.bonitasoft.engine.api.ProcessManagementAPI
      Throws:
      org.bonitasoft.engine.bpm.actor.ActorMappingImportException
    • exportActorMapping

      public String exportActorMapping(long processDefinitionId) throws org.bonitasoft.engine.bpm.actor.ActorMappingExportException
      Specified by:
      exportActorMapping in interface org.bonitasoft.engine.api.ProcessManagementAPI
      Throws:
      org.bonitasoft.engine.bpm.actor.ActorMappingExportException
    • isInvolvedInProcessInstance

      public boolean isInvolvedInProcessInstance(long userId, long processInstanceId) throws org.bonitasoft.engine.bpm.process.ProcessInstanceNotFoundException
      Specified by:
      isInvolvedInProcessInstance in interface org.bonitasoft.engine.api.ProcessRuntimeAPI
      Throws:
      org.bonitasoft.engine.bpm.process.ProcessInstanceNotFoundException
    • isInvolvedInHumanTaskInstance

      public boolean isInvolvedInHumanTaskInstance(long userId, long humanTaskInstanceId) throws org.bonitasoft.engine.bpm.flownode.ActivityInstanceNotFoundException
      Specified by:
      isInvolvedInHumanTaskInstance in interface org.bonitasoft.engine.api.ProcessRuntimeAPI
      Throws:
      org.bonitasoft.engine.bpm.flownode.ActivityInstanceNotFoundException
    • isManagerOfUserInvolvedInProcessInstance

      public boolean isManagerOfUserInvolvedInProcessInstance(long managerUserId, long processInstanceId) throws org.bonitasoft.engine.exception.BonitaException
      Specified by:
      isManagerOfUserInvolvedInProcessInstance in interface org.bonitasoft.engine.api.ProcessRuntimeAPI
      Throws:
      org.bonitasoft.engine.exception.BonitaException
    • getProcessInstanceIdFromActivityInstanceId

      public long getProcessInstanceIdFromActivityInstanceId(long activityInstanceId) throws org.bonitasoft.engine.bpm.process.ProcessInstanceNotFoundException
      Specified by:
      getProcessInstanceIdFromActivityInstanceId in interface org.bonitasoft.engine.api.ProcessRuntimeAPI
      Throws:
      org.bonitasoft.engine.bpm.process.ProcessInstanceNotFoundException
    • getProcessDefinitionIdFromActivityInstanceId

      public long getProcessDefinitionIdFromActivityInstanceId(long activityInstanceId) throws org.bonitasoft.engine.bpm.process.ProcessDefinitionNotFoundException
      Specified by:
      getProcessDefinitionIdFromActivityInstanceId in interface org.bonitasoft.engine.api.ProcessRuntimeAPI
      Throws:
      org.bonitasoft.engine.bpm.process.ProcessDefinitionNotFoundException
    • getProcessDefinitionIdFromProcessInstanceId

      public long getProcessDefinitionIdFromProcessInstanceId(long processInstanceId) throws org.bonitasoft.engine.bpm.process.ProcessDefinitionNotFoundException
      Specified by:
      getProcessDefinitionIdFromProcessInstanceId in interface org.bonitasoft.engine.api.ProcessRuntimeAPI
      Throws:
      org.bonitasoft.engine.bpm.process.ProcessDefinitionNotFoundException
    • getActivityReachedStateDate

      public Date getActivityReachedStateDate(long activityInstanceId, String stateName)
      Specified by:
      getActivityReachedStateDate in interface org.bonitasoft.engine.api.ProcessRuntimeAPI
    • getSupportedStates

      public Set<String> getSupportedStates(org.bonitasoft.engine.bpm.flownode.FlowNodeType nodeType)
      Specified by:
      getSupportedStates in interface org.bonitasoft.engine.api.ProcessManagementAPI
    • updateActivityInstanceVariables

      public void updateActivityInstanceVariables(long activityInstanceId, Map<String,Serializable> variables) throws org.bonitasoft.engine.exception.UpdateException
      Specified by:
      updateActivityInstanceVariables in interface org.bonitasoft.engine.api.ProcessRuntimeAPI
      Throws:
      org.bonitasoft.engine.exception.UpdateException
    • updateActivityInstanceVariables

      public void updateActivityInstanceVariables(List<org.bonitasoft.engine.operation.Operation> operations, long activityInstanceId, Map<String,Serializable> expressionContexts) throws org.bonitasoft.engine.exception.UpdateException
      Specified by:
      updateActivityInstanceVariables in interface org.bonitasoft.engine.api.ProcessRuntimeAPI
      Throws:
      org.bonitasoft.engine.exception.UpdateException
    • convertOperations

      protected List<SOperation> convertOperations(List<org.bonitasoft.engine.operation.Operation> operations)
    • getOneAssignedUserTaskInstanceOfProcessInstance

      public long getOneAssignedUserTaskInstanceOfProcessInstance(long processInstanceId, long userId) throws org.bonitasoft.engine.exception.RetrieveException
      Specified by:
      getOneAssignedUserTaskInstanceOfProcessInstance in interface org.bonitasoft.engine.api.ProcessRuntimeAPI
      Throws:
      org.bonitasoft.engine.exception.RetrieveException
    • getOneAssignedUserTaskInstanceOfProcessDefinition

      public long getOneAssignedUserTaskInstanceOfProcessDefinition(long processDefinitionId, long userId)
      Specified by:
      getOneAssignedUserTaskInstanceOfProcessDefinition in interface org.bonitasoft.engine.api.ProcessRuntimeAPI
    • getActivityInstanceState

      public String getActivityInstanceState(long activityInstanceId) throws org.bonitasoft.engine.bpm.flownode.ActivityInstanceNotFoundException
      Specified by:
      getActivityInstanceState in interface org.bonitasoft.engine.api.ProcessRuntimeAPI
      Throws:
      org.bonitasoft.engine.bpm.flownode.ActivityInstanceNotFoundException
    • canExecuteTask

      public boolean canExecuteTask(long activityInstanceId, long userId) throws org.bonitasoft.engine.bpm.flownode.ActivityInstanceNotFoundException, org.bonitasoft.engine.exception.RetrieveException
      Specified by:
      canExecuteTask in interface org.bonitasoft.engine.api.ProcessRuntimeAPI
      Throws:
      org.bonitasoft.engine.bpm.flownode.ActivityInstanceNotFoundException
      org.bonitasoft.engine.exception.RetrieveException
    • getProcessDefinitionId

      public long getProcessDefinitionId(String name, String version) throws org.bonitasoft.engine.bpm.process.ProcessDefinitionNotFoundException
      Specified by:
      getProcessDefinitionId in interface org.bonitasoft.engine.api.ProcessManagementAPI
      Throws:
      org.bonitasoft.engine.bpm.process.ProcessDefinitionNotFoundException
    • releaseUserTask

      public void releaseUserTask(long userTaskId) throws org.bonitasoft.engine.bpm.flownode.ActivityInstanceNotFoundException, org.bonitasoft.engine.exception.UpdateException
      Specified by:
      releaseUserTask in interface org.bonitasoft.engine.api.ProcessRuntimeAPI
      Throws:
      org.bonitasoft.engine.bpm.flownode.ActivityInstanceNotFoundException
      org.bonitasoft.engine.exception.UpdateException
    • updateProcessDeploymentInfo

      @Deprecated(since="9.0.0") public void updateProcessDeploymentInfo(long processDefinitionId, org.bonitasoft.engine.bpm.process.ProcessDeploymentInfoUpdater processDeploymentInfoUpdater) throws org.bonitasoft.engine.bpm.process.ProcessDefinitionNotFoundException, org.bonitasoft.engine.exception.UpdateException
      Deprecated.
      Specified by:
      updateProcessDeploymentInfo in interface org.bonitasoft.engine.api.ProcessManagementAPI
      Throws:
      org.bonitasoft.engine.bpm.process.ProcessDefinitionNotFoundException
      org.bonitasoft.engine.exception.UpdateException
    • getStartableProcessDeploymentInfosForActors

      public List<org.bonitasoft.engine.bpm.process.ProcessDeploymentInfo> getStartableProcessDeploymentInfosForActors(Set<Long> actorIds, int startIndex, int maxResults, org.bonitasoft.engine.bpm.process.ProcessDeploymentInfoCriterion sortingCriterion)
      Specified by:
      getStartableProcessDeploymentInfosForActors in interface org.bonitasoft.engine.api.ProcessManagementAPI
    • isAllowedToStartProcess

      public boolean isAllowedToStartProcess(long processDefinitionId, Set<Long> actorIds)
      Specified by:
      isAllowedToStartProcess in interface org.bonitasoft.engine.api.ProcessManagementAPI
    • getActorInitiator

      public org.bonitasoft.engine.bpm.actor.ActorInstance getActorInitiator(long processDefinitionId) throws org.bonitasoft.engine.bpm.actor.ActorNotFoundException, org.bonitasoft.engine.bpm.process.ProcessDefinitionNotFoundException
      Specified by:
      getActorInitiator in interface org.bonitasoft.engine.api.ProcessManagementAPI
      Throws:
      org.bonitasoft.engine.bpm.actor.ActorNotFoundException
      org.bonitasoft.engine.bpm.process.ProcessDefinitionNotFoundException
    • getNumberOfActivityDataDefinitions

      public int getNumberOfActivityDataDefinitions(long processDefinitionId, String activityName) throws org.bonitasoft.engine.bpm.process.ProcessDefinitionNotFoundException, org.bonitasoft.engine.bpm.flownode.ActivityDefinitionNotFoundException
      Specified by:
      getNumberOfActivityDataDefinitions in interface org.bonitasoft.engine.api.ProcessManagementAPI
      Throws:
      org.bonitasoft.engine.bpm.process.ProcessDefinitionNotFoundException
      org.bonitasoft.engine.bpm.flownode.ActivityDefinitionNotFoundException
    • getNumberOfProcessDataDefinitions

      public int getNumberOfProcessDataDefinitions(long processDefinitionId) throws org.bonitasoft.engine.bpm.process.ProcessDefinitionNotFoundException
      Specified by:
      getNumberOfProcessDataDefinitions in interface org.bonitasoft.engine.api.ProcessManagementAPI
      Throws:
      org.bonitasoft.engine.bpm.process.ProcessDefinitionNotFoundException
    • startProcess

      public org.bonitasoft.engine.bpm.process.ProcessInstance startProcess(long processDefinitionId, Map<String,Serializable> initialVariables) throws org.bonitasoft.engine.bpm.process.ProcessDefinitionNotFoundException, org.bonitasoft.engine.bpm.process.ProcessActivationException, org.bonitasoft.engine.bpm.process.ProcessExecutionException
      Specified by:
      startProcess in interface org.bonitasoft.engine.api.ProcessRuntimeAPI
      Throws:
      org.bonitasoft.engine.bpm.process.ProcessDefinitionNotFoundException
      org.bonitasoft.engine.bpm.process.ProcessActivationException
      org.bonitasoft.engine.bpm.process.ProcessExecutionException
    • startProcessWithInputs

      public org.bonitasoft.engine.bpm.process.ProcessInstance startProcessWithInputs(long processDefinitionId, Map<String,Serializable> instantiationInputs) throws org.bonitasoft.engine.bpm.process.ProcessDefinitionNotFoundException, org.bonitasoft.engine.bpm.process.ProcessActivationException, org.bonitasoft.engine.bpm.process.ProcessExecutionException, org.bonitasoft.engine.bpm.contract.ContractViolationException
      Specified by:
      startProcessWithInputs in interface org.bonitasoft.engine.api.ProcessRuntimeAPI
      Throws:
      org.bonitasoft.engine.bpm.process.ProcessDefinitionNotFoundException
      org.bonitasoft.engine.bpm.process.ProcessActivationException
      org.bonitasoft.engine.bpm.process.ProcessExecutionException
      org.bonitasoft.engine.bpm.contract.ContractViolationException
    • startProcessWithInputs

      public org.bonitasoft.engine.bpm.process.ProcessInstance startProcessWithInputs(long userId, long processDefinitionId, Map<String,Serializable> instantiationInputs) throws org.bonitasoft.engine.bpm.process.ProcessDefinitionNotFoundException, org.bonitasoft.engine.bpm.process.ProcessActivationException, org.bonitasoft.engine.bpm.process.ProcessExecutionException, org.bonitasoft.engine.bpm.contract.ContractViolationException
      Specified by:
      startProcessWithInputs in interface org.bonitasoft.engine.api.ProcessRuntimeAPI
      Throws:
      org.bonitasoft.engine.bpm.process.ProcessDefinitionNotFoundException
      org.bonitasoft.engine.bpm.process.ProcessActivationException
      org.bonitasoft.engine.bpm.process.ProcessExecutionException
      org.bonitasoft.engine.bpm.contract.ContractViolationException
    • startProcess

      public org.bonitasoft.engine.bpm.process.ProcessInstance startProcess(long userId, long processDefinitionId, Map<String,Serializable> initialVariables) throws org.bonitasoft.engine.bpm.process.ProcessDefinitionNotFoundException, org.bonitasoft.engine.bpm.process.ProcessActivationException, org.bonitasoft.engine.bpm.process.ProcessExecutionException
      Specified by:
      startProcess in interface org.bonitasoft.engine.api.ProcessRuntimeAPI
      Throws:
      org.bonitasoft.engine.bpm.process.ProcessDefinitionNotFoundException
      org.bonitasoft.engine.bpm.process.ProcessActivationException
      org.bonitasoft.engine.bpm.process.ProcessExecutionException
    • createSetDataOperation

      protected List<org.bonitasoft.engine.operation.Operation> createSetDataOperation(long processDefinitionId, Map<String,Serializable> initialVariables) throws org.bonitasoft.engine.bpm.process.ProcessExecutionException
      Throws:
      org.bonitasoft.engine.bpm.process.ProcessExecutionException
    • startProcess

      public org.bonitasoft.engine.bpm.process.ProcessInstance startProcess(long processDefinitionId, List<org.bonitasoft.engine.operation.Operation> operations, Map<String,Serializable> context) throws org.bonitasoft.engine.bpm.process.ProcessExecutionException, org.bonitasoft.engine.bpm.process.ProcessDefinitionNotFoundException, org.bonitasoft.engine.bpm.process.ProcessActivationException
      Specified by:
      startProcess in interface org.bonitasoft.engine.api.ProcessRuntimeAPI
      Throws:
      org.bonitasoft.engine.bpm.process.ProcessExecutionException
      org.bonitasoft.engine.bpm.process.ProcessDefinitionNotFoundException
      org.bonitasoft.engine.bpm.process.ProcessActivationException
    • startProcess

      public org.bonitasoft.engine.bpm.process.ProcessInstance startProcess(long userId, long processDefinitionId, List<org.bonitasoft.engine.operation.Operation> operations, Map<String,Serializable> context) throws org.bonitasoft.engine.bpm.process.ProcessDefinitionNotFoundException, org.bonitasoft.engine.bpm.process.ProcessActivationException, org.bonitasoft.engine.bpm.process.ProcessExecutionException
      Specified by:
      startProcess in interface org.bonitasoft.engine.api.ProcessRuntimeAPI
      Throws:
      org.bonitasoft.engine.bpm.process.ProcessDefinitionNotFoundException
      org.bonitasoft.engine.bpm.process.ProcessActivationException
      org.bonitasoft.engine.bpm.process.ProcessExecutionException
    • getNumberOfActivityDataInstances

      public long getNumberOfActivityDataInstances(long activityInstanceId) throws org.bonitasoft.engine.bpm.flownode.ActivityInstanceNotFoundException
      Specified by:
      getNumberOfActivityDataInstances in interface org.bonitasoft.engine.api.ProcessRuntimeAPI
      Throws:
      org.bonitasoft.engine.bpm.flownode.ActivityInstanceNotFoundException
    • getNumberOfProcessDataInstances

      public long getNumberOfProcessDataInstances(long processInstanceId) throws org.bonitasoft.engine.bpm.process.ProcessInstanceNotFoundException
      Specified by:
      getNumberOfProcessDataInstances in interface org.bonitasoft.engine.api.ProcessRuntimeAPI
      Throws:
      org.bonitasoft.engine.bpm.process.ProcessInstanceNotFoundException
    • executeOperations

      protected Map<String,Serializable> executeOperations(ConnectorResult connectorResult, List<org.bonitasoft.engine.operation.Operation> operations, Map<String,Serializable> operationInputValues, SExpressionContext expressionContext, ClassLoader classLoader, ServiceAccessor serviceAccessor) throws SBonitaException
      Throws:
      SBonitaException
    • executeConnectorOnProcessDefinition

      public Map<String,Serializable> executeConnectorOnProcessDefinition(String connectorDefinitionId, String connectorDefinitionVersion, Map<String,org.bonitasoft.engine.expression.Expression> connectorInputParameters, Map<String,Map<String,Serializable>> inputValues, long processDefinitionId) throws org.bonitasoft.engine.bpm.connector.ConnectorExecutionException
      Specified by:
      executeConnectorOnProcessDefinition in interface org.bonitasoft.engine.api.ProcessRuntimeAPI
      Throws:
      org.bonitasoft.engine.bpm.connector.ConnectorExecutionException
    • executeConnectorOnProcessDefinition

      public Map<String,Serializable> executeConnectorOnProcessDefinition(String connectorDefinitionId, String connectorDefinitionVersion, Map<String,org.bonitasoft.engine.expression.Expression> connectorInputParameters, Map<String,Map<String,Serializable>> inputValues, List<org.bonitasoft.engine.operation.Operation> operations, Map<String,Serializable> operationInputValues, long processDefinitionId) throws org.bonitasoft.engine.bpm.connector.ConnectorExecutionException
      Specified by:
      executeConnectorOnProcessDefinition in interface org.bonitasoft.engine.api.ProcessRuntimeAPI
      Throws:
      org.bonitasoft.engine.bpm.connector.ConnectorExecutionException
    • getSerializableResultOfConnector

      protected Map<String,Serializable> getSerializableResultOfConnector(String connectorDefinitionVersion, ConnectorResult connectorResult, ConnectorService connectorService) throws org.bonitasoft.engine.exception.NotSerializableException, SConnectorException
      Throws:
      org.bonitasoft.engine.exception.NotSerializableException
      SConnectorException
    • checkConnectorParameters

      protected void checkConnectorParameters(Map<String,org.bonitasoft.engine.expression.Expression> connectorInputParameters, Map<String,Map<String,Serializable>> inputValues) throws org.bonitasoft.engine.bpm.connector.ConnectorExecutionException
      Throws:
      org.bonitasoft.engine.bpm.connector.ConnectorExecutionException
    • setActivityStateByName

      public void setActivityStateByName(long activityInstanceId, String state) throws org.bonitasoft.engine.exception.UpdateException
      Specified by:
      setActivityStateByName in interface org.bonitasoft.engine.api.ProcessRuntimeAPI
      Throws:
      org.bonitasoft.engine.exception.UpdateException
    • setActivityStateById

      public void setActivityStateById(long activityInstanceId, int stateId) throws org.bonitasoft.engine.exception.UpdateException
      Specified by:
      setActivityStateById in interface org.bonitasoft.engine.api.ProcessRuntimeAPI
      Throws:
      org.bonitasoft.engine.exception.UpdateException
    • setTaskPriority

      public void setTaskPriority(long humanTaskInstanceId, org.bonitasoft.engine.bpm.flownode.TaskPriority priority) throws org.bonitasoft.engine.exception.UpdateException
      Specified by:
      setTaskPriority in interface org.bonitasoft.engine.api.ProcessRuntimeAPI
      Throws:
      org.bonitasoft.engine.exception.UpdateException
    • deleteProcessInstances

      public long deleteProcessInstances(long processDefinitionId, int startIndex, int maxResults) throws org.bonitasoft.engine.exception.DeletionException
      Specified by:
      deleteProcessInstances in interface org.bonitasoft.engine.api.ProcessRuntimeAPI
      Throws:
      org.bonitasoft.engine.exception.DeletionException
    • deleteArchivedProcessInstances

      public long deleteArchivedProcessInstances(long processDefinitionId, int startIndex, int maxResults) throws org.bonitasoft.engine.exception.DeletionException
      Specified by:
      deleteArchivedProcessInstances in interface org.bonitasoft.engine.api.ProcessRuntimeAPI
      Throws:
      org.bonitasoft.engine.exception.DeletionException
    • deleteArchivedProcessInstancesInAllStates

      public long deleteArchivedProcessInstancesInAllStates(List<Long> sourceProcessInstanceIds) throws org.bonitasoft.engine.exception.DeletionException
      Specified by:
      deleteArchivedProcessInstancesInAllStates in interface org.bonitasoft.engine.api.ProcessRuntimeAPI
      Throws:
      org.bonitasoft.engine.exception.DeletionException
    • deleteArchivedProcessInstancesInAllStates

      public long deleteArchivedProcessInstancesInAllStates(long sourceProcessInstanceId) throws org.bonitasoft.engine.exception.DeletionException
      Specified by:
      deleteArchivedProcessInstancesInAllStates in interface org.bonitasoft.engine.api.ProcessRuntimeAPI
      Throws:
      org.bonitasoft.engine.exception.DeletionException
    • deleteProcessInstance

      public void deleteProcessInstance(long processInstanceId) throws org.bonitasoft.engine.exception.DeletionException
      Specified by:
      deleteProcessInstance in interface org.bonitasoft.engine.api.ProcessRuntimeAPI
      Throws:
      org.bonitasoft.engine.exception.DeletionException
    • searchOpenProcessInstances

      public org.bonitasoft.engine.search.SearchResult<org.bonitasoft.engine.bpm.process.ProcessInstance> searchOpenProcessInstances(org.bonitasoft.engine.search.SearchOptions searchOptions) throws org.bonitasoft.engine.exception.SearchException
      Specified by:
      searchOpenProcessInstances in interface org.bonitasoft.engine.api.ProcessRuntimeAPI
      Throws:
      org.bonitasoft.engine.exception.SearchException
    • searchProcessInstances

      public org.bonitasoft.engine.search.SearchResult<org.bonitasoft.engine.bpm.process.ProcessInstance> searchProcessInstances(org.bonitasoft.engine.search.SearchOptions searchOptions) throws org.bonitasoft.engine.exception.SearchException
      Specified by:
      searchProcessInstances in interface org.bonitasoft.engine.api.ProcessRuntimeAPI
      Throws:
      org.bonitasoft.engine.exception.SearchException
    • searchFailedProcessInstances

      public org.bonitasoft.engine.search.SearchResult<org.bonitasoft.engine.bpm.process.ProcessInstance> searchFailedProcessInstances(org.bonitasoft.engine.search.SearchOptions searchOptions) throws org.bonitasoft.engine.exception.SearchException
      Specified by:
      searchFailedProcessInstances in interface org.bonitasoft.engine.api.ProcessRuntimeAPI
      Throws:
      org.bonitasoft.engine.exception.SearchException
    • searchFailedProcessInstancesSupervisedBy

      public org.bonitasoft.engine.search.SearchResult<org.bonitasoft.engine.bpm.process.ProcessInstance> searchFailedProcessInstancesSupervisedBy(long userId, org.bonitasoft.engine.search.SearchOptions searchOptions) throws org.bonitasoft.engine.exception.SearchException
      Specified by:
      searchFailedProcessInstancesSupervisedBy in interface org.bonitasoft.engine.api.ProcessRuntimeAPI
      Throws:
      org.bonitasoft.engine.exception.SearchException
    • createSearchFailedProcessInstancesSupervisedBy

      protected SearchFailedProcessInstancesSupervisedBy createSearchFailedProcessInstancesSupervisedBy(long userId, org.bonitasoft.engine.search.SearchOptions searchOptions, ProcessInstanceService processInstanceService, SearchEntitiesDescriptor searchEntitiesDescriptor, ProcessDefinitionService processDefinitionService)
    • createTxUserGetter

      protected GetSUser createTxUserGetter(long userId, IdentityService identityService)
    • searchOpenProcessInstancesSupervisedBy

      public org.bonitasoft.engine.search.SearchResult<org.bonitasoft.engine.bpm.process.ProcessInstance> searchOpenProcessInstancesSupervisedBy(long userId, org.bonitasoft.engine.search.SearchOptions searchOptions) throws org.bonitasoft.engine.exception.SearchException
      Specified by:
      searchOpenProcessInstancesSupervisedBy in interface org.bonitasoft.engine.api.ProcessRuntimeAPI
      Throws:
      org.bonitasoft.engine.exception.SearchException
    • searchProcessDeploymentInfosStartedBy

      public org.bonitasoft.engine.search.SearchResult<org.bonitasoft.engine.bpm.process.ProcessDeploymentInfo> searchProcessDeploymentInfosStartedBy(long userId, org.bonitasoft.engine.search.SearchOptions searchOptions) throws org.bonitasoft.engine.exception.SearchException
      Specified by:
      searchProcessDeploymentInfosStartedBy in interface org.bonitasoft.engine.api.ProcessManagementAPI
      Throws:
      org.bonitasoft.engine.exception.SearchException
    • searchProcessDeploymentInfos

      public org.bonitasoft.engine.search.SearchResult<org.bonitasoft.engine.bpm.process.ProcessDeploymentInfo> searchProcessDeploymentInfos(org.bonitasoft.engine.search.SearchOptions searchOptions) throws org.bonitasoft.engine.exception.SearchException
      Specified by:
      searchProcessDeploymentInfos in interface org.bonitasoft.engine.api.ProcessManagementAPI
      Throws:
      org.bonitasoft.engine.exception.SearchException
    • searchProcessDeploymentInfosCanBeStartedBy

      public org.bonitasoft.engine.search.SearchResult<org.bonitasoft.engine.bpm.process.ProcessDeploymentInfo> searchProcessDeploymentInfosCanBeStartedBy(long userId, org.bonitasoft.engine.search.SearchOptions searchOptions) throws org.bonitasoft.engine.exception.RetrieveException, org.bonitasoft.engine.exception.SearchException
      Specified by:
      searchProcessDeploymentInfosCanBeStartedBy in interface org.bonitasoft.engine.api.ProcessManagementAPI
      Throws:
      org.bonitasoft.engine.exception.RetrieveException
      org.bonitasoft.engine.exception.SearchException
    • searchProcessDeploymentInfosCanBeStartedByUsersManagedBy

      public org.bonitasoft.engine.search.SearchResult<org.bonitasoft.engine.bpm.process.ProcessDeploymentInfo> searchProcessDeploymentInfosCanBeStartedByUsersManagedBy(long managerUserId, org.bonitasoft.engine.search.SearchOptions searchOptions) throws org.bonitasoft.engine.exception.SearchException
      Specified by:
      searchProcessDeploymentInfosCanBeStartedByUsersManagedBy in interface org.bonitasoft.engine.api.ProcessManagementAPI
      Throws:
      org.bonitasoft.engine.exception.SearchException
    • searchProcessDeploymentInfosWithAssignedOrPendingHumanTasksFor

      public org.bonitasoft.engine.search.SearchResult<org.bonitasoft.engine.bpm.process.ProcessDeploymentInfo> searchProcessDeploymentInfosWithAssignedOrPendingHumanTasksFor(long userId, org.bonitasoft.engine.search.SearchOptions searchOptions) throws org.bonitasoft.engine.exception.SearchException
      Specified by:
      searchProcessDeploymentInfosWithAssignedOrPendingHumanTasksFor in interface org.bonitasoft.engine.api.ProcessRuntimeAPI
      Throws:
      org.bonitasoft.engine.exception.SearchException
    • searchProcessDeploymentInfosWithAssignedOrPendingHumanTasksSupervisedBy

      public org.bonitasoft.engine.search.SearchResult<org.bonitasoft.engine.bpm.process.ProcessDeploymentInfo> searchProcessDeploymentInfosWithAssignedOrPendingHumanTasksSupervisedBy(long supervisorId, org.bonitasoft.engine.search.SearchOptions searchOptions) throws org.bonitasoft.engine.exception.SearchException
      Specified by:
      searchProcessDeploymentInfosWithAssignedOrPendingHumanTasksSupervisedBy in interface org.bonitasoft.engine.api.ProcessRuntimeAPI
      Throws:
      org.bonitasoft.engine.exception.SearchException
    • searchProcessDeploymentInfosWithAssignedOrPendingHumanTasks

      public org.bonitasoft.engine.search.SearchResult<org.bonitasoft.engine.bpm.process.ProcessDeploymentInfo> searchProcessDeploymentInfosWithAssignedOrPendingHumanTasks(org.bonitasoft.engine.search.SearchOptions searchOptions) throws org.bonitasoft.engine.exception.SearchException
      Specified by:
      searchProcessDeploymentInfosWithAssignedOrPendingHumanTasks in interface org.bonitasoft.engine.api.ProcessRuntimeAPI
      Throws:
      org.bonitasoft.engine.exception.SearchException
    • getActiveFlownodeStateCountersForProcessDefinition

      public Map<String,Map<String,Long>> getActiveFlownodeStateCountersForProcessDefinition(long processDefinitionId) throws org.bonitasoft.engine.bpm.process.ProcessDefinitionNotFoundException
      Specified by:
      getActiveFlownodeStateCountersForProcessDefinition in interface org.bonitasoft.engine.api.ProcessRuntimeAPI
      Throws:
      org.bonitasoft.engine.bpm.process.ProcessDefinitionNotFoundException
    • getFlownodeStateCounters

      public Map<String,Map<String,Long>> getFlownodeStateCounters(long processInstanceId)
      Specified by:
      getFlownodeStateCounters in interface org.bonitasoft.engine.api.ProcessRuntimeAPI
    • searchProcessDeploymentInfosSupervisedBy

      public org.bonitasoft.engine.search.SearchResult<org.bonitasoft.engine.bpm.process.ProcessDeploymentInfo> searchProcessDeploymentInfosSupervisedBy(long userId, org.bonitasoft.engine.search.SearchOptions searchOptions) throws org.bonitasoft.engine.exception.SearchException
      Specified by:
      searchProcessDeploymentInfosSupervisedBy in interface org.bonitasoft.engine.api.ProcessManagementAPI
      Throws:
      org.bonitasoft.engine.exception.SearchException
    • searchAssignedTasksSupervisedBy

      public org.bonitasoft.engine.search.SearchResult<org.bonitasoft.engine.bpm.flownode.HumanTaskInstance> searchAssignedTasksSupervisedBy(long supervisorId, org.bonitasoft.engine.search.SearchOptions searchOptions) throws org.bonitasoft.engine.exception.SearchException
      Specified by:
      searchAssignedTasksSupervisedBy in interface org.bonitasoft.engine.api.ProcessRuntimeAPI
      Throws:
      org.bonitasoft.engine.exception.SearchException
    • searchArchivedHumanTasksSupervisedBy

      public org.bonitasoft.engine.search.SearchResult<org.bonitasoft.engine.bpm.flownode.ArchivedHumanTaskInstance> searchArchivedHumanTasksSupervisedBy(long supervisorId, org.bonitasoft.engine.search.SearchOptions searchOptions) throws org.bonitasoft.engine.exception.SearchException
      Specified by:
      searchArchivedHumanTasksSupervisedBy in interface org.bonitasoft.engine.api.ProcessRuntimeAPI
      Throws:
      org.bonitasoft.engine.exception.SearchException
    • searchProcessSupervisors

      public org.bonitasoft.engine.search.SearchResult<org.bonitasoft.engine.bpm.supervisor.ProcessSupervisor> searchProcessSupervisors(org.bonitasoft.engine.search.SearchOptions searchOptions) throws org.bonitasoft.engine.exception.SearchException
      Specified by:
      searchProcessSupervisors in interface org.bonitasoft.engine.api.ProcessManagementAPI
      Throws:
      org.bonitasoft.engine.exception.SearchException
    • isUserProcessSupervisor

      public boolean isUserProcessSupervisor(long processDefinitionId, long userId)
      Specified by:
      isUserProcessSupervisor in interface org.bonitasoft.engine.api.ProcessManagementAPI
    • deleteSupervisor

      public void deleteSupervisor(long supervisorId) throws org.bonitasoft.engine.exception.DeletionException
      Specified by:
      deleteSupervisor in interface org.bonitasoft.engine.api.ProcessManagementAPI
      Throws:
      org.bonitasoft.engine.exception.DeletionException
    • deleteSupervisor

      public void deleteSupervisor(Long processDefinitionId, Long userId, Long roleId, Long groupId) throws org.bonitasoft.engine.exception.DeletionException
      Specified by:
      deleteSupervisor in interface org.bonitasoft.engine.api.ProcessManagementAPI
      Throws:
      org.bonitasoft.engine.exception.DeletionException
    • createProcessSupervisorForUser

      public org.bonitasoft.engine.bpm.supervisor.ProcessSupervisor createProcessSupervisorForUser(long processDefinitionId, long userId) throws org.bonitasoft.engine.exception.CreationException
      Specified by:
      createProcessSupervisorForUser in interface org.bonitasoft.engine.api.ProcessManagementAPI
      Throws:
      org.bonitasoft.engine.exception.CreationException
    • createProcessSupervisorForRole

      public org.bonitasoft.engine.bpm.supervisor.ProcessSupervisor createProcessSupervisorForRole(long processDefinitionId, long roleId) throws org.bonitasoft.engine.exception.CreationException
      Specified by:
      createProcessSupervisorForRole in interface org.bonitasoft.engine.api.ProcessManagementAPI
      Throws:
      org.bonitasoft.engine.exception.CreationException
    • createProcessSupervisorForGroup

      public org.bonitasoft.engine.bpm.supervisor.ProcessSupervisor createProcessSupervisorForGroup(long processDefinitionId, long groupId) throws org.bonitasoft.engine.exception.CreationException
      Specified by:
      createProcessSupervisorForGroup in interface org.bonitasoft.engine.api.ProcessManagementAPI
      Throws:
      org.bonitasoft.engine.exception.CreationException
    • createProcessSupervisorForMembership

      public org.bonitasoft.engine.bpm.supervisor.ProcessSupervisor createProcessSupervisorForMembership(long processDefinitionId, long groupId, long roleId) throws org.bonitasoft.engine.exception.CreationException
      Specified by:
      createProcessSupervisorForMembership in interface org.bonitasoft.engine.api.ProcessManagementAPI
      Throws:
      org.bonitasoft.engine.exception.CreationException
    • searchSProcessSupervisors

      protected List<SProcessSupervisor> searchSProcessSupervisors(Long processDefinitionId, Long userId, Long groupId, Long roleId) throws SBonitaReadException
      Throws:
      SBonitaReadException
    • searchUncategorizedProcessDeploymentInfosCanBeStartedBy

      public org.bonitasoft.engine.search.SearchResult<org.bonitasoft.engine.bpm.process.ProcessDeploymentInfo> searchUncategorizedProcessDeploymentInfosCanBeStartedBy(long userId, org.bonitasoft.engine.search.SearchOptions searchOptions) throws org.bonitasoft.engine.exception.SearchException
      Specified by:
      searchUncategorizedProcessDeploymentInfosCanBeStartedBy in interface org.bonitasoft.engine.api.ProcessManagementAPI
      Throws:
      org.bonitasoft.engine.exception.SearchException
    • searchArchivedHumanTasksManagedBy

      public org.bonitasoft.engine.search.SearchResult<org.bonitasoft.engine.bpm.flownode.ArchivedHumanTaskInstance> searchArchivedHumanTasksManagedBy(long managerUserId, org.bonitasoft.engine.search.SearchOptions searchOptions) throws org.bonitasoft.engine.exception.SearchException
      Specified by:
      searchArchivedHumanTasksManagedBy in interface org.bonitasoft.engine.api.ProcessRuntimeAPI
      Throws:
      org.bonitasoft.engine.exception.SearchException
    • searchOpenProcessInstancesInvolvingUser

      public org.bonitasoft.engine.search.SearchResult<org.bonitasoft.engine.bpm.process.ProcessInstance> searchOpenProcessInstancesInvolvingUser(long userId, org.bonitasoft.engine.search.SearchOptions searchOptions) throws org.bonitasoft.engine.exception.SearchException
      Specified by:
      searchOpenProcessInstancesInvolvingUser in interface org.bonitasoft.engine.api.ProcessRuntimeAPI
      Throws:
      org.bonitasoft.engine.exception.SearchException
    • searchOpenProcessInstancesInvolvingUsersManagedBy

      public org.bonitasoft.engine.search.SearchResult<org.bonitasoft.engine.bpm.process.ProcessInstance> searchOpenProcessInstancesInvolvingUsersManagedBy(long managerUserId, org.bonitasoft.engine.search.SearchOptions searchOptions) throws org.bonitasoft.engine.exception.SearchException
      Specified by:
      searchOpenProcessInstancesInvolvingUsersManagedBy in interface org.bonitasoft.engine.api.ProcessRuntimeAPI
      Throws:
      org.bonitasoft.engine.exception.SearchException
    • searchArchivedHumanTasks

      public org.bonitasoft.engine.search.SearchResult<org.bonitasoft.engine.bpm.flownode.ArchivedHumanTaskInstance> searchArchivedHumanTasks(org.bonitasoft.engine.search.SearchOptions searchOptions) throws org.bonitasoft.engine.exception.SearchException
      Specified by:
      searchArchivedHumanTasks in interface org.bonitasoft.engine.api.ProcessRuntimeAPI
      Throws:
      org.bonitasoft.engine.exception.SearchException
    • searchAssignedTasksManagedBy

      public org.bonitasoft.engine.search.SearchResult<org.bonitasoft.engine.bpm.flownode.HumanTaskInstance> searchAssignedTasksManagedBy(long managerUserId, org.bonitasoft.engine.search.SearchOptions searchOptions) throws org.bonitasoft.engine.exception.SearchException
      Specified by:
      searchAssignedTasksManagedBy in interface org.bonitasoft.engine.api.ProcessRuntimeAPI
      Throws:
      org.bonitasoft.engine.exception.SearchException
    • searchArchivedProcessInstancesSupervisedBy

      public org.bonitasoft.engine.search.SearchResult<org.bonitasoft.engine.bpm.process.ArchivedProcessInstance> searchArchivedProcessInstancesSupervisedBy(long userId, org.bonitasoft.engine.search.SearchOptions searchOptions) throws org.bonitasoft.engine.exception.SearchException
      Specified by:
      searchArchivedProcessInstancesSupervisedBy in interface org.bonitasoft.engine.api.ProcessRuntimeAPI
      Throws:
      org.bonitasoft.engine.exception.SearchException
    • searchArchivedProcessInstancesInvolvingUser

      public org.bonitasoft.engine.search.SearchResult<org.bonitasoft.engine.bpm.process.ArchivedProcessInstance> searchArchivedProcessInstancesInvolvingUser(long userId, org.bonitasoft.engine.search.SearchOptions searchOptions) throws org.bonitasoft.engine.exception.SearchException
      Specified by:
      searchArchivedProcessInstancesInvolvingUser in interface org.bonitasoft.engine.api.ProcessRuntimeAPI
      Throws:
      org.bonitasoft.engine.exception.SearchException
    • searchPendingTasksForUser

      public org.bonitasoft.engine.search.SearchResult<org.bonitasoft.engine.bpm.flownode.HumanTaskInstance> searchPendingTasksForUser(long userId, org.bonitasoft.engine.search.SearchOptions searchOptions) throws org.bonitasoft.engine.exception.SearchException
      Specified by:
      searchPendingTasksForUser in interface org.bonitasoft.engine.api.ProcessRuntimeAPI
      Throws:
      org.bonitasoft.engine.exception.SearchException
    • searchPendingTasksAssignedToUser

      public org.bonitasoft.engine.search.SearchResult<org.bonitasoft.engine.bpm.flownode.HumanTaskInstance> searchPendingTasksAssignedToUser(long userId, org.bonitasoft.engine.search.SearchOptions searchOptions) throws org.bonitasoft.engine.exception.SearchException
      Specified by:
      searchPendingTasksAssignedToUser in interface org.bonitasoft.engine.api.ProcessRuntimeAPI
      Throws:
      org.bonitasoft.engine.exception.SearchException
    • searchMyAvailableHumanTasks

      public org.bonitasoft.engine.search.SearchResult<org.bonitasoft.engine.bpm.flownode.HumanTaskInstance> searchMyAvailableHumanTasks(long userId, org.bonitasoft.engine.search.SearchOptions searchOptions) throws org.bonitasoft.engine.exception.SearchException
      Specified by:
      searchMyAvailableHumanTasks in interface org.bonitasoft.engine.api.ProcessRuntimeAPI
      Throws:
      org.bonitasoft.engine.exception.SearchException
    • searchPendingOrAssignedToUserOrAssignedToOthersTasks

      public org.bonitasoft.engine.search.SearchResult<org.bonitasoft.engine.bpm.flownode.HumanTaskInstance> searchPendingOrAssignedToUserOrAssignedToOthersTasks(long userId, org.bonitasoft.engine.search.SearchOptions searchOptions) throws org.bonitasoft.engine.exception.SearchException
      Specified by:
      searchPendingOrAssignedToUserOrAssignedToOthersTasks in interface org.bonitasoft.engine.api.ProcessRuntimeAPI
      Throws:
      org.bonitasoft.engine.exception.SearchException
    • searchPendingTasksSupervisedBy

      public org.bonitasoft.engine.search.SearchResult<org.bonitasoft.engine.bpm.flownode.HumanTaskInstance> searchPendingTasksSupervisedBy(long userId, org.bonitasoft.engine.search.SearchOptions searchOptions) throws org.bonitasoft.engine.exception.SearchException
      Specified by:
      searchPendingTasksSupervisedBy in interface org.bonitasoft.engine.api.ProcessRuntimeAPI
      Throws:
      org.bonitasoft.engine.exception.SearchException
    • searchComments

      public org.bonitasoft.engine.search.SearchResult<org.bonitasoft.engine.bpm.comment.Comment> searchComments(org.bonitasoft.engine.search.SearchOptions searchOptions) throws org.bonitasoft.engine.exception.SearchException
      Specified by:
      searchComments in interface org.bonitasoft.engine.api.ProcessRuntimeAPI
      Throws:
      org.bonitasoft.engine.exception.SearchException
    • addProcessComment

      public org.bonitasoft.engine.bpm.comment.Comment addProcessComment(long processInstanceId, String comment) throws org.bonitasoft.engine.exception.CreationException
      Specified by:
      addProcessComment in interface org.bonitasoft.engine.api.ProcessRuntimeAPI
      Throws:
      org.bonitasoft.engine.exception.CreationException
    • addProcessCommentOnBehalfOfUser

      public org.bonitasoft.engine.bpm.comment.Comment addProcessCommentOnBehalfOfUser(long processInstanceId, String comment, long userId) throws org.bonitasoft.engine.exception.CreationException
      Specified by:
      addProcessCommentOnBehalfOfUser in interface org.bonitasoft.engine.api.ProcessRuntimeAPI
      Throws:
      org.bonitasoft.engine.exception.CreationException
    • attachDocument

      public org.bonitasoft.engine.bpm.document.Document attachDocument(long processInstanceId, String documentName, String fileName, String mimeType, String url) throws org.bonitasoft.engine.bpm.document.DocumentAttachmentException, org.bonitasoft.engine.bpm.process.ProcessInstanceNotFoundException
      Specified by:
      attachDocument in interface org.bonitasoft.engine.api.DocumentAPI
      Throws:
      org.bonitasoft.engine.bpm.document.DocumentAttachmentException
      org.bonitasoft.engine.bpm.process.ProcessInstanceNotFoundException
    • attachDocument

      public org.bonitasoft.engine.bpm.document.Document attachDocument(long processInstanceId, String documentName, String fileName, String mimeType, byte[] documentContent) throws org.bonitasoft.engine.bpm.document.DocumentAttachmentException, org.bonitasoft.engine.bpm.process.ProcessInstanceNotFoundException
      Specified by:
      attachDocument in interface org.bonitasoft.engine.api.DocumentAPI
      Throws:
      org.bonitasoft.engine.bpm.document.DocumentAttachmentException
      org.bonitasoft.engine.bpm.process.ProcessInstanceNotFoundException
    • attachNewDocumentVersion

      public org.bonitasoft.engine.bpm.document.Document attachNewDocumentVersion(long processInstanceId, String documentName, String fileName, String mimeType, String url) throws org.bonitasoft.engine.bpm.document.DocumentAttachmentException
      Specified by:
      attachNewDocumentVersion in interface org.bonitasoft.engine.api.DocumentAPI
      Throws:
      org.bonitasoft.engine.bpm.document.DocumentAttachmentException
    • attachNewDocumentVersion

      public org.bonitasoft.engine.bpm.document.Document attachNewDocumentVersion(long processInstanceId, String documentName, String contentFileName, String contentMimeType, byte[] documentContent) throws org.bonitasoft.engine.bpm.document.DocumentAttachmentException
      Specified by:
      attachNewDocumentVersion in interface org.bonitasoft.engine.api.DocumentAPI
      Throws:
      org.bonitasoft.engine.bpm.document.DocumentAttachmentException
    • getDocument

      public org.bonitasoft.engine.bpm.document.Document getDocument(long documentId) throws org.bonitasoft.engine.bpm.document.DocumentNotFoundException
      Specified by:
      getDocument in interface org.bonitasoft.engine.api.DocumentAPI
      Throws:
      org.bonitasoft.engine.bpm.document.DocumentNotFoundException
    • getLastVersionOfDocuments

      public List<org.bonitasoft.engine.bpm.document.Document> getLastVersionOfDocuments(long processInstanceId, int pageIndex, int numberPerPage, org.bonitasoft.engine.bpm.document.DocumentCriterion pagingCriterion) throws org.bonitasoft.engine.bpm.document.DocumentException, org.bonitasoft.engine.bpm.process.ProcessInstanceNotFoundException
      Specified by:
      getLastVersionOfDocuments in interface org.bonitasoft.engine.api.DocumentAPI
      Throws:
      org.bonitasoft.engine.bpm.document.DocumentException
      org.bonitasoft.engine.bpm.process.ProcessInstanceNotFoundException
    • getDocumentContent

      public byte[] getDocumentContent(String documentStorageId) throws org.bonitasoft.engine.bpm.document.DocumentNotFoundException
      Specified by:
      getDocumentContent in interface org.bonitasoft.engine.api.DocumentAPI
      Throws:
      org.bonitasoft.engine.bpm.document.DocumentNotFoundException
    • getLastDocument

      public org.bonitasoft.engine.bpm.document.Document getLastDocument(long processInstanceId, String documentName) throws org.bonitasoft.engine.bpm.document.DocumentNotFoundException
      Specified by:
      getLastDocument in interface org.bonitasoft.engine.api.DocumentAPI
      Throws:
      org.bonitasoft.engine.bpm.document.DocumentNotFoundException
    • getNumberOfDocuments

      public long getNumberOfDocuments(long processInstanceId) throws org.bonitasoft.engine.bpm.document.DocumentException
      Specified by:
      getNumberOfDocuments in interface org.bonitasoft.engine.api.DocumentAPI
      Throws:
      org.bonitasoft.engine.bpm.document.DocumentException
    • getDocumentAtProcessInstantiation

      public org.bonitasoft.engine.bpm.document.Document getDocumentAtProcessInstantiation(long processInstanceId, String documentName) throws org.bonitasoft.engine.bpm.document.DocumentNotFoundException
      Specified by:
      getDocumentAtProcessInstantiation in interface org.bonitasoft.engine.api.DocumentAPI
      Throws:
      org.bonitasoft.engine.bpm.document.DocumentNotFoundException
    • getDocumentAtActivityInstanceCompletion

      public org.bonitasoft.engine.bpm.document.Document getDocumentAtActivityInstanceCompletion(long activityInstanceId, String documentName) throws org.bonitasoft.engine.bpm.document.DocumentNotFoundException
      Specified by:
      getDocumentAtActivityInstanceCompletion in interface org.bonitasoft.engine.api.DocumentAPI
      Throws:
      org.bonitasoft.engine.bpm.document.DocumentNotFoundException
    • searchPendingTasksManagedBy

      public org.bonitasoft.engine.search.SearchResult<org.bonitasoft.engine.bpm.flownode.HumanTaskInstance> searchPendingTasksManagedBy(long managerUserId, org.bonitasoft.engine.search.SearchOptions searchOptions) throws org.bonitasoft.engine.exception.SearchException
      Specified by:
      searchPendingTasksManagedBy in interface org.bonitasoft.engine.api.ProcessRuntimeAPI
      Throws:
      org.bonitasoft.engine.exception.SearchException
    • getNumberOfOverdueOpenTasks

      public Map<Long,Long> getNumberOfOverdueOpenTasks(List<Long> userIds) throws org.bonitasoft.engine.exception.RetrieveException
      Specified by:
      getNumberOfOverdueOpenTasks in interface org.bonitasoft.engine.api.ProcessRuntimeAPI
      Throws:
      org.bonitasoft.engine.exception.RetrieveException
    • searchUncategorizedProcessDeploymentInfos

      public org.bonitasoft.engine.search.SearchResult<org.bonitasoft.engine.bpm.process.ProcessDeploymentInfo> searchUncategorizedProcessDeploymentInfos(org.bonitasoft.engine.search.SearchOptions searchOptions) throws org.bonitasoft.engine.exception.SearchException
      Specified by:
      searchUncategorizedProcessDeploymentInfos in interface org.bonitasoft.engine.api.ProcessManagementAPI
      Throws:
      org.bonitasoft.engine.exception.SearchException
    • searchCommentsManagedBy

      public org.bonitasoft.engine.search.SearchResult<org.bonitasoft.engine.bpm.comment.Comment> searchCommentsManagedBy(long managerUserId, org.bonitasoft.engine.search.SearchOptions searchOptions) throws org.bonitasoft.engine.exception.SearchException
      Specified by:
      searchCommentsManagedBy in interface org.bonitasoft.engine.api.ProcessRuntimeAPI
      Throws:
      org.bonitasoft.engine.exception.SearchException
    • searchCommentsInvolvingUser

      public org.bonitasoft.engine.search.SearchResult<org.bonitasoft.engine.bpm.comment.Comment> searchCommentsInvolvingUser(long userId, org.bonitasoft.engine.search.SearchOptions searchOptions) throws org.bonitasoft.engine.exception.SearchException
      Specified by:
      searchCommentsInvolvingUser in interface org.bonitasoft.engine.api.ProcessRuntimeAPI
      Throws:
      org.bonitasoft.engine.exception.SearchException
    • getChildrenInstanceIdsOfProcessInstance

      public List<Long> getChildrenInstanceIdsOfProcessInstance(long processInstanceId, int startIndex, int maxResults, org.bonitasoft.engine.bpm.process.ProcessInstanceCriterion criterion)
      Specified by:
      getChildrenInstanceIdsOfProcessInstance in interface org.bonitasoft.engine.api.ProcessRuntimeAPI
    • searchUncategorizedProcessDeploymentInfosSupervisedBy

      public org.bonitasoft.engine.search.SearchResult<org.bonitasoft.engine.bpm.process.ProcessDeploymentInfo> searchUncategorizedProcessDeploymentInfosSupervisedBy(long userId, org.bonitasoft.engine.search.SearchOptions searchOptions) throws org.bonitasoft.engine.exception.SearchException
      Specified by:
      searchUncategorizedProcessDeploymentInfosSupervisedBy in interface org.bonitasoft.engine.api.ProcessManagementAPI
      Throws:
      org.bonitasoft.engine.exception.SearchException
    • getProcessDeploymentInfosFromIds

      public Map<Long,org.bonitasoft.engine.bpm.process.ProcessDeploymentInfo> getProcessDeploymentInfosFromIds(List<Long> processDefinitionIds)
      Specified by:
      getProcessDeploymentInfosFromIds in interface org.bonitasoft.engine.api.ProcessManagementAPI
    • getConnectorImplementations

      public List<org.bonitasoft.engine.bpm.connector.ConnectorImplementationDescriptor> getConnectorImplementations(long processDefinitionId, int startIndex, int maxsResults, org.bonitasoft.engine.bpm.connector.ConnectorCriterion sortingCriterion)
      Specified by:
      getConnectorImplementations in interface org.bonitasoft.engine.api.ProcessManagementAPI
    • getNumberOfConnectorImplementations

      public long getNumberOfConnectorImplementations(long processDefinitionId)
      Specified by:
      getNumberOfConnectorImplementations in interface org.bonitasoft.engine.api.ProcessManagementAPI
    • searchActivities

      public org.bonitasoft.engine.search.SearchResult<org.bonitasoft.engine.bpm.flownode.ActivityInstance> searchActivities(org.bonitasoft.engine.search.SearchOptions searchOptions) throws org.bonitasoft.engine.exception.SearchException
      Specified by:
      searchActivities in interface org.bonitasoft.engine.api.ProcessRuntimeAPI
      Throws:
      org.bonitasoft.engine.exception.SearchException
    • searchArchivedFlowNodeInstances

      public org.bonitasoft.engine.search.SearchResult<org.bonitasoft.engine.bpm.flownode.ArchivedFlowNodeInstance> searchArchivedFlowNodeInstances(org.bonitasoft.engine.search.SearchOptions searchOptions) throws org.bonitasoft.engine.exception.SearchException
      Specified by:
      searchArchivedFlowNodeInstances in interface org.bonitasoft.engine.api.ProcessRuntimeAPI
      Throws:
      org.bonitasoft.engine.exception.SearchException
    • searchFlowNodeInstances

      public org.bonitasoft.engine.search.SearchResult<org.bonitasoft.engine.bpm.flownode.FlowNodeInstance> searchFlowNodeInstances(org.bonitasoft.engine.search.SearchOptions searchOptions) throws org.bonitasoft.engine.exception.SearchException
      Specified by:
      searchFlowNodeInstances in interface org.bonitasoft.engine.api.ProcessRuntimeAPI
      Throws:
      org.bonitasoft.engine.exception.SearchException
    • searchTimerEventTriggerInstances

      public org.bonitasoft.engine.search.SearchResult<org.bonitasoft.engine.bpm.flownode.TimerEventTriggerInstance> searchTimerEventTriggerInstances(long processInstanceId, org.bonitasoft.engine.search.SearchOptions searchOptions) throws org.bonitasoft.engine.exception.SearchException
      Specified by:
      searchTimerEventTriggerInstances in interface org.bonitasoft.engine.api.ProcessRuntimeAPI
      Throws:
      org.bonitasoft.engine.exception.SearchException
    • updateExecutionDateOfTimerEventTriggerInstance

      public Date updateExecutionDateOfTimerEventTriggerInstance(long timerEventTriggerInstanceId, Date executionDate) throws org.bonitasoft.engine.bpm.flownode.TimerEventTriggerInstanceNotFoundException, org.bonitasoft.engine.exception.UpdateException
      Specified by:
      updateExecutionDateOfTimerEventTriggerInstance in interface org.bonitasoft.engine.api.ProcessRuntimeAPI
      Throws:
      org.bonitasoft.engine.bpm.flownode.TimerEventTriggerInstanceNotFoundException
      org.bonitasoft.engine.exception.UpdateException
    • searchArchivedActivities

      public org.bonitasoft.engine.search.SearchResult<org.bonitasoft.engine.bpm.flownode.ArchivedActivityInstance> searchArchivedActivities(org.bonitasoft.engine.search.SearchOptions searchOptions) throws org.bonitasoft.engine.exception.SearchException
      Specified by:
      searchArchivedActivities in interface org.bonitasoft.engine.api.ProcessRuntimeAPI
      Throws:
      org.bonitasoft.engine.exception.SearchException
    • getConnectorImplementation

      public org.bonitasoft.engine.bpm.connector.ConnectorImplementationDescriptor getConnectorImplementation(long processDefinitionId, String connectorId, String connectorVersion) throws org.bonitasoft.engine.bpm.connector.ConnectorNotFoundException
      Specified by:
      getConnectorImplementation in interface org.bonitasoft.engine.api.ProcessManagementAPI
      Throws:
      org.bonitasoft.engine.bpm.connector.ConnectorNotFoundException
    • cancelProcessInstance

      public void cancelProcessInstance(long processInstanceId) throws org.bonitasoft.engine.bpm.process.ProcessInstanceNotFoundException, org.bonitasoft.engine.exception.UpdateException
      Specified by:
      cancelProcessInstance in interface org.bonitasoft.engine.api.ProcessRuntimeAPI
      Throws:
      org.bonitasoft.engine.bpm.process.ProcessInstanceNotFoundException
      org.bonitasoft.engine.exception.UpdateException
    • setProcessInstanceState

      public void setProcessInstanceState(org.bonitasoft.engine.bpm.process.ProcessInstance processInstance, String state) throws org.bonitasoft.engine.exception.UpdateException
      Specified by:
      setProcessInstanceState in interface org.bonitasoft.engine.api.ProcessRuntimeAPI
      Throws:
      org.bonitasoft.engine.exception.UpdateException
    • getProcessDeploymentInfosFromProcessInstanceIds

      public Map<Long,org.bonitasoft.engine.bpm.process.ProcessDeploymentInfo> getProcessDeploymentInfosFromProcessInstanceIds(List<Long> processInstanceIds)
      Specified by:
      getProcessDeploymentInfosFromProcessInstanceIds in interface org.bonitasoft.engine.api.ProcessManagementAPI
    • getProcessDeploymentInfosFromArchivedProcessInstanceIds

      public Map<Long,org.bonitasoft.engine.bpm.process.ProcessDeploymentInfo> getProcessDeploymentInfosFromArchivedProcessInstanceIds(List<Long> archivedProcessInstantsIds)
      Specified by:
      getProcessDeploymentInfosFromArchivedProcessInstanceIds in interface org.bonitasoft.engine.api.ProcessManagementAPI
    • searchDocuments

      public org.bonitasoft.engine.search.SearchResult<org.bonitasoft.engine.bpm.document.Document> searchDocuments(org.bonitasoft.engine.search.SearchOptions searchOptions) throws org.bonitasoft.engine.exception.SearchException
      Specified by:
      searchDocuments in interface org.bonitasoft.engine.api.DocumentAPI
      Throws:
      org.bonitasoft.engine.exception.SearchException
    • searchDocumentsSupervisedBy

      public org.bonitasoft.engine.search.SearchResult<org.bonitasoft.engine.bpm.document.Document> searchDocumentsSupervisedBy(long userId, org.bonitasoft.engine.search.SearchOptions searchOptions) throws org.bonitasoft.engine.exception.SearchException, org.bonitasoft.engine.identity.UserNotFoundException
      Specified by:
      searchDocumentsSupervisedBy in interface org.bonitasoft.engine.api.DocumentAPI
      Throws:
      org.bonitasoft.engine.exception.SearchException
      org.bonitasoft.engine.identity.UserNotFoundException
    • searchArchivedDocuments

      public org.bonitasoft.engine.search.SearchResult<org.bonitasoft.engine.bpm.document.ArchivedDocument> searchArchivedDocuments(org.bonitasoft.engine.search.SearchOptions searchOptions) throws org.bonitasoft.engine.exception.SearchException
      Specified by:
      searchArchivedDocuments in interface org.bonitasoft.engine.api.DocumentAPI
      Throws:
      org.bonitasoft.engine.exception.SearchException
    • searchArchivedDocumentsSupervisedBy

      public org.bonitasoft.engine.search.SearchResult<org.bonitasoft.engine.bpm.document.ArchivedDocument> searchArchivedDocumentsSupervisedBy(long userId, org.bonitasoft.engine.search.SearchOptions searchOptions) throws org.bonitasoft.engine.exception.SearchException, org.bonitasoft.engine.identity.UserNotFoundException
      Specified by:
      searchArchivedDocumentsSupervisedBy in interface org.bonitasoft.engine.api.DocumentAPI
      Throws:
      org.bonitasoft.engine.exception.SearchException
      org.bonitasoft.engine.identity.UserNotFoundException
    • retryTask

      public void retryTask(long activityInstanceId) throws org.bonitasoft.engine.bpm.flownode.ActivityExecutionException, org.bonitasoft.engine.bpm.flownode.ActivityInstanceNotFoundException
      Specified by:
      retryTask in interface org.bonitasoft.engine.api.ProcessRuntimeAPI
      Throws:
      org.bonitasoft.engine.bpm.flownode.ActivityExecutionException
      org.bonitasoft.engine.bpm.flownode.ActivityInstanceNotFoundException
    • executeMessageCouple

      public void executeMessageCouple(long messageInstanceId, long waitingMessageId) throws org.bonitasoft.engine.exception.ExecutionException
      Specified by:
      executeMessageCouple in interface org.bonitasoft.engine.api.ProcessRuntimeAPI
      Throws:
      org.bonitasoft.engine.exception.ExecutionException
    • getArchivedVersionOfProcessDocument

      public org.bonitasoft.engine.bpm.document.ArchivedDocument getArchivedVersionOfProcessDocument(long sourceObjectId) throws org.bonitasoft.engine.bpm.document.ArchivedDocumentNotFoundException
      Specified by:
      getArchivedVersionOfProcessDocument in interface org.bonitasoft.engine.api.DocumentAPI
      Throws:
      org.bonitasoft.engine.bpm.document.ArchivedDocumentNotFoundException
    • getArchivedProcessDocument

      public org.bonitasoft.engine.bpm.document.ArchivedDocument getArchivedProcessDocument(long archivedProcessDocumentId) throws org.bonitasoft.engine.bpm.document.ArchivedDocumentNotFoundException
      Specified by:
      getArchivedProcessDocument in interface org.bonitasoft.engine.api.DocumentAPI
      Throws:
      org.bonitasoft.engine.bpm.document.ArchivedDocumentNotFoundException
    • searchArchivedComments

      public org.bonitasoft.engine.search.SearchResult<org.bonitasoft.engine.bpm.comment.ArchivedComment> searchArchivedComments(org.bonitasoft.engine.search.SearchOptions searchOptions) throws org.bonitasoft.engine.exception.SearchException
      Specified by:
      searchArchivedComments in interface org.bonitasoft.engine.api.ProcessRuntimeAPI
      Throws:
      org.bonitasoft.engine.exception.SearchException
    • getArchivedComment

      public org.bonitasoft.engine.bpm.comment.ArchivedComment getArchivedComment(long archivedCommentId) throws org.bonitasoft.engine.exception.RetrieveException, org.bonitasoft.engine.exception.NotFoundException
      Specified by:
      getArchivedComment in interface org.bonitasoft.engine.api.ProcessRuntimeAPI
      Throws:
      org.bonitasoft.engine.exception.RetrieveException
      org.bonitasoft.engine.exception.NotFoundException
    • getActorsFromActorIds

      public Map<Long,org.bonitasoft.engine.bpm.actor.ActorInstance> getActorsFromActorIds(List<Long> actorIds)
      Specified by:
      getActorsFromActorIds in interface org.bonitasoft.engine.api.ProcessManagementAPI
    • evaluateExpressionOnProcessDefinition

      public Serializable evaluateExpressionOnProcessDefinition(org.bonitasoft.engine.expression.Expression expression, Map<String,Serializable> context, long processDefinitionId) throws org.bonitasoft.engine.expression.ExpressionEvaluationException
      Specified by:
      evaluateExpressionOnProcessDefinition in interface org.bonitasoft.engine.api.ProcessRuntimeAPI
      Throws:
      org.bonitasoft.engine.expression.ExpressionEvaluationException
    • updateDueDateOfTask

      public void updateDueDateOfTask(long userTaskId, Date dueDate) throws org.bonitasoft.engine.exception.UpdateException
      Specified by:
      updateDueDateOfTask in interface org.bonitasoft.engine.api.ProcessRuntimeAPI
      Throws:
      org.bonitasoft.engine.exception.UpdateException
    • countComments

      public long countComments(org.bonitasoft.engine.search.SearchOptions searchOptions) throws org.bonitasoft.engine.exception.SearchException
      Specified by:
      countComments in interface org.bonitasoft.engine.api.ProcessRuntimeAPI
      Throws:
      org.bonitasoft.engine.exception.SearchException
    • countAttachments

      public long countAttachments(org.bonitasoft.engine.search.SearchOptions searchOptions) throws org.bonitasoft.engine.exception.SearchException
      Specified by:
      countAttachments in interface org.bonitasoft.engine.api.ProcessRuntimeAPI
      Throws:
      org.bonitasoft.engine.exception.SearchException
    • sendSignal

      public void sendSignal(String signalName) throws org.bonitasoft.engine.bpm.flownode.SendEventException
      Specified by:
      sendSignal in interface org.bonitasoft.engine.api.ProcessRuntimeAPI
      Throws:
      org.bonitasoft.engine.bpm.flownode.SendEventException
    • sendMessage

      public void sendMessage(String messageName, org.bonitasoft.engine.expression.Expression targetProcess, org.bonitasoft.engine.expression.Expression targetFlowNode, Map<org.bonitasoft.engine.expression.Expression,org.bonitasoft.engine.expression.Expression> messageContent) throws org.bonitasoft.engine.bpm.flownode.SendEventException
      Specified by:
      sendMessage in interface org.bonitasoft.engine.api.ProcessRuntimeAPI
      Throws:
      org.bonitasoft.engine.bpm.flownode.SendEventException
    • sendMessage

      public void sendMessage(String messageName, org.bonitasoft.engine.expression.Expression targetProcess, org.bonitasoft.engine.expression.Expression targetFlowNode, Map<org.bonitasoft.engine.expression.Expression,org.bonitasoft.engine.expression.Expression> messageContent, Map<org.bonitasoft.engine.expression.Expression,org.bonitasoft.engine.expression.Expression> correlations) throws org.bonitasoft.engine.bpm.flownode.SendEventException
      Specified by:
      sendMessage in interface org.bonitasoft.engine.api.ProcessRuntimeAPI
      Throws:
      org.bonitasoft.engine.bpm.flownode.SendEventException
    • deleteMessageByCreationDate

      public int deleteMessageByCreationDate(long creationDate, org.bonitasoft.engine.search.SearchOptions searchOptions) throws org.bonitasoft.engine.exception.ExecutionException
      Specified by:
      deleteMessageByCreationDate in interface org.bonitasoft.engine.api.ProcessRuntimeAPI
      Throws:
      org.bonitasoft.engine.exception.ExecutionException
    • getProcessResolutionProblems

      public List<org.bonitasoft.engine.bpm.process.Problem> getProcessResolutionProblems(long processDefinitionId) throws org.bonitasoft.engine.bpm.process.ProcessDefinitionNotFoundException
      Specified by:
      getProcessResolutionProblems in interface org.bonitasoft.engine.api.ProcessManagementAPI
      Throws:
      org.bonitasoft.engine.bpm.process.ProcessDefinitionNotFoundException
    • getProcessDeploymentInfos

      public List<org.bonitasoft.engine.bpm.process.ProcessDeploymentInfo> getProcessDeploymentInfos(int startIndex, int maxResults, org.bonitasoft.engine.bpm.process.ProcessDeploymentInfoCriterion pagingCriterion)
      Specified by:
      getProcessDeploymentInfos in interface org.bonitasoft.engine.api.ProcessManagementAPI
    • getProcessDeploymentInfosWithActorOnlyForGroup

      public List<org.bonitasoft.engine.bpm.process.ProcessDeploymentInfo> getProcessDeploymentInfosWithActorOnlyForGroup(long groupId, int startIndex, int maxResults, org.bonitasoft.engine.bpm.process.ProcessDeploymentInfoCriterion sortingCriterion)
      Specified by:
      getProcessDeploymentInfosWithActorOnlyForGroup in interface org.bonitasoft.engine.api.ProcessManagementAPI
    • getProcessDeploymentInfosWithActorOnlyForGroups

      public List<org.bonitasoft.engine.bpm.process.ProcessDeploymentInfo> getProcessDeploymentInfosWithActorOnlyForGroups(List<Long> groupIds, int startIndex, int maxResults, org.bonitasoft.engine.bpm.process.ProcessDeploymentInfoCriterion sortingCriterion)
      Specified by:
      getProcessDeploymentInfosWithActorOnlyForGroups in interface org.bonitasoft.engine.api.ProcessManagementAPI
    • getProcessDeploymentInfosWithActorOnlyForRole

      public List<org.bonitasoft.engine.bpm.process.ProcessDeploymentInfo> getProcessDeploymentInfosWithActorOnlyForRole(long roleId, int startIndex, int maxResults, org.bonitasoft.engine.bpm.process.ProcessDeploymentInfoCriterion sortingCriterion)
      Specified by:
      getProcessDeploymentInfosWithActorOnlyForRole in interface org.bonitasoft.engine.api.ProcessManagementAPI
    • getProcessDeploymentInfosWithActorOnlyForRoles

      public List<org.bonitasoft.engine.bpm.process.ProcessDeploymentInfo> getProcessDeploymentInfosWithActorOnlyForRoles(List<Long> roleIds, int startIndex, int maxResults, org.bonitasoft.engine.bpm.process.ProcessDeploymentInfoCriterion sortingCriterion)
      Specified by:
      getProcessDeploymentInfosWithActorOnlyForRoles in interface org.bonitasoft.engine.api.ProcessManagementAPI
    • getProcessDeploymentInfosWithActorOnlyForUser

      public List<org.bonitasoft.engine.bpm.process.ProcessDeploymentInfo> getProcessDeploymentInfosWithActorOnlyForUser(long userId, int startIndex, int maxResults, org.bonitasoft.engine.bpm.process.ProcessDeploymentInfoCriterion sortingCriterion)
      Specified by:
      getProcessDeploymentInfosWithActorOnlyForUser in interface org.bonitasoft.engine.api.ProcessManagementAPI
    • getProcessDeploymentInfosWithActorOnlyForUsers

      public List<org.bonitasoft.engine.bpm.process.ProcessDeploymentInfo> getProcessDeploymentInfosWithActorOnlyForUsers(List<Long> userIds, int startIndex, int maxResults, org.bonitasoft.engine.bpm.process.ProcessDeploymentInfoCriterion sortingCriterion)
      Specified by:
      getProcessDeploymentInfosWithActorOnlyForUsers in interface org.bonitasoft.engine.api.ProcessManagementAPI
    • searchConnectorInstances

      public org.bonitasoft.engine.search.SearchResult<org.bonitasoft.engine.bpm.connector.ConnectorInstance> searchConnectorInstances(org.bonitasoft.engine.search.SearchOptions searchOptions) throws org.bonitasoft.engine.exception.RetrieveException
      Specified by:
      searchConnectorInstances in interface org.bonitasoft.engine.api.ProcessRuntimeAPI
      Throws:
      org.bonitasoft.engine.exception.RetrieveException
    • searchArchivedConnectorInstances

      public org.bonitasoft.engine.search.SearchResult<org.bonitasoft.engine.bpm.connector.ArchivedConnectorInstance> searchArchivedConnectorInstances(org.bonitasoft.engine.search.SearchOptions searchOptions) throws org.bonitasoft.engine.exception.RetrieveException
      Specified by:
      searchArchivedConnectorInstances in interface org.bonitasoft.engine.api.ProcessRuntimeAPI
      Throws:
      org.bonitasoft.engine.exception.RetrieveException
    • getHumanTaskInstances

      public List<org.bonitasoft.engine.bpm.flownode.HumanTaskInstance> getHumanTaskInstances(long rootProcessInstanceId, String taskName, int startIndex, int maxResults)
      Specified by:
      getHumanTaskInstances in interface org.bonitasoft.engine.api.ProcessRuntimeAPI
    • getLastStateHumanTaskInstance

      public org.bonitasoft.engine.bpm.flownode.HumanTaskInstance getLastStateHumanTaskInstance(long rootProcessInstanceId, String taskName) throws org.bonitasoft.engine.exception.NotFoundException
      Specified by:
      getLastStateHumanTaskInstance in interface org.bonitasoft.engine.api.ProcessRuntimeAPI
      Throws:
      org.bonitasoft.engine.exception.NotFoundException
    • searchUsersWhoCanStartProcessDefinition

      public org.bonitasoft.engine.search.SearchResult<org.bonitasoft.engine.identity.User> searchUsersWhoCanStartProcessDefinition(long processDefinitionId, org.bonitasoft.engine.search.SearchOptions searchOptions) throws org.bonitasoft.engine.exception.SearchException
      Specified by:
      searchUsersWhoCanStartProcessDefinition in interface org.bonitasoft.engine.api.ProcessManagementAPI
      Throws:
      org.bonitasoft.engine.exception.SearchException
    • evaluateExpressionsAtProcessInstanciation

      public Map<String,Serializable> evaluateExpressionsAtProcessInstanciation(long processInstanceId, Map<org.bonitasoft.engine.expression.Expression,Map<String,Serializable>> expressions) throws org.bonitasoft.engine.expression.ExpressionEvaluationException
      Specified by:
      evaluateExpressionsAtProcessInstanciation in interface org.bonitasoft.engine.api.ProcessRuntimeAPI
      Throws:
      org.bonitasoft.engine.expression.ExpressionEvaluationException
    • evaluateExpressionOnCompletedProcessInstance

      public Map<String,Serializable> evaluateExpressionOnCompletedProcessInstance(long processInstanceId, Map<org.bonitasoft.engine.expression.Expression,Map<String,Serializable>> expressions) throws org.bonitasoft.engine.expression.ExpressionEvaluationException
      Specified by:
      evaluateExpressionOnCompletedProcessInstance in interface org.bonitasoft.engine.api.ProcessRuntimeAPI
      Throws:
      org.bonitasoft.engine.expression.ExpressionEvaluationException
    • evaluateExpressionsOnProcessInstance

      public Map<String,Serializable> evaluateExpressionsOnProcessInstance(long processInstanceId, Map<org.bonitasoft.engine.expression.Expression,Map<String,Serializable>> expressions) throws org.bonitasoft.engine.expression.ExpressionEvaluationException
      Specified by:
      evaluateExpressionsOnProcessInstance in interface org.bonitasoft.engine.api.ProcessRuntimeAPI
      Throws:
      org.bonitasoft.engine.expression.ExpressionEvaluationException
    • evaluateExpressionsOnProcessDefinition

      public Map<String,Serializable> evaluateExpressionsOnProcessDefinition(long processDefinitionId, Map<org.bonitasoft.engine.expression.Expression,Map<String,Serializable>> expressions) throws org.bonitasoft.engine.expression.ExpressionEvaluationException
      Specified by:
      evaluateExpressionsOnProcessDefinition in interface org.bonitasoft.engine.api.ProcessRuntimeAPI
      Throws:
      org.bonitasoft.engine.expression.ExpressionEvaluationException
    • evaluateExpressionsOnActivityInstance

      public Map<String,Serializable> evaluateExpressionsOnActivityInstance(long activityInstanceId, Map<org.bonitasoft.engine.expression.Expression,Map<String,Serializable>> expressions) throws org.bonitasoft.engine.expression.ExpressionEvaluationException
      Specified by:
      evaluateExpressionsOnActivityInstance in interface org.bonitasoft.engine.api.ProcessRuntimeAPI
      Throws:
      org.bonitasoft.engine.expression.ExpressionEvaluationException
    • evaluateExpressionsOnCompletedActivityInstance

      public Map<String,Serializable> evaluateExpressionsOnCompletedActivityInstance(long activityInstanceId, Map<org.bonitasoft.engine.expression.Expression,Map<String,Serializable>> expressions) throws org.bonitasoft.engine.expression.ExpressionEvaluationException
      Specified by:
      evaluateExpressionsOnCompletedActivityInstance in interface org.bonitasoft.engine.api.ProcessRuntimeAPI
      Throws:
      org.bonitasoft.engine.expression.ExpressionEvaluationException
    • createDefinitionLevelExpressionEvaluator

      protected EvaluateExpressionsDefinitionLevel createDefinitionLevelExpressionEvaluator(Map<org.bonitasoft.engine.expression.Expression,Map<String,Serializable>> expressionsAndTheirPartialContext, long processDefinitionId, ExpressionResolverService expressionResolverService, ProcessDefinitionService processDefinitionService)
    • createInstanceLevelExpressionEvaluator

      protected EvaluateExpressionsInstanceLevel createInstanceLevelExpressionEvaluator(Map<org.bonitasoft.engine.expression.Expression,Map<String,Serializable>> expressions, long containerId, String containerType, long processDefinitionId, ExpressionResolverService expressionService)
    • createInstanceAndArchivedLevelExpressionEvaluator

      protected EvaluateExpressionsInstanceLevelAndArchived createInstanceAndArchivedLevelExpressionEvaluator(Map<org.bonitasoft.engine.expression.Expression,Map<String,Serializable>> expressions, long containerId, String containerType, long processDefinitionId, long time, ExpressionResolverService expressionService)
    • getLastArchivedProcessInstance

      protected org.bonitasoft.engine.bpm.process.ArchivedProcessInstance getLastArchivedProcessInstance(long processInstanceId) throws SBonitaException
      Throws:
      SBonitaException
    • getFailedJobs

      public List<org.bonitasoft.engine.job.FailedJob> getFailedJobs(int startIndex, int maxResults)
      Specified by:
      getFailedJobs in interface org.bonitasoft.engine.api.ProcessRuntimeAPI
    • replayFailedJob

      public void replayFailedJob(long jobDescriptorId) throws org.bonitasoft.engine.exception.ExecutionException
      Specified by:
      replayFailedJob in interface org.bonitasoft.engine.api.ProcessRuntimeAPI
      Throws:
      org.bonitasoft.engine.exception.ExecutionException
    • replayFailedJob

      public void replayFailedJob(long jobDescriptorId, Map<String,Serializable> parameters) throws org.bonitasoft.engine.exception.ExecutionException
      Specified by:
      replayFailedJob in interface org.bonitasoft.engine.api.ProcessRuntimeAPI
      Throws:
      org.bonitasoft.engine.exception.ExecutionException
    • buildJobParametersFromMap

      protected List<SJobParameter> buildJobParametersFromMap(Map<String,Serializable> parameters)
    • buildSJobParameter

      protected SJobParameter buildSJobParameter(String parameterKey, Serializable parameterValue)
    • getArchivedProcessDataInstance

      public org.bonitasoft.engine.bpm.data.ArchivedDataInstance getArchivedProcessDataInstance(String dataName, long sourceProcessInstanceId) throws org.bonitasoft.engine.bpm.data.ArchivedDataNotFoundException
      Specified by:
      getArchivedProcessDataInstance in interface org.bonitasoft.engine.api.ProcessRuntimeAPI
      Throws:
      org.bonitasoft.engine.bpm.data.ArchivedDataNotFoundException
    • getArchivedActivityDataInstance

      public org.bonitasoft.engine.bpm.data.ArchivedDataInstance getArchivedActivityDataInstance(String dataName, long sourceActivityInstanceId) throws org.bonitasoft.engine.bpm.data.ArchivedDataNotFoundException
      Specified by:
      getArchivedActivityDataInstance in interface org.bonitasoft.engine.api.ProcessRuntimeAPI
      Throws:
      org.bonitasoft.engine.bpm.data.ArchivedDataNotFoundException
    • getArchivedProcessDataInstances

      public List<org.bonitasoft.engine.bpm.data.ArchivedDataInstance> getArchivedProcessDataInstances(long sourceProcessInstanceId, int startIndex, int maxResults)
      Specified by:
      getArchivedProcessDataInstances in interface org.bonitasoft.engine.api.ProcessRuntimeAPI
    • getArchivedActivityDataInstances

      public List<org.bonitasoft.engine.bpm.data.ArchivedDataInstance> getArchivedActivityDataInstances(long sourceActivityInstanceId, int startIndex, int maxResults)
      Specified by:
      getArchivedActivityDataInstances in interface org.bonitasoft.engine.api.ProcessRuntimeAPI
    • getPossibleUsersOfPendingHumanTask

      public List<org.bonitasoft.engine.identity.User> getPossibleUsersOfPendingHumanTask(long humanTaskInstanceId, int startIndex, int maxResults)
      Specified by:
      getPossibleUsersOfPendingHumanTask in interface org.bonitasoft.engine.api.ProcessRuntimeAPI
    • getPossibleUsersOfHumanTask

      public List<org.bonitasoft.engine.identity.User> getPossibleUsersOfHumanTask(long processDefinitionId, String humanTaskName, int startIndex, int maxResults)
      Specified by:
      getPossibleUsersOfHumanTask in interface org.bonitasoft.engine.api.ProcessManagementAPI
    • getUserIdsForActor

      public List<Long> getUserIdsForActor(long processDefinitionId, String actorName, int startIndex, int maxResults)
      Specified by:
      getUserIdsForActor in interface org.bonitasoft.engine.api.ProcessManagementAPI
    • searchUsersWhoCanExecutePendingHumanTask

      public org.bonitasoft.engine.search.SearchResult<org.bonitasoft.engine.identity.User> searchUsersWhoCanExecutePendingHumanTask(long humanTaskInstanceId, org.bonitasoft.engine.search.SearchOptions searchOptions)
      Specified by:
      searchUsersWhoCanExecutePendingHumanTask in interface org.bonitasoft.engine.api.ProcessRuntimeAPI
    • searchAssignedAndPendingHumanTasksFor

      public org.bonitasoft.engine.search.SearchResult<org.bonitasoft.engine.bpm.flownode.HumanTaskInstance> searchAssignedAndPendingHumanTasksFor(long rootProcessDefinitionId, long userId, org.bonitasoft.engine.search.SearchOptions searchOptions) throws org.bonitasoft.engine.exception.SearchException
      Specified by:
      searchAssignedAndPendingHumanTasksFor in interface org.bonitasoft.engine.api.ProcessRuntimeAPI
      Throws:
      org.bonitasoft.engine.exception.SearchException
    • searchAssignedAndPendingHumanTasks

      public org.bonitasoft.engine.search.SearchResult<org.bonitasoft.engine.bpm.flownode.HumanTaskInstance> searchAssignedAndPendingHumanTasks(long rootProcessDefinitionId, org.bonitasoft.engine.search.SearchOptions searchOptions) throws org.bonitasoft.engine.exception.SearchException
      Specified by:
      searchAssignedAndPendingHumanTasks in interface org.bonitasoft.engine.api.ProcessRuntimeAPI
      Throws:
      org.bonitasoft.engine.exception.SearchException
    • searchAssignedAndPendingHumanTasks

      public org.bonitasoft.engine.search.SearchResult<org.bonitasoft.engine.bpm.flownode.HumanTaskInstance> searchAssignedAndPendingHumanTasks(org.bonitasoft.engine.search.SearchOptions searchOptions) throws org.bonitasoft.engine.exception.SearchException
      Specified by:
      searchAssignedAndPendingHumanTasks in interface org.bonitasoft.engine.api.ProcessRuntimeAPI
      Throws:
      org.bonitasoft.engine.exception.SearchException
    • getUserTaskContract

      public org.bonitasoft.engine.bpm.contract.ContractDefinition getUserTaskContract(long userTaskId) throws org.bonitasoft.engine.bpm.flownode.UserTaskNotFoundException
      Specified by:
      getUserTaskContract in interface org.bonitasoft.engine.api.ProcessRuntimeAPI
      Throws:
      org.bonitasoft.engine.bpm.flownode.UserTaskNotFoundException
    • getProcessContract

      public org.bonitasoft.engine.bpm.contract.ContractDefinition getProcessContract(long processDefinitionId) throws org.bonitasoft.engine.bpm.process.ProcessDefinitionNotFoundException
      Specified by:
      getProcessContract in interface org.bonitasoft.engine.api.ProcessRuntimeAPI
      Throws:
      org.bonitasoft.engine.bpm.process.ProcessDefinitionNotFoundException
    • executeUserTask

      public void executeUserTask(long flownodeInstanceId, Map<String,Serializable> inputs) throws org.bonitasoft.engine.bpm.flownode.FlowNodeExecutionException, org.bonitasoft.engine.bpm.contract.ContractViolationException, org.bonitasoft.engine.bpm.flownode.UserTaskNotFoundException
      Specified by:
      executeUserTask in interface org.bonitasoft.engine.api.ProcessRuntimeAPI
      Throws:
      org.bonitasoft.engine.bpm.flownode.FlowNodeExecutionException
      org.bonitasoft.engine.bpm.contract.ContractViolationException
      org.bonitasoft.engine.bpm.flownode.UserTaskNotFoundException
    • executeUserTask

      public void executeUserTask(long userId, long flownodeInstanceId, Map<String,Serializable> inputs) throws org.bonitasoft.engine.bpm.flownode.FlowNodeExecutionException, org.bonitasoft.engine.bpm.contract.ContractViolationException, org.bonitasoft.engine.bpm.flownode.UserTaskNotFoundException
      Specified by:
      executeUserTask in interface org.bonitasoft.engine.api.ProcessRuntimeAPI
      Throws:
      org.bonitasoft.engine.bpm.flownode.FlowNodeExecutionException
      org.bonitasoft.engine.bpm.contract.ContractViolationException
      org.bonitasoft.engine.bpm.flownode.UserTaskNotFoundException
    • executeFlowNode

      protected void executeFlowNode(long userId, long flowNodeInstanceId, Map<String,Serializable> inputs, boolean shouldBeReadyTask) throws org.bonitasoft.engine.bpm.contract.ContractViolationException, SBonitaException
      Execute a flow node. All methods that executes flow nodes and human tasks uses this one.
      Parameters:
      userId - the id of the user executing the task
      shouldBeReadyTask - if true the method will only accept to execute human task in ready state
      Throws:
      org.bonitasoft.engine.bpm.contract.ContractViolationException
      SBonitaException
    • removeDocument

      public org.bonitasoft.engine.bpm.document.Document removeDocument(long documentId) throws org.bonitasoft.engine.bpm.document.DocumentNotFoundException, org.bonitasoft.engine.exception.DeletionException
      Specified by:
      removeDocument in interface org.bonitasoft.engine.api.DocumentAPI
      Throws:
      org.bonitasoft.engine.bpm.document.DocumentNotFoundException
      org.bonitasoft.engine.exception.DeletionException
    • getDocumentList

      public List<org.bonitasoft.engine.bpm.document.Document> getDocumentList(long processInstanceId, String name, int from, int numberOfResult) throws org.bonitasoft.engine.bpm.document.DocumentNotFoundException
      Specified by:
      getDocumentList in interface org.bonitasoft.engine.api.DocumentAPI
      Throws:
      org.bonitasoft.engine.bpm.document.DocumentNotFoundException
    • setDocumentList

      public void setDocumentList(long processInstanceId, String name, List<org.bonitasoft.engine.bpm.document.DocumentValue> documentsValues) throws org.bonitasoft.engine.bpm.document.DocumentException, org.bonitasoft.engine.bpm.document.DocumentNotFoundException
      Specified by:
      setDocumentList in interface org.bonitasoft.engine.api.DocumentAPI
      Throws:
      org.bonitasoft.engine.bpm.document.DocumentException
      org.bonitasoft.engine.bpm.document.DocumentNotFoundException
    • deleteContentOfArchivedDocument

      public void deleteContentOfArchivedDocument(long archivedDocumentId) throws org.bonitasoft.engine.bpm.document.DocumentException, org.bonitasoft.engine.bpm.document.DocumentNotFoundException
      Specified by:
      deleteContentOfArchivedDocument in interface org.bonitasoft.engine.api.DocumentAPI
      Throws:
      org.bonitasoft.engine.bpm.document.DocumentException
      org.bonitasoft.engine.bpm.document.DocumentNotFoundException
    • getServiceAccessor

      protected ServiceAccessor getServiceAccessor()
    • addDocument

      public org.bonitasoft.engine.bpm.document.Document addDocument(long processInstanceId, String documentName, String description, org.bonitasoft.engine.bpm.document.DocumentValue documentValue) throws org.bonitasoft.engine.bpm.process.ProcessInstanceNotFoundException, org.bonitasoft.engine.bpm.document.DocumentAttachmentException, org.bonitasoft.engine.exception.AlreadyExistsException
      Specified by:
      addDocument in interface org.bonitasoft.engine.api.DocumentAPI
      Throws:
      org.bonitasoft.engine.bpm.process.ProcessInstanceNotFoundException
      org.bonitasoft.engine.bpm.document.DocumentAttachmentException
      org.bonitasoft.engine.exception.AlreadyExistsException
    • updateDocument

      public org.bonitasoft.engine.bpm.document.Document updateDocument(long documentId, org.bonitasoft.engine.bpm.document.DocumentValue documentValue) throws org.bonitasoft.engine.bpm.process.ProcessInstanceNotFoundException, org.bonitasoft.engine.bpm.document.DocumentAttachmentException, org.bonitasoft.engine.exception.AlreadyExistsException
      Specified by:
      updateDocument in interface org.bonitasoft.engine.api.DocumentAPI
      Throws:
      org.bonitasoft.engine.bpm.process.ProcessInstanceNotFoundException
      org.bonitasoft.engine.bpm.document.DocumentAttachmentException
      org.bonitasoft.engine.exception.AlreadyExistsException
    • purgeClassLoader

      public void purgeClassLoader(long processDefinitionId) throws org.bonitasoft.engine.bpm.process.ProcessDefinitionNotFoundException, org.bonitasoft.engine.exception.UpdateException
      Specified by:
      purgeClassLoader in interface org.bonitasoft.engine.api.ProcessManagementAPI
      Throws:
      org.bonitasoft.engine.bpm.process.ProcessDefinitionNotFoundException
      org.bonitasoft.engine.exception.UpdateException
    • getUserTaskContractVariableValue

      public Serializable getUserTaskContractVariableValue(long userTaskInstanceId, String name) throws org.bonitasoft.engine.exception.ContractDataNotFoundException
      Specified by:
      getUserTaskContractVariableValue in interface org.bonitasoft.engine.api.ProcessRuntimeAPI
      Throws:
      org.bonitasoft.engine.exception.ContractDataNotFoundException
    • getProcessInputValueDuringInitialization

      public Serializable getProcessInputValueDuringInitialization(long processInstanceId, String name) throws org.bonitasoft.engine.exception.ContractDataNotFoundException
      Specified by:
      getProcessInputValueDuringInitialization in interface org.bonitasoft.engine.api.ProcessRuntimeAPI
      Throws:
      org.bonitasoft.engine.exception.ContractDataNotFoundException
    • getProcessInputValueAfterInitialization

      public Serializable getProcessInputValueAfterInitialization(long processInstanceId, String name) throws org.bonitasoft.engine.exception.ContractDataNotFoundException
      Specified by:
      getProcessInputValueAfterInitialization in interface org.bonitasoft.engine.api.ProcessRuntimeAPI
      Throws:
      org.bonitasoft.engine.exception.ContractDataNotFoundException
    • getNumberOfParameterInstances

      public int getNumberOfParameterInstances(long processDefinitionId)
      Specified by:
      getNumberOfParameterInstances in interface org.bonitasoft.engine.api.ProcessManagementAPI
    • getParameterInstance

      public org.bonitasoft.engine.bpm.parameter.ParameterInstance getParameterInstance(long processDefinitionId, String parameterName) throws org.bonitasoft.engine.exception.NotFoundException
      Specified by:
      getParameterInstance in interface org.bonitasoft.engine.api.ProcessManagementAPI
      Throws:
      org.bonitasoft.engine.exception.NotFoundException
    • getParameterInstances

      public List<org.bonitasoft.engine.bpm.parameter.ParameterInstance> getParameterInstances(long processDefinitionId, int startIndex, int maxResults, org.bonitasoft.engine.bpm.parameter.ParameterCriterion sort)
      Specified by:
      getParameterInstances in interface org.bonitasoft.engine.api.ProcessManagementAPI
    • getUserTaskExecutionContext

      public Map<String,Serializable> getUserTaskExecutionContext(long userTaskInstanceId) throws org.bonitasoft.engine.bpm.flownode.UserTaskNotFoundException, org.bonitasoft.engine.expression.ExpressionEvaluationException
      Specified by:
      getUserTaskExecutionContext in interface org.bonitasoft.engine.api.ProcessRuntimeAPI
      Throws:
      org.bonitasoft.engine.bpm.flownode.UserTaskNotFoundException
      org.bonitasoft.engine.expression.ExpressionEvaluationException
    • getArchivedUserTaskExecutionContext

      public Map<String,Serializable> getArchivedUserTaskExecutionContext(long archivedUserTaskInstanceId) throws org.bonitasoft.engine.bpm.flownode.UserTaskNotFoundException, org.bonitasoft.engine.expression.ExpressionEvaluationException
      Specified by:
      getArchivedUserTaskExecutionContext in interface org.bonitasoft.engine.api.ProcessRuntimeAPI
      Throws:
      org.bonitasoft.engine.bpm.flownode.UserTaskNotFoundException
      org.bonitasoft.engine.expression.ExpressionEvaluationException
    • getProcessInstanceExecutionContext

      public Map<String,Serializable> getProcessInstanceExecutionContext(long processInstanceId) throws org.bonitasoft.engine.bpm.process.ProcessInstanceNotFoundException, org.bonitasoft.engine.expression.ExpressionEvaluationException
      Specified by:
      getProcessInstanceExecutionContext in interface org.bonitasoft.engine.api.ProcessRuntimeAPI
      Throws:
      org.bonitasoft.engine.bpm.process.ProcessInstanceNotFoundException
      org.bonitasoft.engine.expression.ExpressionEvaluationException
    • getArchivedProcessInstanceExecutionContext

      public Map<String,Serializable> getArchivedProcessInstanceExecutionContext(long archivedProcessInstanceId) throws org.bonitasoft.engine.bpm.process.ProcessInstanceNotFoundException, org.bonitasoft.engine.expression.ExpressionEvaluationException
      Specified by:
      getArchivedProcessInstanceExecutionContext in interface org.bonitasoft.engine.api.ProcessRuntimeAPI
      Throws:
      org.bonitasoft.engine.bpm.process.ProcessInstanceNotFoundException
      org.bonitasoft.engine.expression.ExpressionEvaluationException
    • searchFormMappings

      public org.bonitasoft.engine.search.SearchResult<org.bonitasoft.engine.form.FormMapping> searchFormMappings(org.bonitasoft.engine.search.SearchOptions searchOptions) throws org.bonitasoft.engine.exception.SearchException
      Specified by:
      searchFormMappings in interface org.bonitasoft.engine.api.ProcessManagementAPI
      Throws:
      org.bonitasoft.engine.exception.SearchException
    • getFormMapping

      public org.bonitasoft.engine.form.FormMapping getFormMapping(long formMappingId) throws org.bonitasoft.engine.exception.FormMappingNotFoundException
      Specified by:
      getFormMapping in interface org.bonitasoft.engine.api.ProcessManagementAPI
      Throws:
      org.bonitasoft.engine.exception.FormMappingNotFoundException
    • updateProcessInstance

      public org.bonitasoft.engine.bpm.process.ProcessInstance updateProcessInstance(long processInstanceId, org.bonitasoft.engine.bpm.process.impl.ProcessInstanceUpdater updater) throws org.bonitasoft.engine.bpm.process.ProcessInstanceNotFoundException, org.bonitasoft.engine.exception.UpdateException
      Specified by:
      updateProcessInstance in interface org.bonitasoft.engine.api.ProcessRuntimeAPI
      Throws:
      org.bonitasoft.engine.bpm.process.ProcessInstanceNotFoundException
      org.bonitasoft.engine.exception.UpdateException
    • updateProcessInstanceIndex

      public org.bonitasoft.engine.bpm.process.ProcessInstance updateProcessInstanceIndex(long processInstanceId, org.bonitasoft.engine.bpm.process.Index index, String value) throws org.bonitasoft.engine.bpm.process.ProcessInstanceNotFoundException, org.bonitasoft.engine.exception.UpdateException
      Specified by:
      updateProcessInstanceIndex in interface org.bonitasoft.engine.api.ProcessRuntimeAPI
      Throws:
      org.bonitasoft.engine.bpm.process.ProcessInstanceNotFoundException
      org.bonitasoft.engine.exception.UpdateException