Class 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 java.lang.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
    • Method Summary

      All Methods Instance Methods Concrete Methods Deprecated Methods 
      Modifier and Type Method Description
      void addCategoriesToProcess​(long processDefinitionId, java.util.List<java.lang.Long> categoryIds)  
      org.bonitasoft.engine.bpm.document.Document addDocument​(long processInstanceId, java.lang.String documentName, java.lang.String description, org.bonitasoft.engine.bpm.document.DocumentValue documentValue)  
      org.bonitasoft.engine.bpm.actor.ActorMember addGroupToActor​(long actorId, long groupId)  
      org.bonitasoft.engine.bpm.actor.ActorMember addGroupToActor​(java.lang.String actorName, long groupId, org.bonitasoft.engine.bpm.process.ProcessDefinition processDefinition)  
      org.bonitasoft.engine.bpm.comment.Comment addProcessComment​(long processInstanceId, java.lang.String comment)  
      org.bonitasoft.engine.bpm.comment.Comment addProcessCommentOnBehalfOfUser​(long processInstanceId, java.lang.String comment, long userId)  
      void addProcessDefinitionsToCategory​(long categoryId, java.util.List<java.lang.Long> processDefinitionIds)  
      void addProcessDefinitionToCategory​(long categoryId, long processDefinitionId)  
      org.bonitasoft.engine.bpm.actor.ActorMember addRoleAndGroupToActor​(long actorId, long roleId, long groupId)  
      org.bonitasoft.engine.bpm.actor.ActorMember addRoleAndGroupToActor​(java.lang.String actorName, org.bonitasoft.engine.bpm.process.ProcessDefinition processDefinition, long roleId, long groupId)  
      org.bonitasoft.engine.bpm.actor.ActorMember addRoleToActor​(long actorId, long roleId)  
      org.bonitasoft.engine.bpm.actor.ActorMember addRoleToActor​(java.lang.String actorName, org.bonitasoft.engine.bpm.process.ProcessDefinition processDefinition, long roleId)  
      org.bonitasoft.engine.bpm.actor.ActorMember addUserToActor​(long actorId, long userId)  
      org.bonitasoft.engine.bpm.actor.ActorMember addUserToActor​(java.lang.String actorName, org.bonitasoft.engine.bpm.process.ProcessDefinition processDefinition, long userId)  
      void assignAndExecuteUserTask​(long userId, long userTaskInstanceId, java.util.Map<java.lang.String,​java.io.Serializable> inputs)  
      void assignUserTask​(long userTaskId, long userId)  
      void assignUserTaskIfNotAssigned​(long userTaskId, long userId)  
      org.bonitasoft.engine.bpm.document.Document attachDocument​(long processInstanceId, java.lang.String documentName, java.lang.String fileName, java.lang.String mimeType, byte[] documentContent)  
      org.bonitasoft.engine.bpm.document.Document attachDocument​(long processInstanceId, java.lang.String documentName, java.lang.String fileName, java.lang.String mimeType, java.lang.String url)  
      org.bonitasoft.engine.bpm.document.Document attachNewDocumentVersion​(long processInstanceId, java.lang.String documentName, java.lang.String contentFileName, java.lang.String contentMimeType, byte[] documentContent)  
      org.bonitasoft.engine.bpm.document.Document attachNewDocumentVersion​(long processInstanceId, java.lang.String documentName, java.lang.String fileName, java.lang.String mimeType, java.lang.String url)  
      protected ProcessInstanceInterruptor buildProcessInstanceInterruptor​(TenantServiceAccessor tenantAccessor)  
      protected SJobParameter buildSJobParameter​(java.lang.String parameterKey, java.io.Serializable parameterValue)  
      void cancelProcessInstance​(long processInstanceId)  
      boolean canExecuteTask​(long activityInstanceId, long userId)  
      protected void checkConnectorParameters​(java.util.Map<java.lang.String,​org.bonitasoft.engine.expression.Expression> connectorInputParameters, java.util.Map<java.lang.String,​java.util.Map<java.lang.String,​java.io.Serializable>> inputValues)  
      protected org.bonitasoft.engine.bpm.data.DataInstance convertModeltoDataInstance​(SDataInstance data)
      isolate static call for mocking reasons
      protected java.util.List<org.bonitasoft.engine.bpm.data.DataInstance> convertModelToDataInstances​(java.util.List<SDataInstance> dataInstances)
      isolate static call for mocking reasons
      protected SOperation convertOperation​(org.bonitasoft.engine.operation.Operation operation)  
      protected java.util.List<SOperation> convertOperations​(java.util.List<org.bonitasoft.engine.operation.Operation> operations)  
      long countAttachments​(org.bonitasoft.engine.search.SearchOptions searchOptions)  
      long countComments​(org.bonitasoft.engine.search.SearchOptions searchOptions)  
      org.bonitasoft.engine.bpm.category.Category createCategory​(java.lang.String name, java.lang.String description)  
      protected EvaluateExpressionsDefinitionLevel createDefinitionLevelExpressionEvaluator​(java.util.Map<org.bonitasoft.engine.expression.Expression,​java.util.Map<java.lang.String,​java.io.Serializable>> expressionsAndTheirPartialContext, long processDefinitionId, ExpressionResolverService expressionResolverService, ProcessDefinitionService processDefinitionService)  
      protected EvaluateExpressionsInstanceLevelAndArchived createInstanceAndArchivedLevelExpressionEvaluator​(java.util.Map<org.bonitasoft.engine.expression.Expression,​java.util.Map<java.lang.String,​java.io.Serializable>> expressions, long containerId, java.lang.String containerType, long processDefinitionId, long time, ExpressionResolverService expressionService)  
      protected EvaluateExpressionsInstanceLevel createInstanceLevelExpressionEvaluator​(java.util.Map<org.bonitasoft.engine.expression.Expression,​java.util.Map<java.lang.String,​java.io.Serializable>> expressions, long containerId, java.lang.String containerType, long processDefinitionId, ExpressionResolverService expressionService)  
      org.bonitasoft.engine.bpm.supervisor.ProcessSupervisor createProcessSupervisorForGroup​(long processDefinitionId, long groupId)  
      org.bonitasoft.engine.bpm.supervisor.ProcessSupervisor createProcessSupervisorForMembership​(long processDefinitionId, long groupId, long roleId)  
      org.bonitasoft.engine.bpm.supervisor.ProcessSupervisor createProcessSupervisorForRole​(long processDefinitionId, long roleId)  
      org.bonitasoft.engine.bpm.supervisor.ProcessSupervisor createProcessSupervisorForUser​(long processDefinitionId, long userId)  
      protected SearchFailedProcessInstancesSupervisedBy createSearchFailedProcessInstancesSupervisedBy​(long userId, org.bonitasoft.engine.search.SearchOptions searchOptions, ProcessInstanceService processInstanceService, SearchEntitiesDescriptor searchEntitiesDescriptor, ProcessDefinitionService processDefinitionService)  
      protected java.util.List<org.bonitasoft.engine.operation.Operation> createSetDataOperation​(long processDefinitionId, java.util.Map<java.lang.String,​java.io.Serializable> initialVariables)  
      protected GetSUser createTxUserGetter​(long userId, IdentityService identityService)  
      long deleteArchivedProcessInstances​(long processDefinitionId, int startIndex, int maxResults)  
      long deleteArchivedProcessInstancesInAllStates​(long sourceProcessInstanceId)  
      long deleteArchivedProcessInstancesInAllStates​(java.util.List<java.lang.Long> sourceProcessInstanceIds)  
      void deleteCategory​(long categoryId)  
      void deleteContentOfArchivedDocument​(long archivedDocumentId)  
      int deleteMessageByCreationDate​(long creationDate, org.bonitasoft.engine.search.SearchOptions searchOptions)  
      void deleteProcessDefinition​(long processDefinitionId)  
      void deleteProcessDefinitions​(java.util.List<java.lang.Long> processDefinitionIds)  
      void deleteProcessInstance​(long processInstanceId)  
      long deleteProcessInstances​(long processDefinitionId, int startIndex, int maxResults)  
      void deleteSupervisor​(long supervisorId)  
      void deleteSupervisor​(java.lang.Long processDefinitionId, java.lang.Long userId, java.lang.Long roleId, java.lang.Long groupId)  
      org.bonitasoft.engine.bpm.process.ProcessDefinition deploy​(org.bonitasoft.engine.bpm.bar.BusinessArchive businessArchive)  
      org.bonitasoft.engine.bpm.process.ProcessDefinition deploy​(org.bonitasoft.engine.bpm.process.DesignProcessDefinition designProcessDefinition)  
      org.bonitasoft.engine.bpm.process.ProcessDefinition deployAndEnableProcess​(org.bonitasoft.engine.bpm.bar.BusinessArchive businessArchive)  
      org.bonitasoft.engine.bpm.process.ProcessDefinition deployAndEnableProcess​(org.bonitasoft.engine.bpm.process.DesignProcessDefinition designProcessDefinition)  
      void disableAndDeleteProcessDefinition​(long processDefinitionId)  
      void disableProcess​(long processDefinitionId)  
      void enableProcess​(long processDefinitionId)  
      java.util.Map<java.lang.String,​java.io.Serializable> evaluateExpressionOnCompletedProcessInstance​(long processInstanceId, java.util.Map<org.bonitasoft.engine.expression.Expression,​java.util.Map<java.lang.String,​java.io.Serializable>> expressions)  
      java.io.Serializable evaluateExpressionOnProcessDefinition​(org.bonitasoft.engine.expression.Expression expression, java.util.Map<java.lang.String,​java.io.Serializable> context, long processDefinitionId)  
      java.util.Map<java.lang.String,​java.io.Serializable> evaluateExpressionsAtProcessInstanciation​(long processInstanceId, java.util.Map<org.bonitasoft.engine.expression.Expression,​java.util.Map<java.lang.String,​java.io.Serializable>> expressions)  
      java.util.Map<java.lang.String,​java.io.Serializable> evaluateExpressionsOnActivityInstance​(long activityInstanceId, java.util.Map<org.bonitasoft.engine.expression.Expression,​java.util.Map<java.lang.String,​java.io.Serializable>> expressions)  
      java.util.Map<java.lang.String,​java.io.Serializable> evaluateExpressionsOnCompletedActivityInstance​(long activityInstanceId, java.util.Map<org.bonitasoft.engine.expression.Expression,​java.util.Map<java.lang.String,​java.io.Serializable>> expressions)  
      java.util.Map<java.lang.String,​java.io.Serializable> evaluateExpressionsOnProcessDefinition​(long processDefinitionId, java.util.Map<org.bonitasoft.engine.expression.Expression,​java.util.Map<java.lang.String,​java.io.Serializable>> expressions)  
      java.util.Map<java.lang.String,​java.io.Serializable> evaluateExpressionsOnProcessInstance​(long processInstanceId, java.util.Map<org.bonitasoft.engine.expression.Expression,​java.util.Map<java.lang.String,​java.io.Serializable>> expressions)  
      java.util.Map<java.lang.String,​java.io.Serializable> executeConnectorOnProcessDefinition​(java.lang.String connectorDefinitionId, java.lang.String connectorDefinitionVersion, java.util.Map<java.lang.String,​org.bonitasoft.engine.expression.Expression> connectorInputParameters, java.util.Map<java.lang.String,​java.util.Map<java.lang.String,​java.io.Serializable>> inputValues, long processDefinitionId)  
      java.util.Map<java.lang.String,​java.io.Serializable> executeConnectorOnProcessDefinition​(java.lang.String connectorDefinitionId, java.lang.String connectorDefinitionVersion, java.util.Map<java.lang.String,​org.bonitasoft.engine.expression.Expression> connectorInputParameters, java.util.Map<java.lang.String,​java.util.Map<java.lang.String,​java.io.Serializable>> inputValues, java.util.List<org.bonitasoft.engine.operation.Operation> operations, java.util.Map<java.lang.String,​java.io.Serializable> operationInputValues, long processDefinitionId)  
      void executeFlowNode​(long flownodeInstanceId)  
      void executeFlowNode​(long userId, long flownodeInstanceId)  
      protected void executeFlowNode​(long userId, long flowNodeInstanceId, java.util.Map<java.lang.String,​java.io.Serializable> inputs, boolean shouldBeReadyTask)
      Execute a flow node.
      void executeMessageCouple​(long messageInstanceId, long waitingMessageId)  
      protected java.util.Map<java.lang.String,​java.io.Serializable> executeOperations​(ConnectorResult connectorResult, java.util.List<org.bonitasoft.engine.operation.Operation> operations, java.util.Map<java.lang.String,​java.io.Serializable> operationInputValues, SExpressionContext expressionContext, java.lang.ClassLoader classLoader, TenantServiceAccessor tenantAccessor)  
      void executeUserTask​(long userId, long flownodeInstanceId, java.util.Map<java.lang.String,​java.io.Serializable> inputs)  
      void executeUserTask​(long flownodeInstanceId, java.util.Map<java.lang.String,​java.io.Serializable> inputs)  
      java.lang.String exportActorMapping​(long processDefinitionId)  
      byte[] exportBarProcessContentUnderHome​(long processDefinitionId)  
      java.util.Map<java.lang.String,​java.util.Map<java.lang.String,​java.lang.Long>> getActiveFlownodeStateCountersForProcessDefinition​(long processDefinitionId)  
      java.util.List<org.bonitasoft.engine.bpm.flownode.ActivityInstance> getActivities​(long processInstanceId, int startIndex, int maxResults)  
      java.util.List<org.bonitasoft.engine.bpm.data.DataDefinition> getActivityDataDefinitions​(long processDefinitionId, java.lang.String activityName, int startIndex, int maxResults)  
      org.bonitasoft.engine.bpm.data.DataInstance getActivityDataInstance​(java.lang.String dataName, long activityInstanceId)  
      java.util.List<org.bonitasoft.engine.bpm.data.DataInstance> getActivityDataInstances​(long activityInstanceId, int startIndex, int maxResults)  
      org.bonitasoft.engine.bpm.flownode.ActivityInstance getActivityInstance​(long activityInstanceId)  
      java.lang.String getActivityInstanceState​(long activityInstanceId)  
      java.util.Date getActivityReachedStateDate​(long activityInstanceId, java.lang.String stateName)  
      org.bonitasoft.engine.bpm.data.DataInstance getActivityTransientDataInstance​(java.lang.String dataName, long activityInstanceId)  
      java.util.List<org.bonitasoft.engine.bpm.data.DataInstance> getActivityTransientDataInstances​(long activityInstanceId, int startIndex, int maxResults)  
      org.bonitasoft.engine.bpm.actor.ActorInstance getActor​(long actorId)  
      org.bonitasoft.engine.bpm.actor.ActorInstance getActorInitiator​(long processDefinitionId)  
      java.util.List<org.bonitasoft.engine.bpm.actor.ActorMember> getActorMembers​(long actorId, int startIndex, int maxResults)  
      java.util.List<org.bonitasoft.engine.bpm.actor.ActorInstance> getActors​(long processDefinitionId, int startIndex, int maxResults, org.bonitasoft.engine.bpm.actor.ActorCriterion sort)  
      java.util.Map<java.lang.Long,​org.bonitasoft.engine.bpm.actor.ActorInstance> getActorsFromActorIds​(java.util.List<java.lang.Long> actorIds)  
      org.bonitasoft.engine.bpm.data.ArchivedDataInstance getArchivedActivityDataInstance​(java.lang.String dataName, long sourceActivityInstanceId)  
      java.util.List<org.bonitasoft.engine.bpm.data.ArchivedDataInstance> getArchivedActivityDataInstances​(long sourceActivityInstanceId, int startIndex, int maxResults)  
      org.bonitasoft.engine.bpm.flownode.ArchivedActivityInstance getArchivedActivityInstance​(long sourceActivityInstanceId)  
      java.util.List<org.bonitasoft.engine.bpm.flownode.ArchivedActivityInstance> getArchivedActivityInstances​(long processInstanceId, int startIndex, int maxResults, org.bonitasoft.engine.bpm.flownode.ActivityInstanceCriterion criterion)  
      org.bonitasoft.engine.bpm.comment.ArchivedComment getArchivedComment​(long archivedCommentId)  
      org.bonitasoft.engine.bpm.flownode.ArchivedFlowNodeInstance getArchivedFlowNodeInstance​(long archivedFlowNodeInstanceId)  
      org.bonitasoft.engine.bpm.data.ArchivedDataInstance getArchivedProcessDataInstance​(java.lang.String dataName, long sourceProcessInstanceId)  
      java.util.List<org.bonitasoft.engine.bpm.data.ArchivedDataInstance> getArchivedProcessDataInstances​(long sourceProcessInstanceId, int startIndex, int maxResults)  
      org.bonitasoft.engine.bpm.document.ArchivedDocument getArchivedProcessDocument​(long archivedProcessDocumentId)  
      org.bonitasoft.engine.bpm.process.ArchivedProcessInstance getArchivedProcessInstance​(long id)  
      java.util.Map<java.lang.String,​java.io.Serializable> getArchivedProcessInstanceExecutionContext​(long archivedProcessInstanceId)  
      java.util.List<org.bonitasoft.engine.bpm.process.ArchivedProcessInstance> getArchivedProcessInstances​(int startIndex, int maxResults, org.bonitasoft.engine.bpm.process.ProcessInstanceCriterion criterion)  
      java.util.List<org.bonitasoft.engine.bpm.process.ArchivedProcessInstance> getArchivedProcessInstances​(long processInstanceId, int startIndex, int maxResults)  
      java.util.Map<java.lang.String,​java.io.Serializable> getArchivedUserTaskExecutionContext​(long archivedUserTaskInstanceId)  
      org.bonitasoft.engine.bpm.document.ArchivedDocument getArchivedVersionOfProcessDocument​(long sourceObjectId)  
      java.util.List<org.bonitasoft.engine.bpm.flownode.HumanTaskInstance> getAssignedHumanTaskInstances​(long userId, int startIndex, int maxResults, org.bonitasoft.engine.bpm.flownode.ActivityInstanceCriterion pagingCriterion)  
      java.util.List<org.bonitasoft.engine.bpm.category.Category> getCategories​(int startIndex, int maxResults, org.bonitasoft.engine.bpm.category.CategoryCriterion sortCriterion)  
      java.util.List<org.bonitasoft.engine.bpm.category.Category> getCategoriesOfProcessDefinition​(long processDefinitionId, int startIndex, int maxResults, org.bonitasoft.engine.bpm.category.CategoryCriterion sortingCriterion)  
      java.util.List<org.bonitasoft.engine.bpm.category.Category> getCategoriesUnrelatedToProcessDefinition​(long processDefinitionId, int startIndex, int maxResults, org.bonitasoft.engine.bpm.category.CategoryCriterion sortingCriterion)  
      org.bonitasoft.engine.bpm.category.Category getCategory​(long categoryId)  
      java.util.List<java.lang.Long> getChildrenInstanceIdsOfProcessInstance​(long processInstanceId, int startIndex, int maxResults, org.bonitasoft.engine.bpm.process.ProcessInstanceCriterion criterion)  
      java.util.List<org.bonitasoft.engine.bpm.comment.Comment> getComments​(long processInstanceId)
      Deprecated.
      org.bonitasoft.engine.bpm.connector.ConnectorImplementationDescriptor getConnectorImplementation​(long processDefinitionId, java.lang.String connectorId, java.lang.String connectorVersion)  
      java.util.List<org.bonitasoft.engine.bpm.connector.ConnectorImplementationDescriptor> getConnectorImplementations​(long processDefinitionId, int startIndex, int maxsResults, org.bonitasoft.engine.bpm.connector.ConnectorCriterion sortingCriterion)  
      org.bonitasoft.engine.bpm.process.DesignProcessDefinition getDesignProcessDefinition​(long processDefinitionId)  
      org.bonitasoft.engine.bpm.document.Document getDocument​(long documentId)  
      org.bonitasoft.engine.bpm.document.Document getDocumentAtActivityInstanceCompletion​(long activityInstanceId, java.lang.String documentName)  
      org.bonitasoft.engine.bpm.document.Document getDocumentAtProcessInstantiation​(long processInstanceId, java.lang.String documentName)  
      byte[] getDocumentContent​(java.lang.String documentStorageId)  
      java.util.List<org.bonitasoft.engine.bpm.document.Document> getDocumentList​(long processInstanceId, java.lang.String name, int from, int numberOfResult)  
      java.util.List<org.bonitasoft.engine.bpm.flownode.EventInstance> getEventInstances​(long rootContainerId, int startIndex, int maxResults, org.bonitasoft.engine.bpm.flownode.EventCriterion criterion)  
      byte[] getExternalProcessResource​(long processDefinitionId, java.lang.String fileName)  
      java.util.List<org.bonitasoft.engine.job.FailedJob> getFailedJobs​(int startIndex, int maxResults)  
      org.bonitasoft.engine.bpm.process.ArchivedProcessInstance getFinalArchivedProcessInstance​(long sourceProcessInstanceId)  
      org.bonitasoft.engine.bpm.flownode.FlowNodeInstance getFlowNodeInstance​(long flowNodeInstanceId)  
      java.util.Map<java.lang.String,​java.util.Map<java.lang.String,​java.lang.Long>> getFlownodeStateCounters​(long processInstanceId)  
      org.bonitasoft.engine.form.FormMapping getFormMapping​(long formMappingId)  
      org.bonitasoft.engine.bpm.flownode.HumanTaskInstance getHumanTaskInstance​(long activityInstanceId)  
      java.util.List<org.bonitasoft.engine.bpm.flownode.HumanTaskInstance> getHumanTaskInstances​(long rootProcessInstanceId, java.lang.String taskName, int startIndex, int maxResults)  
      protected java.util.List<SJobParameter> getJobParameters​(java.util.Map<java.lang.String,​java.io.Serializable> parameters)  
      protected org.bonitasoft.engine.bpm.process.ArchivedProcessInstance getLastArchivedProcessInstance​(long processInstanceId)  
      org.bonitasoft.engine.bpm.document.Document getLastDocument​(long processInstanceId, java.lang.String documentName)  
      org.bonitasoft.engine.bpm.flownode.HumanTaskInstance getLastStateHumanTaskInstance​(long rootProcessInstanceId, java.lang.String taskName)  
      java.util.List<org.bonitasoft.engine.bpm.document.Document> getLastVersionOfDocuments​(long processInstanceId, int pageIndex, int numberPerPage, org.bonitasoft.engine.bpm.document.DocumentCriterion pagingCriterion)  
      long getLatestProcessDefinitionId​(java.lang.String processName)  
      int getNumberOfActivityDataDefinitions​(long processDefinitionId, java.lang.String activityName)  
      long getNumberOfActivityDataInstances​(long activityInstanceId)  
      long getNumberOfActorMembers​(long actorId)  
      int getNumberOfActors​(long processDefinitionId)  
      long getNumberOfArchivedProcessInstances()  
      long getNumberOfAssignedHumanTaskInstances​(long userId)  
      long getNumberOfCategories()  
      long getNumberOfCategories​(long processDefinitionId)  
      long getNumberOfConnectorImplementations​(long processDefinitionId)  
      long getNumberOfDocuments​(long processInstanceId)  
      long getNumberOfGroupsOfActor​(long actorId)  
      long getNumberOfMembershipsOfActor​(long actorId)  
      int getNumberOfOpenedActivityInstances​(long processInstanceId)  
      java.util.Map<java.lang.Long,​java.lang.Long> getNumberOfOpenTasks​(java.util.List<java.lang.Long> userIds)  
      java.util.Map<java.lang.Long,​java.lang.Long> getNumberOfOverdueOpenTasks​(java.util.List<java.lang.Long> userIds)  
      int getNumberOfParameterInstances​(long processDefinitionId)  
      long getNumberOfPendingHumanTaskInstances​(long userId)  
      int getNumberOfProcessDataDefinitions​(long processDefinitionId)  
      long getNumberOfProcessDataInstances​(long processInstanceId)  
      long getNumberOfProcessDefinitionsOfCategory​(long categoryId)  
      long getNumberOfProcessDeploymentInfos()  
      long getNumberOfProcessDeploymentInfosUnrelatedToCategory​(long categoryId)  
      long getNumberOfProcessInstances()  
      long getNumberOfRolesOfActor​(long actorId)  
      long getNumberOfUncategorizedProcessDefinitions()  
      long getNumberOfUsersOfActor​(long actorId)  
      long getOneAssignedUserTaskInstanceOfProcessDefinition​(long processDefinitionId, long userId)  
      long getOneAssignedUserTaskInstanceOfProcessInstance​(long processInstanceId, long userId)  
      java.util.List<org.bonitasoft.engine.bpm.flownode.ActivityInstance> getOpenActivityInstances​(long processInstanceId, int startIndex, int maxResults, org.bonitasoft.engine.bpm.flownode.ActivityInstanceCriterion criterion)  
      org.bonitasoft.engine.bpm.parameter.ParameterInstance getParameterInstance​(long processDefinitionId, java.lang.String parameterName)  
      java.util.List<org.bonitasoft.engine.bpm.parameter.ParameterInstance> getParameterInstances​(long processDefinitionId, int startIndex, int maxResults, org.bonitasoft.engine.bpm.parameter.ParameterCriterion sort)  
      java.util.List<org.bonitasoft.engine.bpm.flownode.HumanTaskInstance> getPendingHumanTaskInstances​(long userId, int startIndex, int maxResults, org.bonitasoft.engine.bpm.flownode.ActivityInstanceCriterion pagingCriterion)  
      java.util.List<org.bonitasoft.engine.identity.User> getPossibleUsersOfHumanTask​(long processDefinitionId, java.lang.String humanTaskName, int startIndex, int maxResults)  
      java.util.List<org.bonitasoft.engine.identity.User> getPossibleUsersOfPendingHumanTask​(long humanTaskInstanceId, int startIndex, int maxResults)  
      org.bonitasoft.engine.bpm.contract.ContractDefinition getProcessContract​(long processDefinitionId)  
      java.util.List<org.bonitasoft.engine.bpm.data.DataDefinition> getProcessDataDefinitions​(long processDefinitionId, int startIndex, int maxResults)  
      org.bonitasoft.engine.bpm.data.DataInstance getProcessDataInstance​(java.lang.String dataName, long processInstanceId)  
      java.util.List<org.bonitasoft.engine.bpm.data.DataInstance> getProcessDataInstances​(long processInstanceId, int startIndex, int maxResults)  
      org.bonitasoft.engine.bpm.process.ProcessDefinition getProcessDefinition​(long processDefinitionId)  
      long getProcessDefinitionId​(java.lang.String name, java.lang.String version)  
      long getProcessDefinitionIdFromActivityInstanceId​(long activityInstanceId)  
      long getProcessDefinitionIdFromProcessInstanceId​(long processInstanceId)  
      org.bonitasoft.engine.bpm.process.ProcessDeploymentInfo getProcessDeploymentInfo​(long processDefinitionId)  
      java.util.List<org.bonitasoft.engine.bpm.process.ProcessDeploymentInfo> getProcessDeploymentInfos​(int startIndex, int maxResults, org.bonitasoft.engine.bpm.process.ProcessDeploymentInfoCriterion pagingCriterion)  
      java.util.Map<java.lang.Long,​org.bonitasoft.engine.bpm.process.ProcessDeploymentInfo> getProcessDeploymentInfosFromArchivedProcessInstanceIds​(java.util.List<java.lang.Long> archivedProcessInstantsIds)  
      java.util.Map<java.lang.Long,​org.bonitasoft.engine.bpm.process.ProcessDeploymentInfo> getProcessDeploymentInfosFromIds​(java.util.List<java.lang.Long> processDefinitionIds)  
      java.util.Map<java.lang.Long,​org.bonitasoft.engine.bpm.process.ProcessDeploymentInfo> getProcessDeploymentInfosFromProcessInstanceIds​(java.util.List<java.lang.Long> processInstanceIds)  
      java.util.List<org.bonitasoft.engine.bpm.process.ProcessDeploymentInfo> getProcessDeploymentInfosOfCategory​(long categoryId, int startIndex, int maxResults, org.bonitasoft.engine.bpm.process.ProcessDeploymentInfoCriterion sortCriterion)  
      java.util.List<org.bonitasoft.engine.bpm.process.ProcessDeploymentInfo> getProcessDeploymentInfosUnrelatedToCategory​(long categoryId, int startIndex, int maxResults, org.bonitasoft.engine.bpm.process.ProcessDeploymentInfoCriterion sortingCriterion)  
      java.util.List<org.bonitasoft.engine.bpm.process.ProcessDeploymentInfo> getProcessDeploymentInfosWithActorOnlyForGroup​(long groupId, int startIndex, int maxResults, org.bonitasoft.engine.bpm.process.ProcessDeploymentInfoCriterion sortingCriterion)  
      java.util.List<org.bonitasoft.engine.bpm.process.ProcessDeploymentInfo> getProcessDeploymentInfosWithActorOnlyForGroups​(java.util.List<java.lang.Long> groupIds, int startIndex, int maxResults, org.bonitasoft.engine.bpm.process.ProcessDeploymentInfoCriterion sortingCriterion)  
      java.util.List<org.bonitasoft.engine.bpm.process.ProcessDeploymentInfo> getProcessDeploymentInfosWithActorOnlyForRole​(long roleId, int startIndex, int maxResults, org.bonitasoft.engine.bpm.process.ProcessDeploymentInfoCriterion sortingCriterion)  
      java.util.List<org.bonitasoft.engine.bpm.process.ProcessDeploymentInfo> getProcessDeploymentInfosWithActorOnlyForRoles​(java.util.List<java.lang.Long> roleIds, int startIndex, int maxResults, org.bonitasoft.engine.bpm.process.ProcessDeploymentInfoCriterion sortingCriterion)  
      java.util.List<org.bonitasoft.engine.bpm.process.ProcessDeploymentInfo> getProcessDeploymentInfosWithActorOnlyForUser​(long userId, int startIndex, int maxResults, org.bonitasoft.engine.bpm.process.ProcessDeploymentInfoCriterion sortingCriterion)  
      java.util.List<org.bonitasoft.engine.bpm.process.ProcessDeploymentInfo> getProcessDeploymentInfosWithActorOnlyForUsers​(java.util.List<java.lang.Long> userIds, int startIndex, int maxResults, org.bonitasoft.engine.bpm.process.ProcessDeploymentInfoCriterion sortingCriterion)  
      java.io.Serializable getProcessInputValueAfterInitialization​(long processInstanceId, java.lang.String name)  
      java.io.Serializable getProcessInputValueDuringInitialization​(long processInstanceId, java.lang.String name)  
      org.bonitasoft.engine.bpm.process.ProcessInstance getProcessInstance​(long processInstanceId)  
      protected java.lang.ClassLoader getProcessInstanceClassloader​(TenantServiceAccessor tenantAccessor, long processInstanceId)  
      java.util.Map<java.lang.String,​java.io.Serializable> getProcessInstanceExecutionContext​(long processInstanceId)  
      long getProcessInstanceIdFromActivityInstanceId​(long activityInstanceId)  
      java.util.List<org.bonitasoft.engine.bpm.process.ProcessInstance> getProcessInstances​(int startIndex, int maxResults, org.bonitasoft.engine.bpm.process.ProcessInstanceCriterion criterion)  
      java.util.List<org.bonitasoft.engine.bpm.process.Problem> getProcessResolutionProblems​(long processDefinitionId)  
      java.util.Map<java.lang.String,​byte[]> getProcessResources​(long processDefinitionId, java.lang.String filenamesPattern)  
      protected SActivityInstance getSActivityInstance​(long activityInstanceId)  
      protected java.util.Map<java.lang.String,​java.io.Serializable> getSerializableResultOfConnector​(java.lang.String connectorDefinitionVersion, ConnectorResult connectorResult, ConnectorService connectorService)  
      protected SProcessInstance getSProcessInstance​(long processInstanceId)  
      java.util.List<org.bonitasoft.engine.bpm.process.ProcessDeploymentInfo> getStartableProcessDeploymentInfosForActors​(java.util.Set<java.lang.Long> actorIds, int startIndex, int maxResults, org.bonitasoft.engine.bpm.process.ProcessDeploymentInfoCriterion sortingCriterion)  
      java.util.Set<java.lang.String> getSupportedStates​(org.bonitasoft.engine.bpm.flownode.FlowNodeType nodeType)  
      java.util.List<org.bonitasoft.engine.bpm.process.ProcessDeploymentInfo> getUncategorizedProcessDeploymentInfos​(int startIndex, int maxResults, org.bonitasoft.engine.bpm.process.ProcessDeploymentInfoCriterion sortCriterion)  
      java.util.List<java.lang.Long> getUserIdsForActor​(long processDefinitionId, java.lang.String actorName, int startIndex, int maxResults)  
      org.bonitasoft.engine.bpm.contract.ContractDefinition getUserTaskContract​(long userTaskId)  
      java.io.Serializable getUserTaskContractVariableValue​(long userTaskInstanceId, java.lang.String name)  
      java.util.Map<java.lang.String,​java.io.Serializable> getUserTaskExecutionContext​(long userTaskInstanceId)  
      void importActorMapping​(long pDefinitionId, byte[] actorMappingXML)  
      void importActorMapping​(long processDefinitionId, java.lang.String xmlContent)  
      boolean isAllowedToStartProcess​(long processDefinitionId, java.util.Set<java.lang.Long> actorIds)  
      boolean isInvolvedInHumanTaskInstance​(long userId, long humanTaskInstanceId)  
      boolean isInvolvedInProcessInstance​(long userId, long processInstanceId)  
      boolean isManagerOfUserInvolvedInProcessInstance​(long managerUserId, long processInstanceId)  
      boolean isUserProcessSupervisor​(long processDefinitionId, long userId)  
      void purgeClassLoader​(long processDefinitionId)  
      void releaseUserTask​(long userTaskId)  
      void removeActorMember​(long actorMemberId)  
      void removeCategoriesFromProcess​(long processDefinitionId, java.util.List<java.lang.Long> categoryIds)  
      long removeCategoriesFromProcessDefinition​(long processDefinitionId, int startIndex, int maxResults)  
      org.bonitasoft.engine.bpm.document.Document removeDocument​(long documentId)  
      long removeProcessDefinitionsFromCategory​(long categoryId, int startIndex, int maxResults)  
      void replayFailedJob​(long jobDescriptorId)  
      void replayFailedJob​(long jobDescriptorId, java.util.Map<java.lang.String,​java.io.Serializable> parameters)  
      void retryTask​(long activityInstanceId)  
      org.bonitasoft.engine.search.SearchResult<org.bonitasoft.engine.bpm.flownode.ActivityInstance> searchActivities​(org.bonitasoft.engine.search.SearchOptions searchOptions)  
      org.bonitasoft.engine.search.SearchResult<org.bonitasoft.engine.bpm.flownode.ArchivedActivityInstance> searchArchivedActivities​(org.bonitasoft.engine.search.SearchOptions searchOptions)  
      org.bonitasoft.engine.search.SearchResult<org.bonitasoft.engine.bpm.comment.ArchivedComment> searchArchivedComments​(org.bonitasoft.engine.search.SearchOptions searchOptions)  
      org.bonitasoft.engine.search.SearchResult<org.bonitasoft.engine.bpm.connector.ArchivedConnectorInstance> searchArchivedConnectorInstances​(org.bonitasoft.engine.search.SearchOptions searchOptions)  
      org.bonitasoft.engine.search.SearchResult<org.bonitasoft.engine.bpm.document.ArchivedDocument> searchArchivedDocuments​(org.bonitasoft.engine.search.SearchOptions searchOptions)  
      org.bonitasoft.engine.search.SearchResult<org.bonitasoft.engine.bpm.document.ArchivedDocument> searchArchivedDocumentsSupervisedBy​(long userId, org.bonitasoft.engine.search.SearchOptions searchOptions)  
      org.bonitasoft.engine.search.SearchResult<org.bonitasoft.engine.bpm.flownode.ArchivedFlowNodeInstance> searchArchivedFlowNodeInstances​(org.bonitasoft.engine.search.SearchOptions searchOptions)  
      org.bonitasoft.engine.search.SearchResult<org.bonitasoft.engine.bpm.flownode.ArchivedHumanTaskInstance> searchArchivedHumanTasks​(org.bonitasoft.engine.search.SearchOptions searchOptions)  
      org.bonitasoft.engine.search.SearchResult<org.bonitasoft.engine.bpm.flownode.ArchivedHumanTaskInstance> searchArchivedHumanTasksManagedBy​(long managerUserId, org.bonitasoft.engine.search.SearchOptions searchOptions)  
      org.bonitasoft.engine.search.SearchResult<org.bonitasoft.engine.bpm.flownode.ArchivedHumanTaskInstance> searchArchivedHumanTasksSupervisedBy​(long supervisorId, org.bonitasoft.engine.search.SearchOptions searchOptions)  
      org.bonitasoft.engine.search.SearchResult<org.bonitasoft.engine.bpm.process.ArchivedProcessInstance> searchArchivedProcessInstances​(org.bonitasoft.engine.search.SearchOptions searchOptions)  
      org.bonitasoft.engine.search.SearchResult<org.bonitasoft.engine.bpm.process.ArchivedProcessInstance> searchArchivedProcessInstancesInAllStates​(org.bonitasoft.engine.search.SearchOptions searchOptions)  
      org.bonitasoft.engine.search.SearchResult<org.bonitasoft.engine.bpm.process.ArchivedProcessInstance> searchArchivedProcessInstancesInvolvingUser​(long userId, org.bonitasoft.engine.search.SearchOptions searchOptions)  
      org.bonitasoft.engine.search.SearchResult<org.bonitasoft.engine.bpm.process.ArchivedProcessInstance> searchArchivedProcessInstancesSupervisedBy​(long userId, org.bonitasoft.engine.search.SearchOptions searchOptions)  
      org.bonitasoft.engine.search.SearchResult<org.bonitasoft.engine.bpm.flownode.HumanTaskInstance> searchAssignedAndPendingHumanTasks​(long rootProcessDefinitionId, org.bonitasoft.engine.search.SearchOptions searchOptions)  
      org.bonitasoft.engine.search.SearchResult<org.bonitasoft.engine.bpm.flownode.HumanTaskInstance> searchAssignedAndPendingHumanTasks​(org.bonitasoft.engine.search.SearchOptions searchOptions)  
      org.bonitasoft.engine.search.SearchResult<org.bonitasoft.engine.bpm.flownode.HumanTaskInstance> searchAssignedAndPendingHumanTasksFor​(long rootProcessDefinitionId, long userId, org.bonitasoft.engine.search.SearchOptions searchOptions)  
      org.bonitasoft.engine.search.SearchResult<org.bonitasoft.engine.bpm.flownode.HumanTaskInstance> searchAssignedTasksManagedBy​(long managerUserId, org.bonitasoft.engine.search.SearchOptions searchOptions)  
      org.bonitasoft.engine.search.SearchResult<org.bonitasoft.engine.bpm.flownode.HumanTaskInstance> searchAssignedTasksSupervisedBy​(long supervisorId, org.bonitasoft.engine.search.SearchOptions searchOptions)  
      org.bonitasoft.engine.search.SearchResult<org.bonitasoft.engine.bpm.comment.Comment> searchComments​(org.bonitasoft.engine.search.SearchOptions searchOptions)  
      org.bonitasoft.engine.search.SearchResult<org.bonitasoft.engine.bpm.comment.Comment> searchCommentsInvolvingUser​(long userId, org.bonitasoft.engine.search.SearchOptions searchOptions)  
      org.bonitasoft.engine.search.SearchResult<org.bonitasoft.engine.bpm.comment.Comment> searchCommentsManagedBy​(long managerUserId, org.bonitasoft.engine.search.SearchOptions searchOptions)  
      org.bonitasoft.engine.search.SearchResult<org.bonitasoft.engine.bpm.connector.ConnectorInstance> searchConnectorInstances​(org.bonitasoft.engine.search.SearchOptions searchOptions)  
      org.bonitasoft.engine.search.SearchResult<org.bonitasoft.engine.bpm.document.Document> searchDocuments​(org.bonitasoft.engine.search.SearchOptions searchOptions)  
      org.bonitasoft.engine.search.SearchResult<org.bonitasoft.engine.bpm.document.Document> searchDocumentsSupervisedBy​(long userId, org.bonitasoft.engine.search.SearchOptions searchOptions)  
      org.bonitasoft.engine.search.SearchResult<org.bonitasoft.engine.bpm.process.ProcessInstance> searchFailedProcessInstances​(org.bonitasoft.engine.search.SearchOptions searchOptions)  
      org.bonitasoft.engine.search.SearchResult<org.bonitasoft.engine.bpm.process.ProcessInstance> searchFailedProcessInstancesSupervisedBy​(long userId, org.bonitasoft.engine.search.SearchOptions searchOptions)  
      org.bonitasoft.engine.search.SearchResult<org.bonitasoft.engine.bpm.flownode.FlowNodeInstance> searchFlowNodeInstances​(org.bonitasoft.engine.search.SearchOptions searchOptions)  
      org.bonitasoft.engine.search.SearchResult<org.bonitasoft.engine.form.FormMapping> searchFormMappings​(org.bonitasoft.engine.search.SearchOptions searchOptions)  
      org.bonitasoft.engine.search.SearchResult<org.bonitasoft.engine.bpm.flownode.HumanTaskInstance> searchHumanTaskInstances​(org.bonitasoft.engine.search.SearchOptions searchOptions)  
      org.bonitasoft.engine.search.SearchResult<org.bonitasoft.engine.bpm.flownode.HumanTaskInstance> searchMyAvailableHumanTasks​(long userId, org.bonitasoft.engine.search.SearchOptions searchOptions)  
      org.bonitasoft.engine.search.SearchResult<org.bonitasoft.engine.bpm.process.ProcessInstance> searchOpenProcessInstances​(org.bonitasoft.engine.search.SearchOptions searchOptions)  
      org.bonitasoft.engine.search.SearchResult<org.bonitasoft.engine.bpm.process.ProcessInstance> searchOpenProcessInstancesInvolvingUser​(long userId, org.bonitasoft.engine.search.SearchOptions searchOptions)  
      org.bonitasoft.engine.search.SearchResult<org.bonitasoft.engine.bpm.process.ProcessInstance> searchOpenProcessInstancesInvolvingUsersManagedBy​(long managerUserId, org.bonitasoft.engine.search.SearchOptions searchOptions)  
      org.bonitasoft.engine.search.SearchResult<org.bonitasoft.engine.bpm.process.ProcessInstance> searchOpenProcessInstancesSupervisedBy​(long userId, org.bonitasoft.engine.search.SearchOptions searchOptions)  
      org.bonitasoft.engine.search.SearchResult<org.bonitasoft.engine.bpm.flownode.HumanTaskInstance> searchPendingOrAssignedToUserOrAssignedToOthersTasks​(long userId, org.bonitasoft.engine.search.SearchOptions searchOptions)  
      org.bonitasoft.engine.search.SearchResult<org.bonitasoft.engine.bpm.flownode.HumanTaskInstance> searchPendingTasksAssignedToUser​(long userId, org.bonitasoft.engine.search.SearchOptions searchOptions)  
      org.bonitasoft.engine.search.SearchResult<org.bonitasoft.engine.bpm.flownode.HumanTaskInstance> searchPendingTasksForUser​(long userId, org.bonitasoft.engine.search.SearchOptions searchOptions)  
      org.bonitasoft.engine.search.SearchResult<org.bonitasoft.engine.bpm.flownode.HumanTaskInstance> searchPendingTasksManagedBy​(long managerUserId, org.bonitasoft.engine.search.SearchOptions searchOptions)  
      org.bonitasoft.engine.search.SearchResult<org.bonitasoft.engine.bpm.flownode.HumanTaskInstance> searchPendingTasksSupervisedBy​(long userId, org.bonitasoft.engine.search.SearchOptions searchOptions)  
      org.bonitasoft.engine.search.SearchResult<org.bonitasoft.engine.bpm.process.ProcessDeploymentInfo> searchProcessDeploymentInfos​(org.bonitasoft.engine.search.SearchOptions searchOptions)  
      org.bonitasoft.engine.search.SearchResult<org.bonitasoft.engine.bpm.process.ProcessDeploymentInfo> searchProcessDeploymentInfosCanBeStartedBy​(long userId, org.bonitasoft.engine.search.SearchOptions searchOptions)  
      org.bonitasoft.engine.search.SearchResult<org.bonitasoft.engine.bpm.process.ProcessDeploymentInfo> searchProcessDeploymentInfosCanBeStartedByUsersManagedBy​(long managerUserId, org.bonitasoft.engine.search.SearchOptions searchOptions)  
      org.bonitasoft.engine.search.SearchResult<org.bonitasoft.engine.bpm.process.ProcessDeploymentInfo> searchProcessDeploymentInfosStartedBy​(long userId, org.bonitasoft.engine.search.SearchOptions searchOptions)  
      org.bonitasoft.engine.search.SearchResult<org.bonitasoft.engine.bpm.process.ProcessDeploymentInfo> searchProcessDeploymentInfosSupervisedBy​(long userId, org.bonitasoft.engine.search.SearchOptions searchOptions)  
      org.bonitasoft.engine.search.SearchResult<org.bonitasoft.engine.bpm.process.ProcessDeploymentInfo> searchProcessDeploymentInfosWithAssignedOrPendingHumanTasks​(org.bonitasoft.engine.search.SearchOptions searchOptions)  
      org.bonitasoft.engine.search.SearchResult<org.bonitasoft.engine.bpm.process.ProcessDeploymentInfo> searchProcessDeploymentInfosWithAssignedOrPendingHumanTasksFor​(long userId, org.bonitasoft.engine.search.SearchOptions searchOptions)  
      org.bonitasoft.engine.search.SearchResult<org.bonitasoft.engine.bpm.process.ProcessDeploymentInfo> searchProcessDeploymentInfosWithAssignedOrPendingHumanTasksSupervisedBy​(long supervisorId, org.bonitasoft.engine.search.SearchOptions searchOptions)  
      org.bonitasoft.engine.search.SearchResult<org.bonitasoft.engine.bpm.process.ProcessInstance> searchProcessInstances​(org.bonitasoft.engine.search.SearchOptions searchOptions)  
      protected org.bonitasoft.engine.search.SearchResult<org.bonitasoft.engine.bpm.process.ProcessInstance> searchProcessInstances​(TenantServiceAccessor tenantAccessor, org.bonitasoft.engine.search.SearchOptions searchOptions)  
      org.bonitasoft.engine.search.SearchResult<org.bonitasoft.engine.bpm.supervisor.ProcessSupervisor> searchProcessSupervisors​(org.bonitasoft.engine.search.SearchOptions searchOptions)  
      protected java.util.List<SProcessSupervisor> searchSProcessSupervisors​(java.lang.Long processDefinitionId, java.lang.Long userId, java.lang.Long groupId, java.lang.Long roleId)  
      org.bonitasoft.engine.search.SearchResult<org.bonitasoft.engine.bpm.flownode.TimerEventTriggerInstance> searchTimerEventTriggerInstances​(long processInstanceId, org.bonitasoft.engine.search.SearchOptions searchOptions)  
      org.bonitasoft.engine.search.SearchResult<org.bonitasoft.engine.bpm.process.ProcessDeploymentInfo> searchUncategorizedProcessDeploymentInfos​(org.bonitasoft.engine.search.SearchOptions searchOptions)  
      org.bonitasoft.engine.search.SearchResult<org.bonitasoft.engine.bpm.process.ProcessDeploymentInfo> searchUncategorizedProcessDeploymentInfosCanBeStartedBy​(long userId, org.bonitasoft.engine.search.SearchOptions searchOptions)  
      org.bonitasoft.engine.search.SearchResult<org.bonitasoft.engine.bpm.process.ProcessDeploymentInfo> searchUncategorizedProcessDeploymentInfosSupervisedBy​(long userId, org.bonitasoft.engine.search.SearchOptions searchOptions)  
      org.bonitasoft.engine.search.SearchResult<org.bonitasoft.engine.identity.User> searchUsersWhoCanExecutePendingHumanTask​(long humanTaskInstanceId, org.bonitasoft.engine.search.SearchOptions searchOptions)  
      org.bonitasoft.engine.search.SearchResult<org.bonitasoft.engine.identity.User> searchUsersWhoCanStartProcessDefinition​(long processDefinitionId, org.bonitasoft.engine.search.SearchOptions searchOptions)  
      void sendMessage​(java.lang.String messageName, org.bonitasoft.engine.expression.Expression targetProcess, org.bonitasoft.engine.expression.Expression targetFlowNode, java.util.Map<org.bonitasoft.engine.expression.Expression,​org.bonitasoft.engine.expression.Expression> messageContent)  
      void sendMessage​(java.lang.String messageName, org.bonitasoft.engine.expression.Expression targetProcess, org.bonitasoft.engine.expression.Expression targetFlowNode, java.util.Map<org.bonitasoft.engine.expression.Expression,​org.bonitasoft.engine.expression.Expression> messageContent, java.util.Map<org.bonitasoft.engine.expression.Expression,​org.bonitasoft.engine.expression.Expression> correlations)  
      void sendSignal​(java.lang.String signalName)  
      void setActivityStateById​(long activityInstanceId, int stateId)  
      void setActivityStateByName​(long activityInstanceId, java.lang.String state)  
      void setDocumentList​(long processInstanceId, java.lang.String name, java.util.List<org.bonitasoft.engine.bpm.document.DocumentValue> documentsValues)  
      void setProcessInstanceState​(org.bonitasoft.engine.bpm.process.ProcessInstance processInstance, java.lang.String state)  
      void setTaskPriority​(long humanTaskInstanceId, org.bonitasoft.engine.bpm.flownode.TaskPriority priority)  
      org.bonitasoft.engine.bpm.process.ProcessInstance startProcess​(long processDefinitionId)  
      org.bonitasoft.engine.bpm.process.ProcessInstance startProcess​(long userId, long processDefinitionId)  
      org.bonitasoft.engine.bpm.process.ProcessInstance startProcess​(long userId, long processDefinitionId, java.util.List<org.bonitasoft.engine.operation.Operation> operations, java.util.Map<java.lang.String,​java.io.Serializable> context)  
      org.bonitasoft.engine.bpm.process.ProcessInstance startProcess​(long userId, long processDefinitionId, java.util.Map<java.lang.String,​java.io.Serializable> initialVariables)  
      org.bonitasoft.engine.bpm.process.ProcessInstance startProcess​(long processDefinitionId, java.util.List<org.bonitasoft.engine.operation.Operation> operations, java.util.Map<java.lang.String,​java.io.Serializable> context)  
      org.bonitasoft.engine.bpm.process.ProcessInstance startProcess​(long processDefinitionId, java.util.Map<java.lang.String,​java.io.Serializable> initialVariables)  
      org.bonitasoft.engine.bpm.process.ProcessInstance startProcessWithInputs​(long userId, long processDefinitionId, java.util.Map<java.lang.String,​java.io.Serializable> instantiationInputs)  
      org.bonitasoft.engine.bpm.process.ProcessInstance startProcessWithInputs​(long processDefinitionId, java.util.Map<java.lang.String,​java.io.Serializable> instantiationInputs)  
      protected org.bonitasoft.engine.bpm.process.ArchivedProcessInstance toArchivedProcessInstance​(SAProcessInstance archivedProcessInstance, SProcessDefinition sProcessDefinition)
      internal use for mocking purpose
      void updateActivityDataInstance​(java.lang.String dataName, long activityInstanceId, java.io.Serializable dataValue)  
      void updateActivityInstanceVariables​(long activityInstanceId, java.util.Map<java.lang.String,​java.io.Serializable> variables)  
      void updateActivityInstanceVariables​(java.util.List<org.bonitasoft.engine.operation.Operation> operations, long activityInstanceId, java.util.Map<java.lang.String,​java.io.Serializable> expressionContexts)  
      void updateActivityTransientDataInstance​(java.lang.String dataName, long activityInstanceId, java.io.Serializable dataValue)  
      org.bonitasoft.engine.bpm.actor.ActorInstance updateActor​(long actorId, org.bonitasoft.engine.bpm.actor.ActorUpdater descriptor)  
      void updateActorsOfUserTask​(long userTaskId)  
      void updateCategory​(long categoryId, org.bonitasoft.engine.bpm.category.CategoryUpdater updater)  
      protected void updateDataInstance​(DataInstanceService dataInstanceService, SDataInstance sDataInstance, java.io.Serializable dataNewValue, java.lang.ClassLoader classLoader)  
      protected void updateDataInstances​(java.util.List<SDataInstance> sDataInstances, java.util.Map<java.lang.String,​java.io.Serializable> dataNameValues, java.lang.ClassLoader classLoader)  
      org.bonitasoft.engine.bpm.document.Document updateDocument​(long documentId, org.bonitasoft.engine.bpm.document.DocumentValue documentValue)  
      void updateDueDateOfTask​(long userTaskId, java.util.Date dueDate)  
      java.util.Date updateExecutionDateOfTimerEventTriggerInstance​(long timerEventTriggerInstanceId, java.util.Date executionDate)  
      void updateProcessDataInstance​(java.lang.String dataName, long processInstanceId, java.io.Serializable dataValue)  
      void updateProcessDataInstances​(long processInstanceId, java.util.Map<java.lang.String,​java.io.Serializable> dataNameValues)  
      void updateProcessDeploymentInfo​(long processDefinitionId, org.bonitasoft.engine.bpm.process.ProcessDeploymentInfoUpdater processDeploymentInfoUpdater)  
      org.bonitasoft.engine.bpm.process.ProcessInstance updateProcessInstance​(long processInstanceId, org.bonitasoft.engine.bpm.process.impl.ProcessInstanceUpdater updater)  
      org.bonitasoft.engine.bpm.process.ProcessInstance updateProcessInstanceIndex​(long processInstanceId, org.bonitasoft.engine.bpm.process.Index index, java.lang.String value)  
      protected void updateTransientData​(java.lang.String dataName, long activityInstanceId, java.io.Serializable dataValue, TransientDataService transientDataInstanceService, java.lang.ClassLoader classLoader)  
      protected void verifyTypeOfNewDataValue​(SDataInstance sDataInstance, java.io.Serializable dataValue, java.lang.ClassLoader classLoader)  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Method Detail

      • 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​(java.util.List<java.lang.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 java.util.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
      • getArchivedProcessInstances

        public java.util.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 java.util.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 java.util.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

        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
        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​(java.lang.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​(java.lang.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​(java.lang.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​(java.lang.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
      • 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 java.util.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 java.util.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 java.util.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​(TenantServiceAccessor tenantAccessor,
                                                                                                                                      org.bonitasoft.engine.search.SearchOptions searchOptions)
                                                                                                                               throws SBonitaException
        Throws:
        SBonitaException
      • getArchivedProcessInstances

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

        public long getNumberOfArchivedProcessInstances()
        Specified by:
        getNumberOfArchivedProcessInstances 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 java.util.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 java.util.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​(java.lang.String name,
                                                                          java.lang.String description)
                                                                   throws org.bonitasoft.engine.exception.AlreadyExistsException,
                                                                          org.bonitasoft.engine.exception.CreationException
        Specified by:
        createCategory in interface org.bonitasoft.engine.api.ProcessManagementAPI
        Throws:
        org.bonitasoft.engine.exception.AlreadyExistsException
        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 java.util.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,
                                           java.util.List<java.lang.Long> categoryIds)
                                    throws org.bonitasoft.engine.exception.AlreadyExistsException,
                                           org.bonitasoft.engine.exception.CreationException
        Specified by:
        addCategoriesToProcess in interface org.bonitasoft.engine.api.ProcessManagementAPI
        Throws:
        org.bonitasoft.engine.exception.AlreadyExistsException
        org.bonitasoft.engine.exception.CreationException
      • removeCategoriesFromProcess

        public void removeCategoriesFromProcess​(long processDefinitionId,
                                                java.util.List<java.lang.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.AlreadyExistsException,
                                                   org.bonitasoft.engine.exception.CreationException
        Specified by:
        addProcessDefinitionToCategory in interface org.bonitasoft.engine.api.ProcessManagementAPI
        Throws:
        org.bonitasoft.engine.exception.AlreadyExistsException
        org.bonitasoft.engine.exception.CreationException
      • addProcessDefinitionsToCategory

        public void addProcessDefinitionsToCategory​(long categoryId,
                                                    java.util.List<java.lang.Long> processDefinitionIds)
                                             throws org.bonitasoft.engine.exception.AlreadyExistsException,
                                                    org.bonitasoft.engine.exception.CreationException
        Specified by:
        addProcessDefinitionsToCategory in interface org.bonitasoft.engine.api.ProcessManagementAPI
        Throws:
        org.bonitasoft.engine.exception.AlreadyExistsException
        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 java.util.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 java.util.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 java.util.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 java.util.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 java.util.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 java.util.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,
                                             java.util.Map<java.lang.String,​java.io.Serializable> inputs)
                                      throws org.bonitasoft.engine.exception.UpdateException,
                                             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.exception.UpdateException
        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 java.util.List<org.bonitasoft.engine.bpm.data.DataDefinition> getActivityDataDefinitions​(long processDefinitionId,
                                                                                                        java.lang.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 java.util.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 java.util.Map<java.lang.Long,​java.lang.Long> getNumberOfOpenTasks​(java.util.List<java.lang.Long> userIds)
        Specified by:
        getNumberOfOpenTasks in interface org.bonitasoft.engine.api.ProcessRuntimeAPI
      • getProcessResources

        public java.util.Map<java.lang.String,​byte[]> getProcessResources​(long processDefinitionId,
                                                                                java.lang.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,
                                                 java.lang.String fileName)
                                          throws org.bonitasoft.engine.exception.RetrieveException,
                                                 java.io.FileNotFoundException
        Specified by:
        getExternalProcessResource in interface org.bonitasoft.engine.api.ProcessManagementAPI
        Throws:
        org.bonitasoft.engine.exception.RetrieveException
        java.io.FileNotFoundException
      • getLatestProcessDefinitionId

        public long getLatestProcessDefinitionId​(java.lang.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 java.util.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​(java.lang.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​(java.lang.String dataName,
                                              long processInstanceId,
                                              java.io.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,
                                               java.util.Map<java.lang.String,​java.io.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​(java.util.List<SDataInstance> sDataInstances,
                                           java.util.Map<java.lang.String,​java.io.Serializable> dataNameValues,
                                           java.lang.ClassLoader classLoader)
                                    throws java.lang.ClassNotFoundException,
                                           org.bonitasoft.engine.exception.UpdateException,
                                           SDataInstanceException
        Throws:
        java.lang.ClassNotFoundException
        org.bonitasoft.engine.exception.UpdateException
        SDataInstanceException
      • verifyTypeOfNewDataValue

        protected void verifyTypeOfNewDataValue​(SDataInstance sDataInstance,
                                                java.io.Serializable dataValue,
                                                java.lang.ClassLoader classLoader)
                                         throws org.bonitasoft.engine.exception.UpdateException
        Throws:
        org.bonitasoft.engine.exception.UpdateException
      • getActivityDataInstances

        public java.util.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​(java.lang.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​(java.lang.String dataName,
                                               long activityInstanceId,
                                               java.io.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​(java.lang.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 java.util.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 java.util.List<org.bonitasoft.engine.bpm.data.DataInstance> convertModelToDataInstances​(java.util.List<SDataInstance> dataInstances)
        isolate static call for mocking reasons
      • updateActivityTransientDataInstance

        public void updateActivityTransientDataInstance​(java.lang.String dataName,
                                                        long activityInstanceId,
                                                        java.io.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​(java.lang.String dataName,
                                           long activityInstanceId,
                                           java.io.Serializable dataValue,
                                           TransientDataService transientDataInstanceService,
                                           java.lang.ClassLoader classLoader)
                                    throws SDataInstanceException,
                                           org.bonitasoft.engine.exception.UpdateException
        Throws:
        SDataInstanceException
        org.bonitasoft.engine.exception.UpdateException
      • importActorMapping

        public void importActorMapping​(long processDefinitionId,
                                       java.lang.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 java.lang.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,
                                                     org.bonitasoft.engine.identity.UserNotFoundException
        Specified by:
        isInvolvedInHumanTaskInstance in interface org.bonitasoft.engine.api.ProcessRuntimeAPI
        Throws:
        org.bonitasoft.engine.bpm.flownode.ActivityInstanceNotFoundException
        org.bonitasoft.engine.identity.UserNotFoundException
      • isManagerOfUserInvolvedInProcessInstance

        public boolean isManagerOfUserInvolvedInProcessInstance​(long managerUserId,
                                                                long processInstanceId)
                                                         throws org.bonitasoft.engine.bpm.process.ProcessInstanceNotFoundException,
                                                                org.bonitasoft.engine.exception.BonitaException
        Specified by:
        isManagerOfUserInvolvedInProcessInstance in interface org.bonitasoft.engine.api.ProcessRuntimeAPI
        Throws:
        org.bonitasoft.engine.bpm.process.ProcessInstanceNotFoundException
        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 java.util.Date getActivityReachedStateDate​(long activityInstanceId,
                                                          java.lang.String stateName)
        Specified by:
        getActivityReachedStateDate in interface org.bonitasoft.engine.api.ProcessRuntimeAPI
      • getSupportedStates

        public java.util.Set<java.lang.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,
                                                    java.util.Map<java.lang.String,​java.io.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​(java.util.List<org.bonitasoft.engine.operation.Operation> operations,
                                                    long activityInstanceId,
                                                    java.util.Map<java.lang.String,​java.io.Serializable> expressionContexts)
                                             throws org.bonitasoft.engine.exception.UpdateException
        Specified by:
        updateActivityInstanceVariables in interface org.bonitasoft.engine.api.ProcessRuntimeAPI
        Throws:
        org.bonitasoft.engine.exception.UpdateException
      • convertOperation

        protected SOperation convertOperation​(org.bonitasoft.engine.operation.Operation operation)
      • convertOperations

        protected java.util.List<SOperation> convertOperations​(java.util.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 java.lang.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​(java.lang.String name,
                                           java.lang.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

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

        public java.util.List<org.bonitasoft.engine.bpm.process.ProcessDeploymentInfo> getStartableProcessDeploymentInfosForActors​(java.util.Set<java.lang.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,
                                               java.util.Set<java.lang.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,
                                                      java.lang.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,
                                                                              java.util.Map<java.lang.String,​java.io.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,
                                                                                        java.util.Map<java.lang.String,​java.io.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,
                                                                                        java.util.Map<java.lang.String,​java.io.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,
                                                                              java.util.Map<java.lang.String,​java.io.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 java.util.List<org.bonitasoft.engine.operation.Operation> createSetDataOperation​(long processDefinitionId,
                                                                                                   java.util.Map<java.lang.String,​java.io.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,
                                                                              java.util.List<org.bonitasoft.engine.operation.Operation> operations,
                                                                              java.util.Map<java.lang.String,​java.io.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,
                                                                              java.util.List<org.bonitasoft.engine.operation.Operation> operations,
                                                                              java.util.Map<java.lang.String,​java.io.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 java.util.Map<java.lang.String,​java.io.Serializable> executeOperations​(ConnectorResult connectorResult,
                                                                                               java.util.List<org.bonitasoft.engine.operation.Operation> operations,
                                                                                               java.util.Map<java.lang.String,​java.io.Serializable> operationInputValues,
                                                                                               SExpressionContext expressionContext,
                                                                                               java.lang.ClassLoader classLoader,
                                                                                               TenantServiceAccessor tenantAccessor)
                                                                                        throws SBonitaException
        Throws:
        SBonitaException
      • executeConnectorOnProcessDefinition

        public java.util.Map<java.lang.String,​java.io.Serializable> executeConnectorOnProcessDefinition​(java.lang.String connectorDefinitionId,
                                                                                                              java.lang.String connectorDefinitionVersion,
                                                                                                              java.util.Map<java.lang.String,​org.bonitasoft.engine.expression.Expression> connectorInputParameters,
                                                                                                              java.util.Map<java.lang.String,​java.util.Map<java.lang.String,​java.io.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 java.util.Map<java.lang.String,​java.io.Serializable> executeConnectorOnProcessDefinition​(java.lang.String connectorDefinitionId,
                                                                                                              java.lang.String connectorDefinitionVersion,
                                                                                                              java.util.Map<java.lang.String,​org.bonitasoft.engine.expression.Expression> connectorInputParameters,
                                                                                                              java.util.Map<java.lang.String,​java.util.Map<java.lang.String,​java.io.Serializable>> inputValues,
                                                                                                              java.util.List<org.bonitasoft.engine.operation.Operation> operations,
                                                                                                              java.util.Map<java.lang.String,​java.io.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 java.util.Map<java.lang.String,​java.io.Serializable> getSerializableResultOfConnector​(java.lang.String connectorDefinitionVersion,
                                                                                                              ConnectorResult connectorResult,
                                                                                                              ConnectorService connectorService)
                                                                                                       throws org.bonitasoft.engine.exception.NotSerializableException,
                                                                                                              SConnectorException
        Throws:
        org.bonitasoft.engine.exception.NotSerializableException
        SConnectorException
      • checkConnectorParameters

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

        public void setActivityStateByName​(long activityInstanceId,
                                           java.lang.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​(java.util.List<java.lang.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
      • 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 java.util.Map<java.lang.String,​java.util.Map<java.lang.String,​java.lang.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 java.util.Map<java.lang.String,​java.util.Map<java.lang.String,​java.lang.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​(java.lang.Long processDefinitionId,
                                     java.lang.Long userId,
                                     java.lang.Long roleId,
                                     java.lang.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,
                                                                                                     org.bonitasoft.engine.exception.AlreadyExistsException
        Specified by:
        createProcessSupervisorForUser in interface org.bonitasoft.engine.api.ProcessManagementAPI
        Throws:
        org.bonitasoft.engine.exception.CreationException
        org.bonitasoft.engine.exception.AlreadyExistsException
      • createProcessSupervisorForRole

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

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

        public org.bonitasoft.engine.bpm.supervisor.ProcessSupervisor createProcessSupervisorForMembership​(long processDefinitionId,
                                                                                                           long groupId,
                                                                                                           long roleId)
                                                                                                    throws org.bonitasoft.engine.exception.CreationException,
                                                                                                           org.bonitasoft.engine.exception.AlreadyExistsException
        Specified by:
        createProcessSupervisorForMembership in interface org.bonitasoft.engine.api.ProcessManagementAPI
        Throws:
        org.bonitasoft.engine.exception.CreationException
        org.bonitasoft.engine.exception.AlreadyExistsException
      • 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,
                                                                           java.lang.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,
                                                                                         java.lang.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
      • getComments

        @Deprecated
        public java.util.List<org.bonitasoft.engine.bpm.comment.Comment> getComments​(long processInstanceId)
        Deprecated.
        Specified by:
        getComments in interface org.bonitasoft.engine.api.ProcessRuntimeAPI
      • attachDocument

        public org.bonitasoft.engine.bpm.document.Document attachDocument​(long processInstanceId,
                                                                          java.lang.String documentName,
                                                                          java.lang.String fileName,
                                                                          java.lang.String mimeType,
                                                                          java.lang.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,
                                                                          java.lang.String documentName,
                                                                          java.lang.String fileName,
                                                                          java.lang.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,
                                                                                    java.lang.String documentName,
                                                                                    java.lang.String fileName,
                                                                                    java.lang.String mimeType,
                                                                                    java.lang.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,
                                                                                    java.lang.String documentName,
                                                                                    java.lang.String contentFileName,
                                                                                    java.lang.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 java.util.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​(java.lang.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,
                                                                           java.lang.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,
                                                                                             java.lang.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,
                                                                                                   java.lang.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 java.util.Map<java.lang.Long,​java.lang.Long> getNumberOfOverdueOpenTasks​(java.util.List<java.lang.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 java.util.List<java.lang.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 java.util.Map<java.lang.Long,​org.bonitasoft.engine.bpm.process.ProcessDeploymentInfo> getProcessDeploymentInfosFromIds​(java.util.List<java.lang.Long> processDefinitionIds)
        Specified by:
        getProcessDeploymentInfosFromIds in interface org.bonitasoft.engine.api.ProcessManagementAPI
      • getConnectorImplementations

        public java.util.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 java.util.Date updateExecutionDateOfTimerEventTriggerInstance​(long timerEventTriggerInstanceId,
                                                                             java.util.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,
                                                                                                                java.lang.String connectorId,
                                                                                                                java.lang.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,
                                            java.lang.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 java.util.Map<java.lang.Long,​org.bonitasoft.engine.bpm.process.ProcessDeploymentInfo> getProcessDeploymentInfosFromProcessInstanceIds​(java.util.List<java.lang.Long> processInstanceIds)
        Specified by:
        getProcessDeploymentInfosFromProcessInstanceIds in interface org.bonitasoft.engine.api.ProcessManagementAPI
      • getProcessDeploymentInfosFromArchivedProcessInstanceIds

        public java.util.Map<java.lang.Long,​org.bonitasoft.engine.bpm.process.ProcessDeploymentInfo> getProcessDeploymentInfosFromArchivedProcessInstanceIds​(java.util.List<java.lang.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 java.util.Map<java.lang.Long,​org.bonitasoft.engine.bpm.actor.ActorInstance> getActorsFromActorIds​(java.util.List<java.lang.Long> actorIds)
        Specified by:
        getActorsFromActorIds in interface org.bonitasoft.engine.api.ProcessManagementAPI
      • evaluateExpressionOnProcessDefinition

        public java.io.Serializable evaluateExpressionOnProcessDefinition​(org.bonitasoft.engine.expression.Expression expression,
                                                                          java.util.Map<java.lang.String,​java.io.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,
                                        java.util.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​(java.lang.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​(java.lang.String messageName,
                                org.bonitasoft.engine.expression.Expression targetProcess,
                                org.bonitasoft.engine.expression.Expression targetFlowNode,
                                java.util.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​(java.lang.String messageName,
                                org.bonitasoft.engine.expression.Expression targetProcess,
                                org.bonitasoft.engine.expression.Expression targetFlowNode,
                                java.util.Map<org.bonitasoft.engine.expression.Expression,​org.bonitasoft.engine.expression.Expression> messageContent,
                                java.util.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 java.util.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 java.util.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 java.util.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 java.util.List<org.bonitasoft.engine.bpm.process.ProcessDeploymentInfo> getProcessDeploymentInfosWithActorOnlyForGroups​(java.util.List<java.lang.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 java.util.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 java.util.List<org.bonitasoft.engine.bpm.process.ProcessDeploymentInfo> getProcessDeploymentInfosWithActorOnlyForRoles​(java.util.List<java.lang.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 java.util.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 java.util.List<org.bonitasoft.engine.bpm.process.ProcessDeploymentInfo> getProcessDeploymentInfosWithActorOnlyForUsers​(java.util.List<java.lang.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 java.util.List<org.bonitasoft.engine.bpm.flownode.HumanTaskInstance> getHumanTaskInstances​(long rootProcessInstanceId,
                                                                                                          java.lang.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,
                                                                                                  java.lang.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 java.util.Map<java.lang.String,​java.io.Serializable> evaluateExpressionsAtProcessInstanciation​(long processInstanceId,
                                                                                                                    java.util.Map<org.bonitasoft.engine.expression.Expression,​java.util.Map<java.lang.String,​java.io.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 java.util.Map<java.lang.String,​java.io.Serializable> evaluateExpressionOnCompletedProcessInstance​(long processInstanceId,
                                                                                                                       java.util.Map<org.bonitasoft.engine.expression.Expression,​java.util.Map<java.lang.String,​java.io.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 java.util.Map<java.lang.String,​java.io.Serializable> evaluateExpressionsOnProcessInstance​(long processInstanceId,
                                                                                                               java.util.Map<org.bonitasoft.engine.expression.Expression,​java.util.Map<java.lang.String,​java.io.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 java.util.Map<java.lang.String,​java.io.Serializable> evaluateExpressionsOnProcessDefinition​(long processDefinitionId,
                                                                                                                 java.util.Map<org.bonitasoft.engine.expression.Expression,​java.util.Map<java.lang.String,​java.io.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 java.util.Map<java.lang.String,​java.io.Serializable> evaluateExpressionsOnActivityInstance​(long activityInstanceId,
                                                                                                                java.util.Map<org.bonitasoft.engine.expression.Expression,​java.util.Map<java.lang.String,​java.io.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 java.util.Map<java.lang.String,​java.io.Serializable> evaluateExpressionsOnCompletedActivityInstance​(long activityInstanceId,
                                                                                                                         java.util.Map<org.bonitasoft.engine.expression.Expression,​java.util.Map<java.lang.String,​java.io.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​(java.util.Map<org.bonitasoft.engine.expression.Expression,​java.util.Map<java.lang.String,​java.io.Serializable>> expressionsAndTheirPartialContext,
                                                                                              long processDefinitionId,
                                                                                              ExpressionResolverService expressionResolverService,
                                                                                              ProcessDefinitionService processDefinitionService)
      • createInstanceLevelExpressionEvaluator

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

        protected EvaluateExpressionsInstanceLevelAndArchived createInstanceAndArchivedLevelExpressionEvaluator​(java.util.Map<org.bonitasoft.engine.expression.Expression,​java.util.Map<java.lang.String,​java.io.Serializable>> expressions,
                                                                                                                long containerId,
                                                                                                                java.lang.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 java.util.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,
                                    java.util.Map<java.lang.String,​java.io.Serializable> parameters)
                             throws org.bonitasoft.engine.exception.ExecutionException
        Specified by:
        replayFailedJob in interface org.bonitasoft.engine.api.ProcessRuntimeAPI
        Throws:
        org.bonitasoft.engine.exception.ExecutionException
      • getJobParameters

        protected java.util.List<SJobParameter> getJobParameters​(java.util.Map<java.lang.String,​java.io.Serializable> parameters)
      • buildSJobParameter

        protected SJobParameter buildSJobParameter​(java.lang.String parameterKey,
                                                   java.io.Serializable parameterValue)
      • getArchivedProcessDataInstance

        public org.bonitasoft.engine.bpm.data.ArchivedDataInstance getArchivedProcessDataInstance​(java.lang.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​(java.lang.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 java.util.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 java.util.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 java.util.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 java.util.List<org.bonitasoft.engine.identity.User> getPossibleUsersOfHumanTask​(long processDefinitionId,
                                                                                               java.lang.String humanTaskName,
                                                                                               int startIndex,
                                                                                               int maxResults)
        Specified by:
        getPossibleUsersOfHumanTask in interface org.bonitasoft.engine.api.ProcessManagementAPI
      • getUserIdsForActor

        public java.util.List<java.lang.Long> getUserIdsForActor​(long processDefinitionId,
                                                                 java.lang.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,
                                    java.util.Map<java.lang.String,​java.io.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,
                                    java.util.Map<java.lang.String,​java.io.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,
                                       java.util.Map<java.lang.String,​java.io.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
        flowNodeInstanceId -
        inputs -
        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 java.util.List<org.bonitasoft.engine.bpm.document.Document> getDocumentList​(long processInstanceId,
                                                                                           java.lang.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,
                                    java.lang.String name,
                                    java.util.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
      • addDocument

        public org.bonitasoft.engine.bpm.document.Document addDocument​(long processInstanceId,
                                                                       java.lang.String documentName,
                                                                       java.lang.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 java.io.Serializable getUserTaskContractVariableValue​(long userTaskInstanceId,
                                                                     java.lang.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 java.io.Serializable getProcessInputValueDuringInitialization​(long processInstanceId,
                                                                             java.lang.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 java.io.Serializable getProcessInputValueAfterInitialization​(long processInstanceId,
                                                                            java.lang.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,
                                                                                          java.lang.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 java.util.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 java.util.Map<java.lang.String,​java.io.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 java.util.Map<java.lang.String,​java.io.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 java.util.Map<java.lang.String,​java.io.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 java.util.Map<java.lang.String,​java.io.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,
                                                                                            java.lang.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