Package org.bonitasoft.engine.api.impl
Class ProcessAPIImpl
java.lang.Object
org.bonitasoft.engine.api.impl.ProcessAPIImpl
- All Implemented Interfaces:
org.bonitasoft.engine.api.DocumentAPI,org.bonitasoft.engine.api.ProcessAPI,org.bonitasoft.engine.api.ProcessManagementAPI,org.bonitasoft.engine.api.ProcessRuntimeAPI
- Author:
- Baptiste Mesta, Matthieu Chaffotte, Yanyan Liu, Elias Ricken de Medeiros, Zhao Na, Zhang Bole, Emmanuel Duchastenier, Celine Souchet, Arthur Freycon, Haroun EL ALAMI
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionProcessAPIImpl(ProcessManagementAPIImplDelegate processManagementAPIDelegate, org.bonitasoft.engine.api.DocumentAPI documentAPI, ProcessConfigurationAPIImpl processConfigurationAPI, TaskInvolvementDelegate taskInvolvementDelegate, ProcessInvolvementDelegate processInvolvementDelegate) -
Method Summary
Modifier and TypeMethodDescriptionvoidaddCategoriesToProcess(long processDefinitionId, List<Long> categoryIds) org.bonitasoft.engine.bpm.document.DocumentaddDocument(long processInstanceId, String documentName, String description, org.bonitasoft.engine.bpm.document.DocumentValue documentValue) org.bonitasoft.engine.bpm.actor.ActorMemberaddGroupToActor(long actorId, long groupId) org.bonitasoft.engine.bpm.actor.ActorMemberaddGroupToActor(String actorName, long groupId, org.bonitasoft.engine.bpm.process.ProcessDefinition processDefinition) org.bonitasoft.engine.bpm.comment.CommentaddProcessComment(long processInstanceId, String comment) org.bonitasoft.engine.bpm.comment.CommentaddProcessCommentOnBehalfOfUser(long processInstanceId, String comment, long userId) voidaddProcessDefinitionsToCategory(long categoryId, List<Long> processDefinitionIds) voidaddProcessDefinitionToCategory(long categoryId, long processDefinitionId) org.bonitasoft.engine.bpm.actor.ActorMemberaddRoleAndGroupToActor(long actorId, long roleId, long groupId) org.bonitasoft.engine.bpm.actor.ActorMemberaddRoleAndGroupToActor(String actorName, org.bonitasoft.engine.bpm.process.ProcessDefinition processDefinition, long roleId, long groupId) org.bonitasoft.engine.bpm.actor.ActorMemberaddRoleToActor(long actorId, long roleId) org.bonitasoft.engine.bpm.actor.ActorMemberaddRoleToActor(String actorName, org.bonitasoft.engine.bpm.process.ProcessDefinition processDefinition, long roleId) org.bonitasoft.engine.bpm.actor.ActorMemberaddUserToActor(long actorId, long userId) org.bonitasoft.engine.bpm.actor.ActorMemberaddUserToActor(String actorName, org.bonitasoft.engine.bpm.process.ProcessDefinition processDefinition, long userId) voidassignAndExecuteUserTask(long userId, long userTaskInstanceId, Map<String, Serializable> inputs) voidassignUserTask(long userTaskId, long userId) voidassignUserTaskIfNotAssigned(long userTaskId, long userId) org.bonitasoft.engine.bpm.document.DocumentattachDocument(long processInstanceId, String documentName, String fileName, String mimeType, byte[] documentContent) org.bonitasoft.engine.bpm.document.DocumentattachDocument(long processInstanceId, String documentName, String fileName, String mimeType, String url) org.bonitasoft.engine.bpm.document.DocumentattachNewDocumentVersion(long processInstanceId, String documentName, String contentFileName, String contentMimeType, byte[] documentContent) org.bonitasoft.engine.bpm.document.DocumentattachNewDocumentVersion(long processInstanceId, String documentName, String fileName, String mimeType, String url) protected List<SJobParameter>buildJobParametersFromMap(Map<String, Serializable> parameters) protected SJobParameterbuildSJobParameter(String parameterKey, Serializable parameterValue) voidcancelProcessInstance(long processInstanceId) booleancanExecuteTask(long activityInstanceId, long userId) protected voidcheckConnectorParameters(Map<String, org.bonitasoft.engine.expression.Expression> connectorInputParameters, Map<String, Map<String, Serializable>> inputValues) protected org.bonitasoft.engine.bpm.data.DataInstanceisolate static call for mocking reasonsprotected List<org.bonitasoft.engine.bpm.data.DataInstance>convertModelToDataInstances(List<SDataInstance> dataInstances) isolate static call for mocking reasonsprotected List<SOperation>convertOperations(List<org.bonitasoft.engine.operation.Operation> operations) longcountAttachments(org.bonitasoft.engine.search.SearchOptions searchOptions) longcountComments(org.bonitasoft.engine.search.SearchOptions searchOptions) org.bonitasoft.engine.bpm.category.CategorycreateCategory(String name, String description) protected EvaluateExpressionsDefinitionLevelcreateDefinitionLevelExpressionEvaluator(Map<org.bonitasoft.engine.expression.Expression, Map<String, Serializable>> expressionsAndTheirPartialContext, long processDefinitionId, ExpressionResolverService expressionResolverService, ProcessDefinitionService processDefinitionService) createInstanceAndArchivedLevelExpressionEvaluator(Map<org.bonitasoft.engine.expression.Expression, Map<String, Serializable>> expressions, long containerId, String containerType, long processDefinitionId, long time, ExpressionResolverService expressionService) protected EvaluateExpressionsInstanceLevelcreateInstanceLevelExpressionEvaluator(Map<org.bonitasoft.engine.expression.Expression, Map<String, Serializable>> expressions, long containerId, String containerType, long processDefinitionId, ExpressionResolverService expressionService) org.bonitasoft.engine.bpm.supervisor.ProcessSupervisorcreateProcessSupervisorForGroup(long processDefinitionId, long groupId) org.bonitasoft.engine.bpm.supervisor.ProcessSupervisorcreateProcessSupervisorForMembership(long processDefinitionId, long groupId, long roleId) org.bonitasoft.engine.bpm.supervisor.ProcessSupervisorcreateProcessSupervisorForRole(long processDefinitionId, long roleId) org.bonitasoft.engine.bpm.supervisor.ProcessSupervisorcreateProcessSupervisorForUser(long processDefinitionId, long userId) protected SearchFailedProcessInstancesSupervisedBycreateSearchFailedProcessInstancesSupervisedBy(long userId, org.bonitasoft.engine.search.SearchOptions searchOptions, ProcessInstanceService processInstanceService, SearchEntitiesDescriptor searchEntitiesDescriptor, ProcessDefinitionService processDefinitionService) protected List<org.bonitasoft.engine.operation.Operation>createSetDataOperation(long processDefinitionId, Map<String, Serializable> initialVariables) protected GetSUsercreateTxUserGetter(long userId, IdentityService identityService) longdeleteArchivedProcessInstances(long processDefinitionId, int startIndex, int maxResults) longdeleteArchivedProcessInstancesInAllStates(long sourceProcessInstanceId) longdeleteArchivedProcessInstancesInAllStates(List<Long> sourceProcessInstanceIds) voiddeleteCategory(long categoryId) voiddeleteContentOfArchivedDocument(long archivedDocumentId) intdeleteMessageByCreationDate(long creationDate, org.bonitasoft.engine.search.SearchOptions searchOptions) voiddeleteProcessDefinition(long processDefinitionId) voiddeleteProcessDefinitions(List<Long> processDefinitionIds) voiddeleteProcessInstance(long processInstanceId) longdeleteProcessInstances(long processDefinitionId, int startIndex, int maxResults) voiddeleteSupervisor(long supervisorId) voiddeleteSupervisor(Long processDefinitionId, Long userId, Long roleId, Long groupId) org.bonitasoft.engine.bpm.process.ProcessDefinitiondeploy(org.bonitasoft.engine.bpm.bar.BusinessArchive businessArchive) org.bonitasoft.engine.bpm.process.ProcessDefinitiondeploy(org.bonitasoft.engine.bpm.process.DesignProcessDefinition designProcessDefinition) org.bonitasoft.engine.bpm.process.ProcessDefinitiondeployAndEnableProcess(org.bonitasoft.engine.bpm.bar.BusinessArchive businessArchive) org.bonitasoft.engine.bpm.process.ProcessDefinitiondeployAndEnableProcess(org.bonitasoft.engine.bpm.process.DesignProcessDefinition designProcessDefinition) voiddisableAndDeleteProcessDefinition(long processDefinitionId) voiddisableProcess(long processDefinitionId) voidenableProcess(long processDefinitionId) evaluateExpressionOnCompletedProcessInstance(long processInstanceId, Map<org.bonitasoft.engine.expression.Expression, Map<String, Serializable>> expressions) evaluateExpressionOnProcessDefinition(org.bonitasoft.engine.expression.Expression expression, Map<String, Serializable> context, long processDefinitionId) evaluateExpressionsAtProcessInstanciation(long processInstanceId, Map<org.bonitasoft.engine.expression.Expression, Map<String, Serializable>> expressions) evaluateExpressionsOnActivityInstance(long activityInstanceId, Map<org.bonitasoft.engine.expression.Expression, Map<String, Serializable>> expressions) evaluateExpressionsOnCompletedActivityInstance(long activityInstanceId, Map<org.bonitasoft.engine.expression.Expression, Map<String, Serializable>> expressions) evaluateExpressionsOnProcessDefinition(long processDefinitionId, Map<org.bonitasoft.engine.expression.Expression, Map<String, Serializable>> expressions) evaluateExpressionsOnProcessInstance(long processInstanceId, Map<org.bonitasoft.engine.expression.Expression, Map<String, Serializable>> expressions) executeConnectorOnProcessDefinition(String connectorDefinitionId, String connectorDefinitionVersion, Map<String, org.bonitasoft.engine.expression.Expression> connectorInputParameters, Map<String, Map<String, Serializable>> inputValues, long processDefinitionId) executeConnectorOnProcessDefinition(String connectorDefinitionId, String connectorDefinitionVersion, Map<String, org.bonitasoft.engine.expression.Expression> connectorInputParameters, Map<String, Map<String, Serializable>> inputValues, List<org.bonitasoft.engine.operation.Operation> operations, Map<String, Serializable> operationInputValues, long processDefinitionId) voidexecuteFlowNode(long flownodeInstanceId) voidexecuteFlowNode(long userId, long flownodeInstanceId) protected voidexecuteFlowNode(long userId, long flowNodeInstanceId, Map<String, Serializable> inputs, boolean shouldBeReadyTask) Execute a flow node.voidexecuteMessageCouple(long messageInstanceId, long waitingMessageId) protected Map<String,Serializable> executeOperations(ConnectorResult connectorResult, List<org.bonitasoft.engine.operation.Operation> operations, Map<String, Serializable> operationInputValues, SExpressionContext expressionContext, ClassLoader classLoader, ServiceAccessor serviceAccessor) voidexecuteUserTask(long userId, long flownodeInstanceId, Map<String, Serializable> inputs) voidexecuteUserTask(long flownodeInstanceId, Map<String, Serializable> inputs) exportActorMapping(long processDefinitionId) byte[]exportBarProcessContentUnderHome(long processDefinitionId) getActiveFlownodeStateCountersForProcessDefinition(long processDefinitionId) List<org.bonitasoft.engine.bpm.flownode.ActivityInstance>getActivities(long processInstanceId, int startIndex, int maxResults) List<org.bonitasoft.engine.bpm.data.DataDefinition>getActivityDataDefinitions(long processDefinitionId, String activityName, int startIndex, int maxResults) org.bonitasoft.engine.bpm.data.DataInstancegetActivityDataInstance(String dataName, long activityInstanceId) List<org.bonitasoft.engine.bpm.data.DataInstance>getActivityDataInstances(long activityInstanceId, int startIndex, int maxResults) org.bonitasoft.engine.bpm.flownode.ActivityInstancegetActivityInstance(long activityInstanceId) getActivityInstanceState(long activityInstanceId) getActivityReachedStateDate(long activityInstanceId, String stateName) org.bonitasoft.engine.bpm.data.DataInstancegetActivityTransientDataInstance(String dataName, long activityInstanceId) List<org.bonitasoft.engine.bpm.data.DataInstance>getActivityTransientDataInstances(long activityInstanceId, int startIndex, int maxResults) org.bonitasoft.engine.bpm.actor.ActorInstancegetActor(long actorId) org.bonitasoft.engine.bpm.actor.ActorInstancegetActorInitiator(long processDefinitionId) List<org.bonitasoft.engine.bpm.actor.ActorMember>getActorMembers(long actorId, int startIndex, int maxResults) List<org.bonitasoft.engine.bpm.actor.ActorInstance>getActors(long processDefinitionId, int startIndex, int maxResults, org.bonitasoft.engine.bpm.actor.ActorCriterion sort) getActorsFromActorIds(List<Long> actorIds) org.bonitasoft.engine.bpm.data.ArchivedDataInstancegetArchivedActivityDataInstance(String dataName, long sourceActivityInstanceId) List<org.bonitasoft.engine.bpm.data.ArchivedDataInstance>getArchivedActivityDataInstances(long sourceActivityInstanceId, int startIndex, int maxResults) org.bonitasoft.engine.bpm.flownode.ArchivedActivityInstancegetArchivedActivityInstance(long sourceActivityInstanceId) 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.ArchivedCommentgetArchivedComment(long archivedCommentId) org.bonitasoft.engine.bpm.flownode.ArchivedFlowNodeInstancegetArchivedFlowNodeInstance(long archivedFlowNodeInstanceId) org.bonitasoft.engine.bpm.data.ArchivedDataInstancegetArchivedProcessDataInstance(String dataName, long sourceProcessInstanceId) List<org.bonitasoft.engine.bpm.data.ArchivedDataInstance>getArchivedProcessDataInstances(long sourceProcessInstanceId, int startIndex, int maxResults) org.bonitasoft.engine.bpm.document.ArchivedDocumentgetArchivedProcessDocument(long archivedProcessDocumentId) org.bonitasoft.engine.bpm.process.ArchivedProcessInstancegetArchivedProcessInstance(long id) getArchivedProcessInstanceExecutionContext(long archivedProcessInstanceId) List<org.bonitasoft.engine.bpm.process.ArchivedProcessInstance>getArchivedProcessInstances(int startIndex, int maxResults, org.bonitasoft.engine.bpm.process.ProcessInstanceCriterion criterion) Deprecated.List<org.bonitasoft.engine.bpm.process.ArchivedProcessInstance>getArchivedProcessInstances(long processInstanceId, int startIndex, int maxResults) getArchivedUserTaskExecutionContext(long archivedUserTaskInstanceId) org.bonitasoft.engine.bpm.document.ArchivedDocumentgetArchivedVersionOfProcessDocument(long sourceObjectId) List<org.bonitasoft.engine.bpm.flownode.HumanTaskInstance>getAssignedHumanTaskInstances(long userId, int startIndex, int maxResults, org.bonitasoft.engine.bpm.flownode.ActivityInstanceCriterion pagingCriterion) List<org.bonitasoft.engine.bpm.category.Category>getCategories(int startIndex, int maxResults, org.bonitasoft.engine.bpm.category.CategoryCriterion sortCriterion) List<org.bonitasoft.engine.bpm.category.Category>getCategoriesOfProcessDefinition(long processDefinitionId, int startIndex, int maxResults, org.bonitasoft.engine.bpm.category.CategoryCriterion sortingCriterion) 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.CategorygetCategory(long categoryId) getChildrenInstanceIdsOfProcessInstance(long processInstanceId, int startIndex, int maxResults, org.bonitasoft.engine.bpm.process.ProcessInstanceCriterion criterion) List<org.bonitasoft.engine.bpm.process.ArchivedProcessInstance>getCompletedProcessInstances(int startIndex, int maxResults, org.bonitasoft.engine.bpm.process.ProcessInstanceCriterion criterion) org.bonitasoft.engine.bpm.connector.ConnectorImplementationDescriptorgetConnectorImplementation(long processDefinitionId, String connectorId, String connectorVersion) 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.DesignProcessDefinitiongetDesignProcessDefinition(long processDefinitionId) org.bonitasoft.engine.bpm.document.DocumentgetDocument(long documentId) org.bonitasoft.engine.bpm.document.DocumentgetDocumentAtActivityInstanceCompletion(long activityInstanceId, String documentName) org.bonitasoft.engine.bpm.document.DocumentgetDocumentAtProcessInstantiation(long processInstanceId, String documentName) byte[]getDocumentContent(String documentStorageId) List<org.bonitasoft.engine.bpm.document.Document>getDocumentList(long processInstanceId, String name, int from, int numberOfResult) 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, String fileName) List<org.bonitasoft.engine.job.FailedJob>getFailedJobs(int startIndex, int maxResults) org.bonitasoft.engine.bpm.process.ArchivedProcessInstancegetFinalArchivedProcessInstance(long sourceProcessInstanceId) org.bonitasoft.engine.bpm.flownode.FlowNodeInstancegetFlowNodeInstance(long flowNodeInstanceId) getFlownodeStateCounters(long processInstanceId) org.bonitasoft.engine.form.FormMappinggetFormMapping(long formMappingId) org.bonitasoft.engine.bpm.flownode.HumanTaskInstancegetHumanTaskInstance(long activityInstanceId) List<org.bonitasoft.engine.bpm.flownode.HumanTaskInstance>getHumanTaskInstances(long rootProcessInstanceId, String taskName, int startIndex, int maxResults) protected org.bonitasoft.engine.bpm.process.ArchivedProcessInstancegetLastArchivedProcessInstance(long processInstanceId) org.bonitasoft.engine.bpm.document.DocumentgetLastDocument(long processInstanceId, String documentName) org.bonitasoft.engine.bpm.flownode.HumanTaskInstancegetLastStateHumanTaskInstance(long rootProcessInstanceId, String taskName) List<org.bonitasoft.engine.bpm.document.Document>getLastVersionOfDocuments(long processInstanceId, int pageIndex, int numberPerPage, org.bonitasoft.engine.bpm.document.DocumentCriterion pagingCriterion) longgetLatestProcessDefinitionId(String processName) intgetNumberOfActivityDataDefinitions(long processDefinitionId, String activityName) longgetNumberOfActivityDataInstances(long activityInstanceId) longgetNumberOfActorMembers(long actorId) intgetNumberOfActors(long processDefinitionId) longDeprecated.longgetNumberOfAssignedHumanTaskInstances(long userId) longlonggetNumberOfCategories(long processDefinitionId) longlonggetNumberOfConnectorImplementations(long processDefinitionId) longgetNumberOfDocuments(long processInstanceId) longgetNumberOfGroupsOfActor(long actorId) longgetNumberOfMembershipsOfActor(long actorId) intgetNumberOfOpenedActivityInstances(long processInstanceId) getNumberOfOpenTasks(List<Long> userIds) getNumberOfOverdueOpenTasks(List<Long> userIds) intgetNumberOfParameterInstances(long processDefinitionId) longgetNumberOfPendingHumanTaskInstances(long userId) intgetNumberOfProcessDataDefinitions(long processDefinitionId) longgetNumberOfProcessDataInstances(long processInstanceId) longgetNumberOfProcessDefinitionsOfCategory(long categoryId) longlonggetNumberOfProcessDeploymentInfosUnrelatedToCategory(long categoryId) longlonggetNumberOfRolesOfActor(long actorId) longlonggetNumberOfUsersOfActor(long actorId) longgetOneAssignedUserTaskInstanceOfProcessDefinition(long processDefinitionId, long userId) longgetOneAssignedUserTaskInstanceOfProcessInstance(long processInstanceId, long userId) 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.ParameterInstancegetParameterInstance(long processDefinitionId, String parameterName) List<org.bonitasoft.engine.bpm.parameter.ParameterInstance>getParameterInstances(long processDefinitionId, int startIndex, int maxResults, org.bonitasoft.engine.bpm.parameter.ParameterCriterion sort) List<org.bonitasoft.engine.bpm.flownode.HumanTaskInstance>getPendingHumanTaskInstances(long userId, int startIndex, int maxResults, org.bonitasoft.engine.bpm.flownode.ActivityInstanceCriterion pagingCriterion) List<org.bonitasoft.engine.identity.User>getPossibleUsersOfHumanTask(long processDefinitionId, String humanTaskName, int startIndex, int maxResults) List<org.bonitasoft.engine.identity.User>getPossibleUsersOfPendingHumanTask(long humanTaskInstanceId, int startIndex, int maxResults) org.bonitasoft.engine.bpm.contract.ContractDefinitiongetProcessContract(long processDefinitionId) List<org.bonitasoft.engine.bpm.data.DataDefinition>getProcessDataDefinitions(long processDefinitionId, int startIndex, int maxResults) org.bonitasoft.engine.bpm.data.DataInstancegetProcessDataInstance(String dataName, long processInstanceId) List<org.bonitasoft.engine.bpm.data.DataInstance>getProcessDataInstances(long processInstanceId, int startIndex, int maxResults) org.bonitasoft.engine.bpm.process.ProcessDefinitiongetProcessDefinition(long processDefinitionId) longgetProcessDefinitionId(String name, String version) longgetProcessDefinitionIdFromActivityInstanceId(long activityInstanceId) longgetProcessDefinitionIdFromProcessInstanceId(long processInstanceId) org.bonitasoft.engine.bpm.process.ProcessDeploymentInfogetProcessDeploymentInfo(long processDefinitionId) List<org.bonitasoft.engine.bpm.process.ProcessDeploymentInfo>getProcessDeploymentInfos(int startIndex, int maxResults, org.bonitasoft.engine.bpm.process.ProcessDeploymentInfoCriterion pagingCriterion) getProcessDeploymentInfosFromArchivedProcessInstanceIds(List<Long> archivedProcessInstantsIds) getProcessDeploymentInfosFromIds(List<Long> processDefinitionIds) getProcessDeploymentInfosFromProcessInstanceIds(List<Long> processInstanceIds) List<org.bonitasoft.engine.bpm.process.ProcessDeploymentInfo>getProcessDeploymentInfosOfCategory(long categoryId, int startIndex, int maxResults, org.bonitasoft.engine.bpm.process.ProcessDeploymentInfoCriterion sortCriterion) List<org.bonitasoft.engine.bpm.process.ProcessDeploymentInfo>getProcessDeploymentInfosUnrelatedToCategory(long categoryId, int startIndex, int maxResults, org.bonitasoft.engine.bpm.process.ProcessDeploymentInfoCriterion sortingCriterion) List<org.bonitasoft.engine.bpm.process.ProcessDeploymentInfo>getProcessDeploymentInfosWithActorOnlyForGroup(long groupId, int startIndex, int maxResults, org.bonitasoft.engine.bpm.process.ProcessDeploymentInfoCriterion sortingCriterion) List<org.bonitasoft.engine.bpm.process.ProcessDeploymentInfo>getProcessDeploymentInfosWithActorOnlyForGroups(List<Long> groupIds, int startIndex, int maxResults, org.bonitasoft.engine.bpm.process.ProcessDeploymentInfoCriterion sortingCriterion) List<org.bonitasoft.engine.bpm.process.ProcessDeploymentInfo>getProcessDeploymentInfosWithActorOnlyForRole(long roleId, int startIndex, int maxResults, org.bonitasoft.engine.bpm.process.ProcessDeploymentInfoCriterion sortingCriterion) List<org.bonitasoft.engine.bpm.process.ProcessDeploymentInfo>getProcessDeploymentInfosWithActorOnlyForRoles(List<Long> roleIds, int startIndex, int maxResults, org.bonitasoft.engine.bpm.process.ProcessDeploymentInfoCriterion sortingCriterion) List<org.bonitasoft.engine.bpm.process.ProcessDeploymentInfo>getProcessDeploymentInfosWithActorOnlyForUser(long userId, int startIndex, int maxResults, org.bonitasoft.engine.bpm.process.ProcessDeploymentInfoCriterion sortingCriterion) List<org.bonitasoft.engine.bpm.process.ProcessDeploymentInfo>getProcessDeploymentInfosWithActorOnlyForUsers(List<Long> userIds, int startIndex, int maxResults, org.bonitasoft.engine.bpm.process.ProcessDeploymentInfoCriterion sortingCriterion) getProcessInputValueAfterInitialization(long processInstanceId, String name) getProcessInputValueDuringInitialization(long processInstanceId, String name) org.bonitasoft.engine.bpm.process.ProcessInstancegetProcessInstance(long processInstanceId) protected ClassLoadergetProcessInstanceClassloader(ServiceAccessor serviceAccessor, long processInstanceId) getProcessInstanceExecutionContext(long processInstanceId) longgetProcessInstanceIdFromActivityInstanceId(long activityInstanceId) List<org.bonitasoft.engine.bpm.process.ProcessInstance>getProcessInstances(int startIndex, int maxResults, org.bonitasoft.engine.bpm.process.ProcessInstanceCriterion criterion) List<org.bonitasoft.engine.bpm.process.Problem>getProcessResolutionProblems(long processDefinitionId) getProcessResources(long processDefinitionId, String filenamesPattern) protected SActivityInstancegetSActivityInstance(long activityInstanceId) protected Map<String,Serializable> getSerializableResultOfConnector(String connectorDefinitionVersion, ConnectorResult connectorResult, ConnectorService connectorService) protected ServiceAccessorprotected SProcessInstancegetSProcessInstance(long processInstanceId) List<org.bonitasoft.engine.bpm.process.ProcessDeploymentInfo>getStartableProcessDeploymentInfosForActors(Set<Long> actorIds, int startIndex, int maxResults, org.bonitasoft.engine.bpm.process.ProcessDeploymentInfoCriterion sortingCriterion) getSupportedStates(org.bonitasoft.engine.bpm.flownode.FlowNodeType nodeType) List<org.bonitasoft.engine.bpm.process.ProcessDeploymentInfo>getUncategorizedProcessDeploymentInfos(int startIndex, int maxResults, org.bonitasoft.engine.bpm.process.ProcessDeploymentInfoCriterion sortCriterion) getUserIdsForActor(long processDefinitionId, String actorName, int startIndex, int maxResults) org.bonitasoft.engine.bpm.contract.ContractDefinitiongetUserTaskContract(long userTaskId) getUserTaskContractVariableValue(long userTaskInstanceId, String name) getUserTaskExecutionContext(long userTaskInstanceId) voidimportActorMapping(long pDefinitionId, byte[] actorMappingXML) voidimportActorMapping(long processDefinitionId, String xmlContent) booleanisAllowedToStartProcess(long processDefinitionId, Set<Long> actorIds) booleanisInvolvedInHumanTaskInstance(long userId, long humanTaskInstanceId) booleanisInvolvedInProcessInstance(long userId, long processInstanceId) booleanisManagerOfUserInvolvedInProcessInstance(long managerUserId, long processInstanceId) booleanisUserProcessSupervisor(long processDefinitionId, long userId) voidpurgeClassLoader(long processDefinitionId) voidreleaseUserTask(long userTaskId) voidremoveActorMember(long actorMemberId) voidremoveCategoriesFromProcess(long processDefinitionId, List<Long> categoryIds) longremoveCategoriesFromProcessDefinition(long processDefinitionId, int startIndex, int maxResults) org.bonitasoft.engine.bpm.document.DocumentremoveDocument(long documentId) longremoveProcessDefinitionsFromCategory(long categoryId, int startIndex, int maxResults) voidreplayFailedJob(long jobDescriptorId) voidreplayFailedJob(long jobDescriptorId, Map<String, Serializable> parameters) voidretryTask(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(ServiceAccessor serviceAccessor, 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 List<SProcessSupervisor>searchSProcessSupervisors(Long processDefinitionId, Long userId, Long groupId, 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) voidsendMessage(String messageName, org.bonitasoft.engine.expression.Expression targetProcess, org.bonitasoft.engine.expression.Expression targetFlowNode, Map<org.bonitasoft.engine.expression.Expression, org.bonitasoft.engine.expression.Expression> messageContent) voidsendMessage(String messageName, org.bonitasoft.engine.expression.Expression targetProcess, org.bonitasoft.engine.expression.Expression targetFlowNode, Map<org.bonitasoft.engine.expression.Expression, org.bonitasoft.engine.expression.Expression> messageContent, Map<org.bonitasoft.engine.expression.Expression, org.bonitasoft.engine.expression.Expression> correlations) voidsendSignal(String signalName) voidsetActivityStateById(long activityInstanceId, int stateId) voidsetActivityStateByName(long activityInstanceId, String state) voidsetDocumentList(long processInstanceId, String name, List<org.bonitasoft.engine.bpm.document.DocumentValue> documentsValues) voidsetProcessInstanceState(org.bonitasoft.engine.bpm.process.ProcessInstance processInstance, String state) voidsetTaskPriority(long humanTaskInstanceId, org.bonitasoft.engine.bpm.flownode.TaskPriority priority) org.bonitasoft.engine.bpm.process.ProcessInstancestartProcess(long processDefinitionId) org.bonitasoft.engine.bpm.process.ProcessInstancestartProcess(long userId, long processDefinitionId) org.bonitasoft.engine.bpm.process.ProcessInstancestartProcess(long userId, long processDefinitionId, List<org.bonitasoft.engine.operation.Operation> operations, Map<String, Serializable> context) org.bonitasoft.engine.bpm.process.ProcessInstancestartProcess(long userId, long processDefinitionId, Map<String, Serializable> initialVariables) org.bonitasoft.engine.bpm.process.ProcessInstancestartProcess(long processDefinitionId, List<org.bonitasoft.engine.operation.Operation> operations, Map<String, Serializable> context) org.bonitasoft.engine.bpm.process.ProcessInstancestartProcess(long processDefinitionId, Map<String, Serializable> initialVariables) org.bonitasoft.engine.bpm.process.ProcessInstancestartProcessWithInputs(long userId, long processDefinitionId, Map<String, Serializable> instantiationInputs) org.bonitasoft.engine.bpm.process.ProcessInstancestartProcessWithInputs(long processDefinitionId, Map<String, Serializable> instantiationInputs) protected org.bonitasoft.engine.bpm.process.ArchivedProcessInstancetoArchivedProcessInstance(SAProcessInstance archivedProcessInstance, SProcessDefinition sProcessDefinition) internal use for mocking purposevoidupdateActivityDataInstance(String dataName, long activityInstanceId, Serializable dataValue) voidupdateActivityInstanceVariables(long activityInstanceId, Map<String, Serializable> variables) voidupdateActivityInstanceVariables(List<org.bonitasoft.engine.operation.Operation> operations, long activityInstanceId, Map<String, Serializable> expressionContexts) voidupdateActivityTransientDataInstance(String dataName, long activityInstanceId, Serializable dataValue) org.bonitasoft.engine.bpm.actor.ActorInstanceupdateActor(long actorId, org.bonitasoft.engine.bpm.actor.ActorUpdater descriptor) Deprecated.voidupdateActorsOfUserTask(long userTaskId) voidupdateCategory(long categoryId, org.bonitasoft.engine.bpm.category.CategoryUpdater updater) protected voidupdateDataInstance(DataInstanceService dataInstanceService, SDataInstance sDataInstance, Serializable dataNewValue, ClassLoader classLoader) protected voidupdateDataInstances(List<SDataInstance> sDataInstances, Map<String, Serializable> dataNameValues, ClassLoader classLoader) org.bonitasoft.engine.bpm.document.DocumentupdateDocument(long documentId, org.bonitasoft.engine.bpm.document.DocumentValue documentValue) voidupdateDueDateOfTask(long userTaskId, Date dueDate) updateExecutionDateOfTimerEventTriggerInstance(long timerEventTriggerInstanceId, Date executionDate) voidupdateProcessDataInstance(String dataName, long processInstanceId, Serializable dataValue) voidupdateProcessDataInstances(long processInstanceId, Map<String, Serializable> dataNameValues) voidupdateProcessDeploymentInfo(long processDefinitionId, org.bonitasoft.engine.bpm.process.ProcessDeploymentInfoUpdater processDeploymentInfoUpdater) Deprecated.org.bonitasoft.engine.bpm.process.ProcessInstanceupdateProcessInstance(long processInstanceId, org.bonitasoft.engine.bpm.process.impl.ProcessInstanceUpdater updater) org.bonitasoft.engine.bpm.process.ProcessInstanceupdateProcessInstanceIndex(long processInstanceId, org.bonitasoft.engine.bpm.process.Index index, String value) protected voidupdateTransientData(String dataName, long activityInstanceId, Serializable dataValue, TransientDataService transientDataInstanceService, ClassLoader classLoader) protected voidverifyTypeOfNewDataValue(SDataInstance sDataInstance, Serializable dataValue, ClassLoader classLoader)
-
Field Details
-
processConfigurationAPI
-
-
Constructor Details
-
ProcessAPIImpl
public ProcessAPIImpl() -
ProcessAPIImpl
public ProcessAPIImpl(ProcessManagementAPIImplDelegate processManagementAPIDelegate, org.bonitasoft.engine.api.DocumentAPI documentAPI, ProcessConfigurationAPIImpl processConfigurationAPI, TaskInvolvementDelegate taskInvolvementDelegate, ProcessInvolvementDelegate processInvolvementDelegate)
-
-
Method Details
-
searchHumanTaskInstances
public org.bonitasoft.engine.search.SearchResult<org.bonitasoft.engine.bpm.flownode.HumanTaskInstance> searchHumanTaskInstances(org.bonitasoft.engine.search.SearchOptions searchOptions) throws org.bonitasoft.engine.exception.SearchException - Specified by:
searchHumanTaskInstancesin interfaceorg.bonitasoft.engine.api.ProcessRuntimeAPI- Throws:
org.bonitasoft.engine.exception.SearchException
-
deleteProcessDefinition
public void deleteProcessDefinition(long processDefinitionId) throws org.bonitasoft.engine.exception.DeletionException - Specified by:
deleteProcessDefinitionin interfaceorg.bonitasoft.engine.api.ProcessManagementAPI- Throws:
org.bonitasoft.engine.exception.DeletionException
-
deleteProcessDefinitions
public void deleteProcessDefinitions(List<Long> processDefinitionIds) throws org.bonitasoft.engine.exception.DeletionException - Specified by:
deleteProcessDefinitionsin interfaceorg.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:
deployAndEnableProcessin interfaceorg.bonitasoft.engine.api.ProcessManagementAPI- Throws:
org.bonitasoft.engine.bpm.process.ProcessDeployExceptionorg.bonitasoft.engine.bpm.process.ProcessEnablementExceptionorg.bonitasoft.engine.exception.AlreadyExistsExceptionorg.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:
deployAndEnableProcessin interfaceorg.bonitasoft.engine.api.ProcessManagementAPI- Throws:
org.bonitasoft.engine.bpm.process.ProcessDeployExceptionorg.bonitasoft.engine.bpm.process.ProcessEnablementExceptionorg.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:
deployin interfaceorg.bonitasoft.engine.api.ProcessManagementAPI- Throws:
org.bonitasoft.engine.exception.AlreadyExistsExceptionorg.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:
deployin interfaceorg.bonitasoft.engine.api.ProcessManagementAPI- Throws:
org.bonitasoft.engine.bpm.process.ProcessDeployExceptionorg.bonitasoft.engine.exception.AlreadyExistsException
-
importActorMapping
public void importActorMapping(long pDefinitionId, byte[] actorMappingXML) throws org.bonitasoft.engine.bpm.actor.ActorMappingImportException - Specified by:
importActorMappingin interfaceorg.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:
exportBarProcessContentUnderHomein interfaceorg.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:
disableAndDeleteProcessDefinitionin interfaceorg.bonitasoft.engine.api.ProcessManagementAPI- Throws:
org.bonitasoft.engine.bpm.process.ProcessDefinitionNotFoundExceptionorg.bonitasoft.engine.bpm.process.ProcessActivationExceptionorg.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:
disableProcessin interfaceorg.bonitasoft.engine.api.ProcessManagementAPI- Throws:
org.bonitasoft.engine.bpm.process.ProcessDefinitionNotFoundExceptionorg.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:
enableProcessin interfaceorg.bonitasoft.engine.api.ProcessManagementAPI- Throws:
org.bonitasoft.engine.bpm.process.ProcessDefinitionNotFoundExceptionorg.bonitasoft.engine.bpm.process.ProcessEnablementException
-
executeFlowNode
public void executeFlowNode(long flownodeInstanceId) throws org.bonitasoft.engine.bpm.flownode.FlowNodeExecutionException - Specified by:
executeFlowNodein interfaceorg.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:
executeFlowNodein interfaceorg.bonitasoft.engine.api.ProcessRuntimeAPI- Throws:
org.bonitasoft.engine.bpm.flownode.FlowNodeExecutionException
-
getActivities
public List<org.bonitasoft.engine.bpm.flownode.ActivityInstance> getActivities(long processInstanceId, int startIndex, int maxResults) - Specified by:
getActivitiesin interfaceorg.bonitasoft.engine.api.ProcessRuntimeAPI
-
getNumberOfProcessDeploymentInfos
public long getNumberOfProcessDeploymentInfos()- Specified by:
getNumberOfProcessDeploymentInfosin interfaceorg.bonitasoft.engine.api.ProcessManagementAPI
-
getProcessDefinition
public org.bonitasoft.engine.bpm.process.ProcessDefinition getProcessDefinition(long processDefinitionId) throws org.bonitasoft.engine.bpm.process.ProcessDefinitionNotFoundException - Specified by:
getProcessDefinitionin interfaceorg.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:
getDesignProcessDefinitionin interfaceorg.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:
getProcessDeploymentInfoin interfaceorg.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:
getProcessInstancein interfaceorg.bonitasoft.engine.api.ProcessRuntimeAPI- Throws:
org.bonitasoft.engine.bpm.process.ProcessInstanceNotFoundException
-
getSProcessInstance
protected SProcessInstance getSProcessInstance(long processInstanceId) throws SProcessInstanceNotFoundException, SProcessInstanceReadException -
getArchivedProcessInstances
public List<org.bonitasoft.engine.bpm.process.ArchivedProcessInstance> getArchivedProcessInstances(long processInstanceId, int startIndex, int maxResults) - Specified by:
getArchivedProcessInstancesin interfaceorg.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:
getArchivedProcessInstancein interfaceorg.bonitasoft.engine.api.ProcessRuntimeAPI- Throws:
org.bonitasoft.engine.bpm.process.ArchivedProcessInstanceNotFoundExceptionorg.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:
getFinalArchivedProcessInstancein interfaceorg.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:
startProcessin interfaceorg.bonitasoft.engine.api.ProcessRuntimeAPI- Throws:
org.bonitasoft.engine.bpm.process.ProcessActivationExceptionorg.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:
startProcessin interfaceorg.bonitasoft.engine.api.ProcessRuntimeAPI- Throws:
org.bonitasoft.engine.bpm.process.ProcessDefinitionNotFoundExceptionorg.bonitasoft.engine.bpm.process.ProcessExecutionExceptionorg.bonitasoft.engine.bpm.process.ProcessActivationException
-
getNumberOfActors
public int getNumberOfActors(long processDefinitionId) throws org.bonitasoft.engine.bpm.process.ProcessDefinitionNotFoundException - Specified by:
getNumberOfActorsin interfaceorg.bonitasoft.engine.api.ProcessManagementAPI- Throws:
org.bonitasoft.engine.bpm.process.ProcessDefinitionNotFoundException
-
getActors
public List<org.bonitasoft.engine.bpm.actor.ActorInstance> getActors(long processDefinitionId, int startIndex, int maxResults, org.bonitasoft.engine.bpm.actor.ActorCriterion sort) - Specified by:
getActorsin interfaceorg.bonitasoft.engine.api.ProcessManagementAPI
-
getActorMembers
public List<org.bonitasoft.engine.bpm.actor.ActorMember> getActorMembers(long actorId, int startIndex, int maxResults) - Specified by:
getActorMembersin interfaceorg.bonitasoft.engine.api.ProcessManagementAPI
-
getNumberOfActorMembers
public long getNumberOfActorMembers(long actorId) - Specified by:
getNumberOfActorMembersin interfaceorg.bonitasoft.engine.api.ProcessManagementAPI
-
getNumberOfUsersOfActor
public long getNumberOfUsersOfActor(long actorId) - Specified by:
getNumberOfUsersOfActorin interfaceorg.bonitasoft.engine.api.ProcessManagementAPI
-
getNumberOfRolesOfActor
public long getNumberOfRolesOfActor(long actorId) - Specified by:
getNumberOfRolesOfActorin interfaceorg.bonitasoft.engine.api.ProcessManagementAPI
-
getNumberOfGroupsOfActor
public long getNumberOfGroupsOfActor(long actorId) - Specified by:
getNumberOfGroupsOfActorin interfaceorg.bonitasoft.engine.api.ProcessManagementAPI
-
getNumberOfMembershipsOfActor
public long getNumberOfMembershipsOfActor(long actorId) - Specified by:
getNumberOfMembershipsOfActorin interfaceorg.bonitasoft.engine.api.ProcessManagementAPI
-
updateActor
@Deprecated(since="9.0.0") public org.bonitasoft.engine.bpm.actor.ActorInstance updateActor(long actorId, org.bonitasoft.engine.bpm.actor.ActorUpdater descriptor) throws org.bonitasoft.engine.bpm.actor.ActorNotFoundException, org.bonitasoft.engine.exception.UpdateException Deprecated.- Specified by:
updateActorin interfaceorg.bonitasoft.engine.api.ProcessManagementAPI- Throws:
org.bonitasoft.engine.bpm.actor.ActorNotFoundExceptionorg.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:
addUserToActorin interfaceorg.bonitasoft.engine.api.ProcessManagementAPI- Throws:
org.bonitasoft.engine.exception.CreationException
-
addUserToActor
public org.bonitasoft.engine.bpm.actor.ActorMember addUserToActor(String actorName, org.bonitasoft.engine.bpm.process.ProcessDefinition processDefinition, long userId) throws org.bonitasoft.engine.exception.CreationException, org.bonitasoft.engine.bpm.actor.ActorNotFoundException - Specified by:
addUserToActorin interfaceorg.bonitasoft.engine.api.ProcessManagementAPI- Throws:
org.bonitasoft.engine.exception.CreationExceptionorg.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:
addGroupToActorin interfaceorg.bonitasoft.engine.api.ProcessManagementAPI- Throws:
org.bonitasoft.engine.exception.CreationException
-
addGroupToActor
public org.bonitasoft.engine.bpm.actor.ActorMember addGroupToActor(String actorName, long groupId, org.bonitasoft.engine.bpm.process.ProcessDefinition processDefinition) throws org.bonitasoft.engine.exception.CreationException, org.bonitasoft.engine.bpm.actor.ActorNotFoundException - Specified by:
addGroupToActorin interfaceorg.bonitasoft.engine.api.ProcessManagementAPI- Throws:
org.bonitasoft.engine.exception.CreationExceptionorg.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:
addRoleToActorin interfaceorg.bonitasoft.engine.api.ProcessManagementAPI- Throws:
org.bonitasoft.engine.exception.CreationException
-
addRoleToActor
public org.bonitasoft.engine.bpm.actor.ActorMember addRoleToActor(String actorName, org.bonitasoft.engine.bpm.process.ProcessDefinition processDefinition, long roleId) throws org.bonitasoft.engine.bpm.actor.ActorNotFoundException, org.bonitasoft.engine.exception.CreationException - Specified by:
addRoleToActorin interfaceorg.bonitasoft.engine.api.ProcessManagementAPI- Throws:
org.bonitasoft.engine.bpm.actor.ActorNotFoundExceptionorg.bonitasoft.engine.exception.CreationException
-
addRoleAndGroupToActor
public org.bonitasoft.engine.bpm.actor.ActorMember addRoleAndGroupToActor(String actorName, org.bonitasoft.engine.bpm.process.ProcessDefinition processDefinition, long roleId, long groupId) throws org.bonitasoft.engine.bpm.actor.ActorNotFoundException, org.bonitasoft.engine.exception.CreationException - Specified by:
addRoleAndGroupToActorin interfaceorg.bonitasoft.engine.api.ProcessManagementAPI- Throws:
org.bonitasoft.engine.bpm.actor.ActorNotFoundExceptionorg.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:
addRoleAndGroupToActorin interfaceorg.bonitasoft.engine.api.ProcessManagementAPI- Throws:
org.bonitasoft.engine.exception.CreationException
-
removeActorMember
public void removeActorMember(long actorMemberId) throws org.bonitasoft.engine.exception.DeletionException - Specified by:
removeActorMemberin interfaceorg.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:
getActorin interfaceorg.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:
getActivityInstancein interfaceorg.bonitasoft.engine.api.ProcessRuntimeAPI- Throws:
org.bonitasoft.engine.bpm.flownode.ActivityInstanceNotFoundException
-
getSActivityInstance
protected SActivityInstance getSActivityInstance(long activityInstanceId) throws SActivityInstanceNotFoundException, SActivityReadException -
getFlowNodeInstance
public org.bonitasoft.engine.bpm.flownode.FlowNodeInstance getFlowNodeInstance(long flowNodeInstanceId) throws org.bonitasoft.engine.bpm.flownode.FlowNodeInstanceNotFoundException - Specified by:
getFlowNodeInstancein interfaceorg.bonitasoft.engine.api.ProcessRuntimeAPI- Throws:
org.bonitasoft.engine.bpm.flownode.FlowNodeInstanceNotFoundException
-
getAssignedHumanTaskInstances
public List<org.bonitasoft.engine.bpm.flownode.HumanTaskInstance> getAssignedHumanTaskInstances(long userId, int startIndex, int maxResults, org.bonitasoft.engine.bpm.flownode.ActivityInstanceCriterion pagingCriterion) - Specified by:
getAssignedHumanTaskInstancesin interfaceorg.bonitasoft.engine.api.ProcessRuntimeAPI
-
getNumberOfPendingHumanTaskInstances
public long getNumberOfPendingHumanTaskInstances(long userId) - Specified by:
getNumberOfPendingHumanTaskInstancesin interfaceorg.bonitasoft.engine.api.ProcessRuntimeAPI
-
getPendingHumanTaskInstances
public List<org.bonitasoft.engine.bpm.flownode.HumanTaskInstance> getPendingHumanTaskInstances(long userId, int startIndex, int maxResults, org.bonitasoft.engine.bpm.flownode.ActivityInstanceCriterion pagingCriterion) - Specified by:
getPendingHumanTaskInstancesin interfaceorg.bonitasoft.engine.api.ProcessRuntimeAPI
-
getArchivedActivityInstance
public org.bonitasoft.engine.bpm.flownode.ArchivedActivityInstance getArchivedActivityInstance(long sourceActivityInstanceId) throws org.bonitasoft.engine.bpm.flownode.ActivityInstanceNotFoundException - Specified by:
getArchivedActivityInstancein interfaceorg.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:
getArchivedFlowNodeInstancein interfaceorg.bonitasoft.engine.api.ProcessRuntimeAPI- Throws:
org.bonitasoft.engine.bpm.flownode.ArchivedFlowNodeInstanceNotFoundExceptionorg.bonitasoft.engine.exception.RetrieveException
-
getProcessInstances
public List<org.bonitasoft.engine.bpm.process.ProcessInstance> getProcessInstances(int startIndex, int maxResults, org.bonitasoft.engine.bpm.process.ProcessInstanceCriterion criterion) - Specified by:
getProcessInstancesin interfaceorg.bonitasoft.engine.api.ProcessRuntimeAPI
-
getNumberOfProcessInstances
public long getNumberOfProcessInstances()- Specified by:
getNumberOfProcessInstancesin interfaceorg.bonitasoft.engine.api.ProcessRuntimeAPI
-
searchProcessInstances
protected org.bonitasoft.engine.search.SearchResult<org.bonitasoft.engine.bpm.process.ProcessInstance> searchProcessInstances(ServiceAccessor serviceAccessor, org.bonitasoft.engine.search.SearchOptions searchOptions) throws SBonitaException - Throws:
SBonitaException
-
getArchivedProcessInstances
@Deprecated public List<org.bonitasoft.engine.bpm.process.ArchivedProcessInstance> getArchivedProcessInstances(int startIndex, int maxResults, org.bonitasoft.engine.bpm.process.ProcessInstanceCriterion criterion) Deprecated.- Specified by:
getArchivedProcessInstancesin interfaceorg.bonitasoft.engine.api.ProcessRuntimeAPI
-
getCompletedProcessInstances
public List<org.bonitasoft.engine.bpm.process.ArchivedProcessInstance> getCompletedProcessInstances(int startIndex, int maxResults, org.bonitasoft.engine.bpm.process.ProcessInstanceCriterion criterion) - Specified by:
getCompletedProcessInstancesin interfaceorg.bonitasoft.engine.api.ProcessRuntimeAPI
-
getNumberOfArchivedProcessInstances
Deprecated.- Specified by:
getNumberOfArchivedProcessInstancesin interfaceorg.bonitasoft.engine.api.ProcessRuntimeAPI
-
getNumberOfCompletedProcessInstances
public long getNumberOfCompletedProcessInstances()- Specified by:
getNumberOfCompletedProcessInstancesin interfaceorg.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:
searchArchivedProcessInstancesin interfaceorg.bonitasoft.engine.api.ProcessRuntimeAPI- Throws:
org.bonitasoft.engine.exception.RetrieveExceptionorg.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:
searchArchivedProcessInstancesInAllStatesin interfaceorg.bonitasoft.engine.api.ProcessRuntimeAPI- Throws:
org.bonitasoft.engine.exception.SearchException
-
getOpenActivityInstances
public List<org.bonitasoft.engine.bpm.flownode.ActivityInstance> getOpenActivityInstances(long processInstanceId, int startIndex, int maxResults, org.bonitasoft.engine.bpm.flownode.ActivityInstanceCriterion criterion) - Specified by:
getOpenActivityInstancesin interfaceorg.bonitasoft.engine.api.ProcessRuntimeAPI
-
getArchivedActivityInstances
public List<org.bonitasoft.engine.bpm.flownode.ArchivedActivityInstance> getArchivedActivityInstances(long processInstanceId, int startIndex, int maxResults, org.bonitasoft.engine.bpm.flownode.ActivityInstanceCriterion criterion) - Specified by:
getArchivedActivityInstancesin interfaceorg.bonitasoft.engine.api.ProcessRuntimeAPI
-
getNumberOfOpenedActivityInstances
public int getNumberOfOpenedActivityInstances(long processInstanceId) - Specified by:
getNumberOfOpenedActivityInstancesin interfaceorg.bonitasoft.engine.api.ProcessRuntimeAPI
-
createCategory
public org.bonitasoft.engine.bpm.category.Category createCategory(String name, String description) throws org.bonitasoft.engine.exception.CreationException - Specified by:
createCategoryin interfaceorg.bonitasoft.engine.api.ProcessManagementAPI- Throws:
org.bonitasoft.engine.exception.CreationException
-
getCategory
public org.bonitasoft.engine.bpm.category.Category getCategory(long categoryId) throws org.bonitasoft.engine.bpm.category.CategoryNotFoundException - Specified by:
getCategoryin interfaceorg.bonitasoft.engine.api.ProcessManagementAPI- Throws:
org.bonitasoft.engine.bpm.category.CategoryNotFoundException
-
getNumberOfCategories
public long getNumberOfCategories()- Specified by:
getNumberOfCategoriesin interfaceorg.bonitasoft.engine.api.ProcessManagementAPI
-
getCategories
public List<org.bonitasoft.engine.bpm.category.Category> getCategories(int startIndex, int maxResults, org.bonitasoft.engine.bpm.category.CategoryCriterion sortCriterion) - Specified by:
getCategoriesin interfaceorg.bonitasoft.engine.api.ProcessManagementAPI
-
addCategoriesToProcess
public void addCategoriesToProcess(long processDefinitionId, List<Long> categoryIds) throws org.bonitasoft.engine.exception.CreationException - Specified by:
addCategoriesToProcessin interfaceorg.bonitasoft.engine.api.ProcessManagementAPI- Throws:
org.bonitasoft.engine.exception.CreationException
-
removeCategoriesFromProcess
public void removeCategoriesFromProcess(long processDefinitionId, List<Long> categoryIds) throws org.bonitasoft.engine.exception.DeletionException - Specified by:
removeCategoriesFromProcessin interfaceorg.bonitasoft.engine.api.ProcessManagementAPI- Throws:
org.bonitasoft.engine.exception.DeletionException
-
addProcessDefinitionToCategory
public void addProcessDefinitionToCategory(long categoryId, long processDefinitionId) throws org.bonitasoft.engine.exception.CreationException - Specified by:
addProcessDefinitionToCategoryin interfaceorg.bonitasoft.engine.api.ProcessManagementAPI- Throws:
org.bonitasoft.engine.exception.CreationException
-
addProcessDefinitionsToCategory
public void addProcessDefinitionsToCategory(long categoryId, List<Long> processDefinitionIds) throws org.bonitasoft.engine.exception.CreationException - Specified by:
addProcessDefinitionsToCategoryin interfaceorg.bonitasoft.engine.api.ProcessManagementAPI- Throws:
org.bonitasoft.engine.exception.CreationException
-
getNumberOfCategories
public long getNumberOfCategories(long processDefinitionId) - Specified by:
getNumberOfCategoriesin interfaceorg.bonitasoft.engine.api.ProcessManagementAPI
-
getNumberOfProcessDefinitionsOfCategory
public long getNumberOfProcessDefinitionsOfCategory(long categoryId) - Specified by:
getNumberOfProcessDefinitionsOfCategoryin interfaceorg.bonitasoft.engine.api.ProcessManagementAPI
-
getProcessDeploymentInfosOfCategory
public List<org.bonitasoft.engine.bpm.process.ProcessDeploymentInfo> getProcessDeploymentInfosOfCategory(long categoryId, int startIndex, int maxResults, org.bonitasoft.engine.bpm.process.ProcessDeploymentInfoCriterion sortCriterion) - Specified by:
getProcessDeploymentInfosOfCategoryin interfaceorg.bonitasoft.engine.api.ProcessManagementAPI
-
getCategoriesOfProcessDefinition
public List<org.bonitasoft.engine.bpm.category.Category> getCategoriesOfProcessDefinition(long processDefinitionId, int startIndex, int maxResults, org.bonitasoft.engine.bpm.category.CategoryCriterion sortingCriterion) - Specified by:
getCategoriesOfProcessDefinitionin interfaceorg.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:
updateCategoryin interfaceorg.bonitasoft.engine.api.ProcessManagementAPI- Throws:
org.bonitasoft.engine.bpm.category.CategoryNotFoundExceptionorg.bonitasoft.engine.exception.UpdateException
-
deleteCategory
public void deleteCategory(long categoryId) throws org.bonitasoft.engine.exception.DeletionException - Specified by:
deleteCategoryin interfaceorg.bonitasoft.engine.api.ProcessManagementAPI- Throws:
org.bonitasoft.engine.exception.DeletionException
-
getNumberOfUncategorizedProcessDefinitions
public long getNumberOfUncategorizedProcessDefinitions()- Specified by:
getNumberOfUncategorizedProcessDefinitionsin interfaceorg.bonitasoft.engine.api.ProcessManagementAPI
-
getUncategorizedProcessDeploymentInfos
public List<org.bonitasoft.engine.bpm.process.ProcessDeploymentInfo> getUncategorizedProcessDeploymentInfos(int startIndex, int maxResults, org.bonitasoft.engine.bpm.process.ProcessDeploymentInfoCriterion sortCriterion) - Specified by:
getUncategorizedProcessDeploymentInfosin interfaceorg.bonitasoft.engine.api.ProcessManagementAPI
-
removeCategoriesFromProcessDefinition
public long removeCategoriesFromProcessDefinition(long processDefinitionId, int startIndex, int maxResults) throws org.bonitasoft.engine.exception.DeletionException - Specified by:
removeCategoriesFromProcessDefinitionin interfaceorg.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:
removeProcessDefinitionsFromCategoryin interfaceorg.bonitasoft.engine.api.ProcessManagementAPI- Throws:
org.bonitasoft.engine.exception.DeletionException
-
getEventInstances
public List<org.bonitasoft.engine.bpm.flownode.EventInstance> getEventInstances(long rootContainerId, int startIndex, int maxResults, org.bonitasoft.engine.bpm.flownode.EventCriterion criterion) - Specified by:
getEventInstancesin interfaceorg.bonitasoft.engine.api.ProcessRuntimeAPI
-
assignUserTask
public void assignUserTask(long userTaskId, long userId) throws org.bonitasoft.engine.exception.UpdateException - Specified by:
assignUserTaskin interfaceorg.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:
assignUserTaskIfNotAssignedin interfaceorg.bonitasoft.engine.api.ProcessRuntimeAPI- Throws:
org.bonitasoft.engine.exception.UpdateException
-
assignAndExecuteUserTask
public void assignAndExecuteUserTask(long userId, long userTaskInstanceId, Map<String, Serializable> inputs) throws org.bonitasoft.engine.bpm.flownode.UserTaskNotFoundException, org.bonitasoft.engine.bpm.contract.ContractViolationException, org.bonitasoft.engine.bpm.flownode.FlowNodeExecutionException- Specified by:
assignAndExecuteUserTaskin interfaceorg.bonitasoft.engine.api.ProcessRuntimeAPI- Throws:
org.bonitasoft.engine.bpm.flownode.UserTaskNotFoundExceptionorg.bonitasoft.engine.bpm.contract.ContractViolationExceptionorg.bonitasoft.engine.bpm.flownode.FlowNodeExecutionException
-
updateActorsOfUserTask
public void updateActorsOfUserTask(long userTaskId) throws org.bonitasoft.engine.exception.UpdateException - Specified by:
updateActorsOfUserTaskin interfaceorg.bonitasoft.engine.api.ProcessRuntimeAPI- Throws:
org.bonitasoft.engine.exception.UpdateException
-
getActivityDataDefinitions
public List<org.bonitasoft.engine.bpm.data.DataDefinition> getActivityDataDefinitions(long processDefinitionId, String activityName, int startIndex, int maxResults) throws org.bonitasoft.engine.bpm.flownode.ActivityDefinitionNotFoundException, org.bonitasoft.engine.bpm.process.ProcessDefinitionNotFoundException - Specified by:
getActivityDataDefinitionsin interfaceorg.bonitasoft.engine.api.ProcessManagementAPI- Throws:
org.bonitasoft.engine.bpm.flownode.ActivityDefinitionNotFoundExceptionorg.bonitasoft.engine.bpm.process.ProcessDefinitionNotFoundException
-
getProcessDataDefinitions
public List<org.bonitasoft.engine.bpm.data.DataDefinition> getProcessDataDefinitions(long processDefinitionId, int startIndex, int maxResults) throws org.bonitasoft.engine.bpm.process.ProcessDefinitionNotFoundException - Specified by:
getProcessDataDefinitionsin interfaceorg.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:
getHumanTaskInstancein interfaceorg.bonitasoft.engine.api.ProcessRuntimeAPI- Throws:
org.bonitasoft.engine.bpm.flownode.ActivityInstanceNotFoundException
-
getNumberOfAssignedHumanTaskInstances
public long getNumberOfAssignedHumanTaskInstances(long userId) - Specified by:
getNumberOfAssignedHumanTaskInstancesin interfaceorg.bonitasoft.engine.api.ProcessRuntimeAPI
-
getNumberOfOpenTasks
- Specified by:
getNumberOfOpenTasksin interfaceorg.bonitasoft.engine.api.ProcessRuntimeAPI
-
getProcessResources
public Map<String,byte[]> getProcessResources(long processDefinitionId, String filenamesPattern) throws org.bonitasoft.engine.exception.RetrieveException - Specified by:
getProcessResourcesin interfaceorg.bonitasoft.engine.api.ProcessManagementAPI- Throws:
org.bonitasoft.engine.exception.RetrieveException
-
getExternalProcessResource
public byte[] getExternalProcessResource(long processDefinitionId, String fileName) throws org.bonitasoft.engine.exception.RetrieveException, FileNotFoundException - Specified by:
getExternalProcessResourcein interfaceorg.bonitasoft.engine.api.ProcessManagementAPI- Throws:
org.bonitasoft.engine.exception.RetrieveExceptionFileNotFoundException
-
getLatestProcessDefinitionId
public long getLatestProcessDefinitionId(String processName) throws org.bonitasoft.engine.bpm.process.ProcessDefinitionNotFoundException - Specified by:
getLatestProcessDefinitionIdin interfaceorg.bonitasoft.engine.api.ProcessManagementAPI- Throws:
org.bonitasoft.engine.bpm.process.ProcessDefinitionNotFoundException
-
getProcessDataInstances
public List<org.bonitasoft.engine.bpm.data.DataInstance> getProcessDataInstances(long processInstanceId, int startIndex, int maxResults) - Specified by:
getProcessDataInstancesin interfaceorg.bonitasoft.engine.api.ProcessRuntimeAPI
-
getProcessDataInstance
public org.bonitasoft.engine.bpm.data.DataInstance getProcessDataInstance(String dataName, long processInstanceId) throws org.bonitasoft.engine.bpm.data.DataNotFoundException - Specified by:
getProcessDataInstancein interfaceorg.bonitasoft.engine.api.ProcessRuntimeAPI- Throws:
org.bonitasoft.engine.bpm.data.DataNotFoundException
-
updateProcessDataInstance
public void updateProcessDataInstance(String dataName, long processInstanceId, Serializable dataValue) throws org.bonitasoft.engine.exception.UpdateException - Specified by:
updateProcessDataInstancein interfaceorg.bonitasoft.engine.api.ProcessRuntimeAPI- Throws:
org.bonitasoft.engine.exception.UpdateException
-
updateProcessDataInstances
public void updateProcessDataInstances(long processInstanceId, Map<String, Serializable> dataNameValues) throws org.bonitasoft.engine.exception.UpdateException- Specified by:
updateProcessDataInstancesin interfaceorg.bonitasoft.engine.api.ProcessRuntimeAPI- Throws:
org.bonitasoft.engine.exception.UpdateException
-
updateDataInstances
protected void updateDataInstances(List<SDataInstance> sDataInstances, Map<String, Serializable> dataNameValues, ClassLoader classLoader) throws ClassNotFoundException, org.bonitasoft.engine.exception.UpdateException, SDataInstanceException- Throws:
ClassNotFoundExceptionorg.bonitasoft.engine.exception.UpdateExceptionSDataInstanceException
-
updateDataInstance
protected void updateDataInstance(DataInstanceService dataInstanceService, SDataInstance sDataInstance, Serializable dataNewValue, ClassLoader classLoader) throws org.bonitasoft.engine.exception.UpdateException, SDataInstanceException - Throws:
org.bonitasoft.engine.exception.UpdateExceptionSDataInstanceException
-
verifyTypeOfNewDataValue
protected void verifyTypeOfNewDataValue(SDataInstance sDataInstance, Serializable dataValue, ClassLoader classLoader) throws org.bonitasoft.engine.exception.UpdateException - Throws:
org.bonitasoft.engine.exception.UpdateException
-
getProcessInstanceClassloader
protected ClassLoader getProcessInstanceClassloader(ServiceAccessor serviceAccessor, long processInstanceId) throws SProcessInstanceNotFoundException, SProcessInstanceReadException, SClassLoaderException -
getActivityDataInstances
public List<org.bonitasoft.engine.bpm.data.DataInstance> getActivityDataInstances(long activityInstanceId, int startIndex, int maxResults) - Specified by:
getActivityDataInstancesin interfaceorg.bonitasoft.engine.api.ProcessRuntimeAPI
-
getActivityDataInstance
public org.bonitasoft.engine.bpm.data.DataInstance getActivityDataInstance(String dataName, long activityInstanceId) throws org.bonitasoft.engine.bpm.data.DataNotFoundException - Specified by:
getActivityDataInstancein interfaceorg.bonitasoft.engine.api.ProcessRuntimeAPI- Throws:
org.bonitasoft.engine.bpm.data.DataNotFoundException
-
updateActivityDataInstance
public void updateActivityDataInstance(String dataName, long activityInstanceId, Serializable dataValue) throws org.bonitasoft.engine.exception.UpdateException - Specified by:
updateActivityDataInstancein interfaceorg.bonitasoft.engine.api.ProcessRuntimeAPI- Throws:
org.bonitasoft.engine.exception.UpdateException
-
getActivityTransientDataInstance
public org.bonitasoft.engine.bpm.data.DataInstance getActivityTransientDataInstance(String dataName, long activityInstanceId) throws org.bonitasoft.engine.bpm.data.DataNotFoundException - Specified by:
getActivityTransientDataInstancein interfaceorg.bonitasoft.engine.api.ProcessRuntimeAPI- Throws:
org.bonitasoft.engine.bpm.data.DataNotFoundException
-
convertModeltoDataInstance
protected org.bonitasoft.engine.bpm.data.DataInstance convertModeltoDataInstance(SDataInstance data) isolate static call for mocking reasons -
getActivityTransientDataInstances
public List<org.bonitasoft.engine.bpm.data.DataInstance> getActivityTransientDataInstances(long activityInstanceId, int startIndex, int maxResults) - Specified by:
getActivityTransientDataInstancesin interfaceorg.bonitasoft.engine.api.ProcessRuntimeAPI
-
convertModelToDataInstances
protected List<org.bonitasoft.engine.bpm.data.DataInstance> convertModelToDataInstances(List<SDataInstance> dataInstances) isolate static call for mocking reasons -
updateActivityTransientDataInstance
public void updateActivityTransientDataInstance(String dataName, long activityInstanceId, Serializable dataValue) throws org.bonitasoft.engine.exception.UpdateException - Specified by:
updateActivityTransientDataInstancein interfaceorg.bonitasoft.engine.api.ProcessRuntimeAPI- Throws:
org.bonitasoft.engine.exception.UpdateException
-
updateTransientData
protected void updateTransientData(String dataName, long activityInstanceId, Serializable dataValue, TransientDataService transientDataInstanceService, ClassLoader classLoader) throws SDataInstanceException, org.bonitasoft.engine.exception.UpdateException - Throws:
SDataInstanceExceptionorg.bonitasoft.engine.exception.UpdateException
-
importActorMapping
public void importActorMapping(long processDefinitionId, String xmlContent) throws org.bonitasoft.engine.bpm.actor.ActorMappingImportException - Specified by:
importActorMappingin interfaceorg.bonitasoft.engine.api.ProcessManagementAPI- Throws:
org.bonitasoft.engine.bpm.actor.ActorMappingImportException
-
exportActorMapping
public String exportActorMapping(long processDefinitionId) throws org.bonitasoft.engine.bpm.actor.ActorMappingExportException - Specified by:
exportActorMappingin interfaceorg.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:
isInvolvedInProcessInstancein interfaceorg.bonitasoft.engine.api.ProcessRuntimeAPI- Throws:
org.bonitasoft.engine.bpm.process.ProcessInstanceNotFoundException
-
isInvolvedInHumanTaskInstance
public boolean isInvolvedInHumanTaskInstance(long userId, long humanTaskInstanceId) throws org.bonitasoft.engine.bpm.flownode.ActivityInstanceNotFoundException - Specified by:
isInvolvedInHumanTaskInstancein interfaceorg.bonitasoft.engine.api.ProcessRuntimeAPI- Throws:
org.bonitasoft.engine.bpm.flownode.ActivityInstanceNotFoundException
-
isManagerOfUserInvolvedInProcessInstance
public boolean isManagerOfUserInvolvedInProcessInstance(long managerUserId, long processInstanceId) throws org.bonitasoft.engine.exception.BonitaException - Specified by:
isManagerOfUserInvolvedInProcessInstancein interfaceorg.bonitasoft.engine.api.ProcessRuntimeAPI- Throws:
org.bonitasoft.engine.exception.BonitaException
-
getProcessInstanceIdFromActivityInstanceId
public long getProcessInstanceIdFromActivityInstanceId(long activityInstanceId) throws org.bonitasoft.engine.bpm.process.ProcessInstanceNotFoundException - Specified by:
getProcessInstanceIdFromActivityInstanceIdin interfaceorg.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:
getProcessDefinitionIdFromActivityInstanceIdin interfaceorg.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:
getProcessDefinitionIdFromProcessInstanceIdin interfaceorg.bonitasoft.engine.api.ProcessRuntimeAPI- Throws:
org.bonitasoft.engine.bpm.process.ProcessDefinitionNotFoundException
-
getActivityReachedStateDate
- Specified by:
getActivityReachedStateDatein interfaceorg.bonitasoft.engine.api.ProcessRuntimeAPI
-
getSupportedStates
- Specified by:
getSupportedStatesin interfaceorg.bonitasoft.engine.api.ProcessManagementAPI
-
updateActivityInstanceVariables
public void updateActivityInstanceVariables(long activityInstanceId, Map<String, Serializable> variables) throws org.bonitasoft.engine.exception.UpdateException- Specified by:
updateActivityInstanceVariablesin interfaceorg.bonitasoft.engine.api.ProcessRuntimeAPI- Throws:
org.bonitasoft.engine.exception.UpdateException
-
updateActivityInstanceVariables
public void updateActivityInstanceVariables(List<org.bonitasoft.engine.operation.Operation> operations, long activityInstanceId, Map<String, Serializable> expressionContexts) throws org.bonitasoft.engine.exception.UpdateException- Specified by:
updateActivityInstanceVariablesin interfaceorg.bonitasoft.engine.api.ProcessRuntimeAPI- Throws:
org.bonitasoft.engine.exception.UpdateException
-
convertOperations
protected List<SOperation> convertOperations(List<org.bonitasoft.engine.operation.Operation> operations) -
getOneAssignedUserTaskInstanceOfProcessInstance
public long getOneAssignedUserTaskInstanceOfProcessInstance(long processInstanceId, long userId) throws org.bonitasoft.engine.exception.RetrieveException - Specified by:
getOneAssignedUserTaskInstanceOfProcessInstancein interfaceorg.bonitasoft.engine.api.ProcessRuntimeAPI- Throws:
org.bonitasoft.engine.exception.RetrieveException
-
getOneAssignedUserTaskInstanceOfProcessDefinition
public long getOneAssignedUserTaskInstanceOfProcessDefinition(long processDefinitionId, long userId) - Specified by:
getOneAssignedUserTaskInstanceOfProcessDefinitionin interfaceorg.bonitasoft.engine.api.ProcessRuntimeAPI
-
getActivityInstanceState
public String getActivityInstanceState(long activityInstanceId) throws org.bonitasoft.engine.bpm.flownode.ActivityInstanceNotFoundException - Specified by:
getActivityInstanceStatein interfaceorg.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:
canExecuteTaskin interfaceorg.bonitasoft.engine.api.ProcessRuntimeAPI- Throws:
org.bonitasoft.engine.bpm.flownode.ActivityInstanceNotFoundExceptionorg.bonitasoft.engine.exception.RetrieveException
-
getProcessDefinitionId
public long getProcessDefinitionId(String name, String version) throws org.bonitasoft.engine.bpm.process.ProcessDefinitionNotFoundException - Specified by:
getProcessDefinitionIdin interfaceorg.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:
releaseUserTaskin interfaceorg.bonitasoft.engine.api.ProcessRuntimeAPI- Throws:
org.bonitasoft.engine.bpm.flownode.ActivityInstanceNotFoundExceptionorg.bonitasoft.engine.exception.UpdateException
-
updateProcessDeploymentInfo
@Deprecated(since="9.0.0") public void updateProcessDeploymentInfo(long processDefinitionId, org.bonitasoft.engine.bpm.process.ProcessDeploymentInfoUpdater processDeploymentInfoUpdater) throws org.bonitasoft.engine.bpm.process.ProcessDefinitionNotFoundException, org.bonitasoft.engine.exception.UpdateException Deprecated.- Specified by:
updateProcessDeploymentInfoin interfaceorg.bonitasoft.engine.api.ProcessManagementAPI- Throws:
org.bonitasoft.engine.bpm.process.ProcessDefinitionNotFoundExceptionorg.bonitasoft.engine.exception.UpdateException
-
getStartableProcessDeploymentInfosForActors
public List<org.bonitasoft.engine.bpm.process.ProcessDeploymentInfo> getStartableProcessDeploymentInfosForActors(Set<Long> actorIds, int startIndex, int maxResults, org.bonitasoft.engine.bpm.process.ProcessDeploymentInfoCriterion sortingCriterion) - Specified by:
getStartableProcessDeploymentInfosForActorsin interfaceorg.bonitasoft.engine.api.ProcessManagementAPI
-
isAllowedToStartProcess
- Specified by:
isAllowedToStartProcessin interfaceorg.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:
getActorInitiatorin interfaceorg.bonitasoft.engine.api.ProcessManagementAPI- Throws:
org.bonitasoft.engine.bpm.actor.ActorNotFoundExceptionorg.bonitasoft.engine.bpm.process.ProcessDefinitionNotFoundException
-
getNumberOfActivityDataDefinitions
public int getNumberOfActivityDataDefinitions(long processDefinitionId, String activityName) throws org.bonitasoft.engine.bpm.process.ProcessDefinitionNotFoundException, org.bonitasoft.engine.bpm.flownode.ActivityDefinitionNotFoundException - Specified by:
getNumberOfActivityDataDefinitionsin interfaceorg.bonitasoft.engine.api.ProcessManagementAPI- Throws:
org.bonitasoft.engine.bpm.process.ProcessDefinitionNotFoundExceptionorg.bonitasoft.engine.bpm.flownode.ActivityDefinitionNotFoundException
-
getNumberOfProcessDataDefinitions
public int getNumberOfProcessDataDefinitions(long processDefinitionId) throws org.bonitasoft.engine.bpm.process.ProcessDefinitionNotFoundException - Specified by:
getNumberOfProcessDataDefinitionsin interfaceorg.bonitasoft.engine.api.ProcessManagementAPI- Throws:
org.bonitasoft.engine.bpm.process.ProcessDefinitionNotFoundException
-
startProcess
public org.bonitasoft.engine.bpm.process.ProcessInstance startProcess(long processDefinitionId, Map<String, Serializable> initialVariables) throws org.bonitasoft.engine.bpm.process.ProcessDefinitionNotFoundException, org.bonitasoft.engine.bpm.process.ProcessActivationException, org.bonitasoft.engine.bpm.process.ProcessExecutionException- Specified by:
startProcessin interfaceorg.bonitasoft.engine.api.ProcessRuntimeAPI- Throws:
org.bonitasoft.engine.bpm.process.ProcessDefinitionNotFoundExceptionorg.bonitasoft.engine.bpm.process.ProcessActivationExceptionorg.bonitasoft.engine.bpm.process.ProcessExecutionException
-
startProcessWithInputs
public org.bonitasoft.engine.bpm.process.ProcessInstance startProcessWithInputs(long processDefinitionId, Map<String, Serializable> instantiationInputs) throws org.bonitasoft.engine.bpm.process.ProcessDefinitionNotFoundException, org.bonitasoft.engine.bpm.process.ProcessActivationException, org.bonitasoft.engine.bpm.process.ProcessExecutionException, org.bonitasoft.engine.bpm.contract.ContractViolationException- Specified by:
startProcessWithInputsin interfaceorg.bonitasoft.engine.api.ProcessRuntimeAPI- Throws:
org.bonitasoft.engine.bpm.process.ProcessDefinitionNotFoundExceptionorg.bonitasoft.engine.bpm.process.ProcessActivationExceptionorg.bonitasoft.engine.bpm.process.ProcessExecutionExceptionorg.bonitasoft.engine.bpm.contract.ContractViolationException
-
startProcessWithInputs
public org.bonitasoft.engine.bpm.process.ProcessInstance startProcessWithInputs(long userId, long processDefinitionId, Map<String, Serializable> instantiationInputs) throws org.bonitasoft.engine.bpm.process.ProcessDefinitionNotFoundException, org.bonitasoft.engine.bpm.process.ProcessActivationException, org.bonitasoft.engine.bpm.process.ProcessExecutionException, org.bonitasoft.engine.bpm.contract.ContractViolationException- Specified by:
startProcessWithInputsin interfaceorg.bonitasoft.engine.api.ProcessRuntimeAPI- Throws:
org.bonitasoft.engine.bpm.process.ProcessDefinitionNotFoundExceptionorg.bonitasoft.engine.bpm.process.ProcessActivationExceptionorg.bonitasoft.engine.bpm.process.ProcessExecutionExceptionorg.bonitasoft.engine.bpm.contract.ContractViolationException
-
startProcess
public org.bonitasoft.engine.bpm.process.ProcessInstance startProcess(long userId, long processDefinitionId, Map<String, Serializable> initialVariables) throws org.bonitasoft.engine.bpm.process.ProcessDefinitionNotFoundException, org.bonitasoft.engine.bpm.process.ProcessActivationException, org.bonitasoft.engine.bpm.process.ProcessExecutionException- Specified by:
startProcessin interfaceorg.bonitasoft.engine.api.ProcessRuntimeAPI- Throws:
org.bonitasoft.engine.bpm.process.ProcessDefinitionNotFoundExceptionorg.bonitasoft.engine.bpm.process.ProcessActivationExceptionorg.bonitasoft.engine.bpm.process.ProcessExecutionException
-
createSetDataOperation
protected List<org.bonitasoft.engine.operation.Operation> createSetDataOperation(long processDefinitionId, Map<String, Serializable> initialVariables) throws org.bonitasoft.engine.bpm.process.ProcessExecutionException- Throws:
org.bonitasoft.engine.bpm.process.ProcessExecutionException
-
startProcess
public org.bonitasoft.engine.bpm.process.ProcessInstance startProcess(long processDefinitionId, List<org.bonitasoft.engine.operation.Operation> operations, Map<String, Serializable> context) throws org.bonitasoft.engine.bpm.process.ProcessExecutionException, org.bonitasoft.engine.bpm.process.ProcessDefinitionNotFoundException, org.bonitasoft.engine.bpm.process.ProcessActivationException- Specified by:
startProcessin interfaceorg.bonitasoft.engine.api.ProcessRuntimeAPI- Throws:
org.bonitasoft.engine.bpm.process.ProcessExecutionExceptionorg.bonitasoft.engine.bpm.process.ProcessDefinitionNotFoundExceptionorg.bonitasoft.engine.bpm.process.ProcessActivationException
-
startProcess
public org.bonitasoft.engine.bpm.process.ProcessInstance startProcess(long userId, long processDefinitionId, List<org.bonitasoft.engine.operation.Operation> operations, Map<String, Serializable> context) throws org.bonitasoft.engine.bpm.process.ProcessDefinitionNotFoundException, org.bonitasoft.engine.bpm.process.ProcessActivationException, org.bonitasoft.engine.bpm.process.ProcessExecutionException- Specified by:
startProcessin interfaceorg.bonitasoft.engine.api.ProcessRuntimeAPI- Throws:
org.bonitasoft.engine.bpm.process.ProcessDefinitionNotFoundExceptionorg.bonitasoft.engine.bpm.process.ProcessActivationExceptionorg.bonitasoft.engine.bpm.process.ProcessExecutionException
-
getNumberOfActivityDataInstances
public long getNumberOfActivityDataInstances(long activityInstanceId) throws org.bonitasoft.engine.bpm.flownode.ActivityInstanceNotFoundException - Specified by:
getNumberOfActivityDataInstancesin interfaceorg.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:
getNumberOfProcessDataInstancesin interfaceorg.bonitasoft.engine.api.ProcessRuntimeAPI- Throws:
org.bonitasoft.engine.bpm.process.ProcessInstanceNotFoundException
-
executeOperations
protected Map<String,Serializable> executeOperations(ConnectorResult connectorResult, List<org.bonitasoft.engine.operation.Operation> operations, Map<String, Serializable> operationInputValues, SExpressionContext expressionContext, ClassLoader classLoader, ServiceAccessor serviceAccessor) throws SBonitaException- Throws:
SBonitaException
-
executeConnectorOnProcessDefinition
public Map<String,Serializable> executeConnectorOnProcessDefinition(String connectorDefinitionId, String connectorDefinitionVersion, Map<String, org.bonitasoft.engine.expression.Expression> connectorInputParameters, Map<String, throws org.bonitasoft.engine.bpm.connector.ConnectorExecutionExceptionMap<String, Serializable>> inputValues, long processDefinitionId) - Specified by:
executeConnectorOnProcessDefinitionin interfaceorg.bonitasoft.engine.api.ProcessRuntimeAPI- Throws:
org.bonitasoft.engine.bpm.connector.ConnectorExecutionException
-
executeConnectorOnProcessDefinition
public Map<String,Serializable> executeConnectorOnProcessDefinition(String connectorDefinitionId, String connectorDefinitionVersion, Map<String, org.bonitasoft.engine.expression.Expression> connectorInputParameters, Map<String, throws org.bonitasoft.engine.bpm.connector.ConnectorExecutionExceptionMap<String, Serializable>> inputValues, List<org.bonitasoft.engine.operation.Operation> operations, Map<String, Serializable> operationInputValues, long processDefinitionId) - Specified by:
executeConnectorOnProcessDefinitionin interfaceorg.bonitasoft.engine.api.ProcessRuntimeAPI- Throws:
org.bonitasoft.engine.bpm.connector.ConnectorExecutionException
-
getSerializableResultOfConnector
protected Map<String,Serializable> getSerializableResultOfConnector(String connectorDefinitionVersion, ConnectorResult connectorResult, ConnectorService connectorService) throws org.bonitasoft.engine.exception.NotSerializableException, SConnectorException - Throws:
org.bonitasoft.engine.exception.NotSerializableExceptionSConnectorException
-
checkConnectorParameters
protected void checkConnectorParameters(Map<String, org.bonitasoft.engine.expression.Expression> connectorInputParameters, Map<String, throws org.bonitasoft.engine.bpm.connector.ConnectorExecutionExceptionMap<String, Serializable>> inputValues) - Throws:
org.bonitasoft.engine.bpm.connector.ConnectorExecutionException
-
setActivityStateByName
public void setActivityStateByName(long activityInstanceId, String state) throws org.bonitasoft.engine.exception.UpdateException - Specified by:
setActivityStateByNamein interfaceorg.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:
setActivityStateByIdin interfaceorg.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:
setTaskPriorityin interfaceorg.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:
deleteProcessInstancesin interfaceorg.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:
deleteArchivedProcessInstancesin interfaceorg.bonitasoft.engine.api.ProcessRuntimeAPI- Throws:
org.bonitasoft.engine.exception.DeletionException
-
deleteArchivedProcessInstancesInAllStates
public long deleteArchivedProcessInstancesInAllStates(List<Long> sourceProcessInstanceIds) throws org.bonitasoft.engine.exception.DeletionException - Specified by:
deleteArchivedProcessInstancesInAllStatesin interfaceorg.bonitasoft.engine.api.ProcessRuntimeAPI- Throws:
org.bonitasoft.engine.exception.DeletionException
-
deleteArchivedProcessInstancesInAllStates
public long deleteArchivedProcessInstancesInAllStates(long sourceProcessInstanceId) throws org.bonitasoft.engine.exception.DeletionException - Specified by:
deleteArchivedProcessInstancesInAllStatesin interfaceorg.bonitasoft.engine.api.ProcessRuntimeAPI- Throws:
org.bonitasoft.engine.exception.DeletionException
-
deleteProcessInstance
public void deleteProcessInstance(long processInstanceId) throws org.bonitasoft.engine.exception.DeletionException - Specified by:
deleteProcessInstancein interfaceorg.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:
searchOpenProcessInstancesin interfaceorg.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:
searchProcessInstancesin interfaceorg.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:
searchFailedProcessInstancesin interfaceorg.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:
searchFailedProcessInstancesSupervisedByin interfaceorg.bonitasoft.engine.api.ProcessRuntimeAPI- Throws:
org.bonitasoft.engine.exception.SearchException
-
createSearchFailedProcessInstancesSupervisedBy
protected SearchFailedProcessInstancesSupervisedBy createSearchFailedProcessInstancesSupervisedBy(long userId, org.bonitasoft.engine.search.SearchOptions searchOptions, ProcessInstanceService processInstanceService, SearchEntitiesDescriptor searchEntitiesDescriptor, ProcessDefinitionService processDefinitionService) -
createTxUserGetter
-
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:
searchOpenProcessInstancesSupervisedByin interfaceorg.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:
searchProcessDeploymentInfosStartedByin interfaceorg.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:
searchProcessDeploymentInfosin interfaceorg.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:
searchProcessDeploymentInfosCanBeStartedByin interfaceorg.bonitasoft.engine.api.ProcessManagementAPI- Throws:
org.bonitasoft.engine.exception.RetrieveExceptionorg.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:
searchProcessDeploymentInfosCanBeStartedByUsersManagedByin interfaceorg.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:
searchProcessDeploymentInfosWithAssignedOrPendingHumanTasksForin interfaceorg.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:
searchProcessDeploymentInfosWithAssignedOrPendingHumanTasksSupervisedByin interfaceorg.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:
searchProcessDeploymentInfosWithAssignedOrPendingHumanTasksin interfaceorg.bonitasoft.engine.api.ProcessRuntimeAPI- Throws:
org.bonitasoft.engine.exception.SearchException
-
getActiveFlownodeStateCountersForProcessDefinition
public Map<String,Map<String, getActiveFlownodeStateCountersForProcessDefinitionLong>> (long processDefinitionId) throws org.bonitasoft.engine.bpm.process.ProcessDefinitionNotFoundException - Specified by:
getActiveFlownodeStateCountersForProcessDefinitionin interfaceorg.bonitasoft.engine.api.ProcessRuntimeAPI- Throws:
org.bonitasoft.engine.bpm.process.ProcessDefinitionNotFoundException
-
getFlownodeStateCounters
- Specified by:
getFlownodeStateCountersin interfaceorg.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:
searchProcessDeploymentInfosSupervisedByin interfaceorg.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:
searchAssignedTasksSupervisedByin interfaceorg.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:
searchArchivedHumanTasksSupervisedByin interfaceorg.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:
searchProcessSupervisorsin interfaceorg.bonitasoft.engine.api.ProcessManagementAPI- Throws:
org.bonitasoft.engine.exception.SearchException
-
isUserProcessSupervisor
public boolean isUserProcessSupervisor(long processDefinitionId, long userId) - Specified by:
isUserProcessSupervisorin interfaceorg.bonitasoft.engine.api.ProcessManagementAPI
-
deleteSupervisor
public void deleteSupervisor(long supervisorId) throws org.bonitasoft.engine.exception.DeletionException - Specified by:
deleteSupervisorin interfaceorg.bonitasoft.engine.api.ProcessManagementAPI- Throws:
org.bonitasoft.engine.exception.DeletionException
-
deleteSupervisor
public void deleteSupervisor(Long processDefinitionId, Long userId, Long roleId, Long groupId) throws org.bonitasoft.engine.exception.DeletionException - Specified by:
deleteSupervisorin interfaceorg.bonitasoft.engine.api.ProcessManagementAPI- Throws:
org.bonitasoft.engine.exception.DeletionException
-
createProcessSupervisorForUser
public org.bonitasoft.engine.bpm.supervisor.ProcessSupervisor createProcessSupervisorForUser(long processDefinitionId, long userId) throws org.bonitasoft.engine.exception.CreationException - Specified by:
createProcessSupervisorForUserin interfaceorg.bonitasoft.engine.api.ProcessManagementAPI- Throws:
org.bonitasoft.engine.exception.CreationException
-
createProcessSupervisorForRole
public org.bonitasoft.engine.bpm.supervisor.ProcessSupervisor createProcessSupervisorForRole(long processDefinitionId, long roleId) throws org.bonitasoft.engine.exception.CreationException - Specified by:
createProcessSupervisorForRolein interfaceorg.bonitasoft.engine.api.ProcessManagementAPI- Throws:
org.bonitasoft.engine.exception.CreationException
-
createProcessSupervisorForGroup
public org.bonitasoft.engine.bpm.supervisor.ProcessSupervisor createProcessSupervisorForGroup(long processDefinitionId, long groupId) throws org.bonitasoft.engine.exception.CreationException - Specified by:
createProcessSupervisorForGroupin interfaceorg.bonitasoft.engine.api.ProcessManagementAPI- Throws:
org.bonitasoft.engine.exception.CreationException
-
createProcessSupervisorForMembership
public org.bonitasoft.engine.bpm.supervisor.ProcessSupervisor createProcessSupervisorForMembership(long processDefinitionId, long groupId, long roleId) throws org.bonitasoft.engine.exception.CreationException - Specified by:
createProcessSupervisorForMembershipin interfaceorg.bonitasoft.engine.api.ProcessManagementAPI- Throws:
org.bonitasoft.engine.exception.CreationException
-
searchSProcessSupervisors
protected List<SProcessSupervisor> searchSProcessSupervisors(Long processDefinitionId, Long userId, Long groupId, Long roleId) throws SBonitaReadException - Throws:
SBonitaReadException
-
searchUncategorizedProcessDeploymentInfosCanBeStartedBy
public org.bonitasoft.engine.search.SearchResult<org.bonitasoft.engine.bpm.process.ProcessDeploymentInfo> searchUncategorizedProcessDeploymentInfosCanBeStartedBy(long userId, org.bonitasoft.engine.search.SearchOptions searchOptions) throws org.bonitasoft.engine.exception.SearchException - Specified by:
searchUncategorizedProcessDeploymentInfosCanBeStartedByin interfaceorg.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:
searchArchivedHumanTasksManagedByin interfaceorg.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:
searchOpenProcessInstancesInvolvingUserin interfaceorg.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:
searchOpenProcessInstancesInvolvingUsersManagedByin interfaceorg.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:
searchArchivedHumanTasksin interfaceorg.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:
searchAssignedTasksManagedByin interfaceorg.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:
searchArchivedProcessInstancesSupervisedByin interfaceorg.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:
searchArchivedProcessInstancesInvolvingUserin interfaceorg.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:
searchPendingTasksForUserin interfaceorg.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:
searchPendingTasksAssignedToUserin interfaceorg.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:
searchMyAvailableHumanTasksin interfaceorg.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:
searchPendingOrAssignedToUserOrAssignedToOthersTasksin interfaceorg.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:
searchPendingTasksSupervisedByin interfaceorg.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:
searchCommentsin interfaceorg.bonitasoft.engine.api.ProcessRuntimeAPI- Throws:
org.bonitasoft.engine.exception.SearchException
-
addProcessComment
public org.bonitasoft.engine.bpm.comment.Comment addProcessComment(long processInstanceId, String comment) throws org.bonitasoft.engine.exception.CreationException - Specified by:
addProcessCommentin interfaceorg.bonitasoft.engine.api.ProcessRuntimeAPI- Throws:
org.bonitasoft.engine.exception.CreationException
-
addProcessCommentOnBehalfOfUser
public org.bonitasoft.engine.bpm.comment.Comment addProcessCommentOnBehalfOfUser(long processInstanceId, String comment, long userId) throws org.bonitasoft.engine.exception.CreationException - Specified by:
addProcessCommentOnBehalfOfUserin interfaceorg.bonitasoft.engine.api.ProcessRuntimeAPI- Throws:
org.bonitasoft.engine.exception.CreationException
-
attachDocument
public org.bonitasoft.engine.bpm.document.Document attachDocument(long processInstanceId, String documentName, String fileName, String mimeType, String url) throws org.bonitasoft.engine.bpm.document.DocumentAttachmentException, org.bonitasoft.engine.bpm.process.ProcessInstanceNotFoundException - Specified by:
attachDocumentin interfaceorg.bonitasoft.engine.api.DocumentAPI- Throws:
org.bonitasoft.engine.bpm.document.DocumentAttachmentExceptionorg.bonitasoft.engine.bpm.process.ProcessInstanceNotFoundException
-
attachDocument
public org.bonitasoft.engine.bpm.document.Document attachDocument(long processInstanceId, String documentName, String fileName, String mimeType, byte[] documentContent) throws org.bonitasoft.engine.bpm.document.DocumentAttachmentException, org.bonitasoft.engine.bpm.process.ProcessInstanceNotFoundException - Specified by:
attachDocumentin interfaceorg.bonitasoft.engine.api.DocumentAPI- Throws:
org.bonitasoft.engine.bpm.document.DocumentAttachmentExceptionorg.bonitasoft.engine.bpm.process.ProcessInstanceNotFoundException
-
attachNewDocumentVersion
public org.bonitasoft.engine.bpm.document.Document attachNewDocumentVersion(long processInstanceId, String documentName, String fileName, String mimeType, String url) throws org.bonitasoft.engine.bpm.document.DocumentAttachmentException - Specified by:
attachNewDocumentVersionin interfaceorg.bonitasoft.engine.api.DocumentAPI- Throws:
org.bonitasoft.engine.bpm.document.DocumentAttachmentException
-
attachNewDocumentVersion
public org.bonitasoft.engine.bpm.document.Document attachNewDocumentVersion(long processInstanceId, String documentName, String contentFileName, String contentMimeType, byte[] documentContent) throws org.bonitasoft.engine.bpm.document.DocumentAttachmentException - Specified by:
attachNewDocumentVersionin interfaceorg.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:
getDocumentin interfaceorg.bonitasoft.engine.api.DocumentAPI- Throws:
org.bonitasoft.engine.bpm.document.DocumentNotFoundException
-
getLastVersionOfDocuments
public List<org.bonitasoft.engine.bpm.document.Document> getLastVersionOfDocuments(long processInstanceId, int pageIndex, int numberPerPage, org.bonitasoft.engine.bpm.document.DocumentCriterion pagingCriterion) throws org.bonitasoft.engine.bpm.document.DocumentException, org.bonitasoft.engine.bpm.process.ProcessInstanceNotFoundException - Specified by:
getLastVersionOfDocumentsin interfaceorg.bonitasoft.engine.api.DocumentAPI- Throws:
org.bonitasoft.engine.bpm.document.DocumentExceptionorg.bonitasoft.engine.bpm.process.ProcessInstanceNotFoundException
-
getDocumentContent
public byte[] getDocumentContent(String documentStorageId) throws org.bonitasoft.engine.bpm.document.DocumentNotFoundException - Specified by:
getDocumentContentin interfaceorg.bonitasoft.engine.api.DocumentAPI- Throws:
org.bonitasoft.engine.bpm.document.DocumentNotFoundException
-
getLastDocument
public org.bonitasoft.engine.bpm.document.Document getLastDocument(long processInstanceId, String documentName) throws org.bonitasoft.engine.bpm.document.DocumentNotFoundException - Specified by:
getLastDocumentin interfaceorg.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:
getNumberOfDocumentsin interfaceorg.bonitasoft.engine.api.DocumentAPI- Throws:
org.bonitasoft.engine.bpm.document.DocumentException
-
getDocumentAtProcessInstantiation
public org.bonitasoft.engine.bpm.document.Document getDocumentAtProcessInstantiation(long processInstanceId, String documentName) throws org.bonitasoft.engine.bpm.document.DocumentNotFoundException - Specified by:
getDocumentAtProcessInstantiationin interfaceorg.bonitasoft.engine.api.DocumentAPI- Throws:
org.bonitasoft.engine.bpm.document.DocumentNotFoundException
-
getDocumentAtActivityInstanceCompletion
public org.bonitasoft.engine.bpm.document.Document getDocumentAtActivityInstanceCompletion(long activityInstanceId, String documentName) throws org.bonitasoft.engine.bpm.document.DocumentNotFoundException - Specified by:
getDocumentAtActivityInstanceCompletionin interfaceorg.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:
searchPendingTasksManagedByin interfaceorg.bonitasoft.engine.api.ProcessRuntimeAPI- Throws:
org.bonitasoft.engine.exception.SearchException
-
getNumberOfOverdueOpenTasks
public Map<Long,Long> getNumberOfOverdueOpenTasks(List<Long> userIds) throws org.bonitasoft.engine.exception.RetrieveException - Specified by:
getNumberOfOverdueOpenTasksin interfaceorg.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:
searchUncategorizedProcessDeploymentInfosin interfaceorg.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:
searchCommentsManagedByin interfaceorg.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:
searchCommentsInvolvingUserin interfaceorg.bonitasoft.engine.api.ProcessRuntimeAPI- Throws:
org.bonitasoft.engine.exception.SearchException
-
getChildrenInstanceIdsOfProcessInstance
public List<Long> getChildrenInstanceIdsOfProcessInstance(long processInstanceId, int startIndex, int maxResults, org.bonitasoft.engine.bpm.process.ProcessInstanceCriterion criterion) - Specified by:
getChildrenInstanceIdsOfProcessInstancein interfaceorg.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:
searchUncategorizedProcessDeploymentInfosSupervisedByin interfaceorg.bonitasoft.engine.api.ProcessManagementAPI- Throws:
org.bonitasoft.engine.exception.SearchException
-
getProcessDeploymentInfosFromIds
public Map<Long,org.bonitasoft.engine.bpm.process.ProcessDeploymentInfo> getProcessDeploymentInfosFromIds(List<Long> processDefinitionIds) - Specified by:
getProcessDeploymentInfosFromIdsin interfaceorg.bonitasoft.engine.api.ProcessManagementAPI
-
getConnectorImplementations
public List<org.bonitasoft.engine.bpm.connector.ConnectorImplementationDescriptor> getConnectorImplementations(long processDefinitionId, int startIndex, int maxsResults, org.bonitasoft.engine.bpm.connector.ConnectorCriterion sortingCriterion) - Specified by:
getConnectorImplementationsin interfaceorg.bonitasoft.engine.api.ProcessManagementAPI
-
getNumberOfConnectorImplementations
public long getNumberOfConnectorImplementations(long processDefinitionId) - Specified by:
getNumberOfConnectorImplementationsin interfaceorg.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:
searchActivitiesin interfaceorg.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:
searchArchivedFlowNodeInstancesin interfaceorg.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:
searchFlowNodeInstancesin interfaceorg.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:
searchTimerEventTriggerInstancesin interfaceorg.bonitasoft.engine.api.ProcessRuntimeAPI- Throws:
org.bonitasoft.engine.exception.SearchException
-
updateExecutionDateOfTimerEventTriggerInstance
public Date updateExecutionDateOfTimerEventTriggerInstance(long timerEventTriggerInstanceId, Date executionDate) throws org.bonitasoft.engine.bpm.flownode.TimerEventTriggerInstanceNotFoundException, org.bonitasoft.engine.exception.UpdateException - Specified by:
updateExecutionDateOfTimerEventTriggerInstancein interfaceorg.bonitasoft.engine.api.ProcessRuntimeAPI- Throws:
org.bonitasoft.engine.bpm.flownode.TimerEventTriggerInstanceNotFoundExceptionorg.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:
searchArchivedActivitiesin interfaceorg.bonitasoft.engine.api.ProcessRuntimeAPI- Throws:
org.bonitasoft.engine.exception.SearchException
-
getConnectorImplementation
public org.bonitasoft.engine.bpm.connector.ConnectorImplementationDescriptor getConnectorImplementation(long processDefinitionId, String connectorId, String connectorVersion) throws org.bonitasoft.engine.bpm.connector.ConnectorNotFoundException - Specified by:
getConnectorImplementationin interfaceorg.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:
cancelProcessInstancein interfaceorg.bonitasoft.engine.api.ProcessRuntimeAPI- Throws:
org.bonitasoft.engine.bpm.process.ProcessInstanceNotFoundExceptionorg.bonitasoft.engine.exception.UpdateException
-
setProcessInstanceState
public void setProcessInstanceState(org.bonitasoft.engine.bpm.process.ProcessInstance processInstance, String state) throws org.bonitasoft.engine.exception.UpdateException - Specified by:
setProcessInstanceStatein interfaceorg.bonitasoft.engine.api.ProcessRuntimeAPI- Throws:
org.bonitasoft.engine.exception.UpdateException
-
getProcessDeploymentInfosFromProcessInstanceIds
public Map<Long,org.bonitasoft.engine.bpm.process.ProcessDeploymentInfo> getProcessDeploymentInfosFromProcessInstanceIds(List<Long> processInstanceIds) - Specified by:
getProcessDeploymentInfosFromProcessInstanceIdsin interfaceorg.bonitasoft.engine.api.ProcessManagementAPI
-
getProcessDeploymentInfosFromArchivedProcessInstanceIds
public Map<Long,org.bonitasoft.engine.bpm.process.ProcessDeploymentInfo> getProcessDeploymentInfosFromArchivedProcessInstanceIds(List<Long> archivedProcessInstantsIds) - Specified by:
getProcessDeploymentInfosFromArchivedProcessInstanceIdsin interfaceorg.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:
searchDocumentsin interfaceorg.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:
searchDocumentsSupervisedByin interfaceorg.bonitasoft.engine.api.DocumentAPI- Throws:
org.bonitasoft.engine.exception.SearchExceptionorg.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:
searchArchivedDocumentsin interfaceorg.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:
searchArchivedDocumentsSupervisedByin interfaceorg.bonitasoft.engine.api.DocumentAPI- Throws:
org.bonitasoft.engine.exception.SearchExceptionorg.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:
retryTaskin interfaceorg.bonitasoft.engine.api.ProcessRuntimeAPI- Throws:
org.bonitasoft.engine.bpm.flownode.ActivityExecutionExceptionorg.bonitasoft.engine.bpm.flownode.ActivityInstanceNotFoundException
-
executeMessageCouple
public void executeMessageCouple(long messageInstanceId, long waitingMessageId) throws org.bonitasoft.engine.exception.ExecutionException - Specified by:
executeMessageCouplein interfaceorg.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:
getArchivedVersionOfProcessDocumentin interfaceorg.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:
getArchivedProcessDocumentin interfaceorg.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:
searchArchivedCommentsin interfaceorg.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:
getArchivedCommentin interfaceorg.bonitasoft.engine.api.ProcessRuntimeAPI- Throws:
org.bonitasoft.engine.exception.RetrieveExceptionorg.bonitasoft.engine.exception.NotFoundException
-
getActorsFromActorIds
public Map<Long,org.bonitasoft.engine.bpm.actor.ActorInstance> getActorsFromActorIds(List<Long> actorIds) - Specified by:
getActorsFromActorIdsin interfaceorg.bonitasoft.engine.api.ProcessManagementAPI
-
evaluateExpressionOnProcessDefinition
public Serializable evaluateExpressionOnProcessDefinition(org.bonitasoft.engine.expression.Expression expression, Map<String, Serializable> context, long processDefinitionId) throws org.bonitasoft.engine.expression.ExpressionEvaluationException- Specified by:
evaluateExpressionOnProcessDefinitionin interfaceorg.bonitasoft.engine.api.ProcessRuntimeAPI- Throws:
org.bonitasoft.engine.expression.ExpressionEvaluationException
-
updateDueDateOfTask
public void updateDueDateOfTask(long userTaskId, Date dueDate) throws org.bonitasoft.engine.exception.UpdateException - Specified by:
updateDueDateOfTaskin interfaceorg.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:
countCommentsin interfaceorg.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:
countAttachmentsin interfaceorg.bonitasoft.engine.api.ProcessRuntimeAPI- Throws:
org.bonitasoft.engine.exception.SearchException
-
sendSignal
public void sendSignal(String signalName) throws org.bonitasoft.engine.bpm.flownode.SendEventException - Specified by:
sendSignalin interfaceorg.bonitasoft.engine.api.ProcessRuntimeAPI- Throws:
org.bonitasoft.engine.bpm.flownode.SendEventException
-
sendMessage
public void sendMessage(String messageName, org.bonitasoft.engine.expression.Expression targetProcess, org.bonitasoft.engine.expression.Expression targetFlowNode, Map<org.bonitasoft.engine.expression.Expression, org.bonitasoft.engine.expression.Expression> messageContent) throws org.bonitasoft.engine.bpm.flownode.SendEventException- Specified by:
sendMessagein interfaceorg.bonitasoft.engine.api.ProcessRuntimeAPI- Throws:
org.bonitasoft.engine.bpm.flownode.SendEventException
-
sendMessage
public void sendMessage(String messageName, org.bonitasoft.engine.expression.Expression targetProcess, org.bonitasoft.engine.expression.Expression targetFlowNode, Map<org.bonitasoft.engine.expression.Expression, org.bonitasoft.engine.expression.Expression> messageContent, Map<org.bonitasoft.engine.expression.Expression, throws org.bonitasoft.engine.bpm.flownode.SendEventExceptionorg.bonitasoft.engine.expression.Expression> correlations) - Specified by:
sendMessagein interfaceorg.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:
deleteMessageByCreationDatein interfaceorg.bonitasoft.engine.api.ProcessRuntimeAPI- Throws:
org.bonitasoft.engine.exception.ExecutionException
-
getProcessResolutionProblems
public List<org.bonitasoft.engine.bpm.process.Problem> getProcessResolutionProblems(long processDefinitionId) throws org.bonitasoft.engine.bpm.process.ProcessDefinitionNotFoundException - Specified by:
getProcessResolutionProblemsin interfaceorg.bonitasoft.engine.api.ProcessManagementAPI- Throws:
org.bonitasoft.engine.bpm.process.ProcessDefinitionNotFoundException
-
getProcessDeploymentInfos
public List<org.bonitasoft.engine.bpm.process.ProcessDeploymentInfo> getProcessDeploymentInfos(int startIndex, int maxResults, org.bonitasoft.engine.bpm.process.ProcessDeploymentInfoCriterion pagingCriterion) - Specified by:
getProcessDeploymentInfosin interfaceorg.bonitasoft.engine.api.ProcessManagementAPI
-
getProcessDeploymentInfosWithActorOnlyForGroup
public List<org.bonitasoft.engine.bpm.process.ProcessDeploymentInfo> getProcessDeploymentInfosWithActorOnlyForGroup(long groupId, int startIndex, int maxResults, org.bonitasoft.engine.bpm.process.ProcessDeploymentInfoCriterion sortingCriterion) - Specified by:
getProcessDeploymentInfosWithActorOnlyForGroupin interfaceorg.bonitasoft.engine.api.ProcessManagementAPI
-
getProcessDeploymentInfosWithActorOnlyForGroups
public List<org.bonitasoft.engine.bpm.process.ProcessDeploymentInfo> getProcessDeploymentInfosWithActorOnlyForGroups(List<Long> groupIds, int startIndex, int maxResults, org.bonitasoft.engine.bpm.process.ProcessDeploymentInfoCriterion sortingCriterion) - Specified by:
getProcessDeploymentInfosWithActorOnlyForGroupsin interfaceorg.bonitasoft.engine.api.ProcessManagementAPI
-
getProcessDeploymentInfosWithActorOnlyForRole
public List<org.bonitasoft.engine.bpm.process.ProcessDeploymentInfo> getProcessDeploymentInfosWithActorOnlyForRole(long roleId, int startIndex, int maxResults, org.bonitasoft.engine.bpm.process.ProcessDeploymentInfoCriterion sortingCriterion) - Specified by:
getProcessDeploymentInfosWithActorOnlyForRolein interfaceorg.bonitasoft.engine.api.ProcessManagementAPI
-
getProcessDeploymentInfosWithActorOnlyForRoles
public List<org.bonitasoft.engine.bpm.process.ProcessDeploymentInfo> getProcessDeploymentInfosWithActorOnlyForRoles(List<Long> roleIds, int startIndex, int maxResults, org.bonitasoft.engine.bpm.process.ProcessDeploymentInfoCriterion sortingCriterion) - Specified by:
getProcessDeploymentInfosWithActorOnlyForRolesin interfaceorg.bonitasoft.engine.api.ProcessManagementAPI
-
getProcessDeploymentInfosWithActorOnlyForUser
public List<org.bonitasoft.engine.bpm.process.ProcessDeploymentInfo> getProcessDeploymentInfosWithActorOnlyForUser(long userId, int startIndex, int maxResults, org.bonitasoft.engine.bpm.process.ProcessDeploymentInfoCriterion sortingCriterion) - Specified by:
getProcessDeploymentInfosWithActorOnlyForUserin interfaceorg.bonitasoft.engine.api.ProcessManagementAPI
-
getProcessDeploymentInfosWithActorOnlyForUsers
public List<org.bonitasoft.engine.bpm.process.ProcessDeploymentInfo> getProcessDeploymentInfosWithActorOnlyForUsers(List<Long> userIds, int startIndex, int maxResults, org.bonitasoft.engine.bpm.process.ProcessDeploymentInfoCriterion sortingCriterion) - Specified by:
getProcessDeploymentInfosWithActorOnlyForUsersin interfaceorg.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:
searchConnectorInstancesin interfaceorg.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:
searchArchivedConnectorInstancesin interfaceorg.bonitasoft.engine.api.ProcessRuntimeAPI- Throws:
org.bonitasoft.engine.exception.RetrieveException
-
getHumanTaskInstances
public List<org.bonitasoft.engine.bpm.flownode.HumanTaskInstance> getHumanTaskInstances(long rootProcessInstanceId, String taskName, int startIndex, int maxResults) - Specified by:
getHumanTaskInstancesin interfaceorg.bonitasoft.engine.api.ProcessRuntimeAPI
-
getLastStateHumanTaskInstance
public org.bonitasoft.engine.bpm.flownode.HumanTaskInstance getLastStateHumanTaskInstance(long rootProcessInstanceId, String taskName) throws org.bonitasoft.engine.exception.NotFoundException - Specified by:
getLastStateHumanTaskInstancein interfaceorg.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:
searchUsersWhoCanStartProcessDefinitionin interfaceorg.bonitasoft.engine.api.ProcessManagementAPI- Throws:
org.bonitasoft.engine.exception.SearchException
-
evaluateExpressionsAtProcessInstanciation
public Map<String,Serializable> evaluateExpressionsAtProcessInstanciation(long processInstanceId, Map<org.bonitasoft.engine.expression.Expression, Map<String, throws org.bonitasoft.engine.expression.ExpressionEvaluationExceptionSerializable>> expressions) - Specified by:
evaluateExpressionsAtProcessInstanciationin interfaceorg.bonitasoft.engine.api.ProcessRuntimeAPI- Throws:
org.bonitasoft.engine.expression.ExpressionEvaluationException
-
evaluateExpressionOnCompletedProcessInstance
public Map<String,Serializable> evaluateExpressionOnCompletedProcessInstance(long processInstanceId, Map<org.bonitasoft.engine.expression.Expression, Map<String, throws org.bonitasoft.engine.expression.ExpressionEvaluationExceptionSerializable>> expressions) - Specified by:
evaluateExpressionOnCompletedProcessInstancein interfaceorg.bonitasoft.engine.api.ProcessRuntimeAPI- Throws:
org.bonitasoft.engine.expression.ExpressionEvaluationException
-
evaluateExpressionsOnProcessInstance
public Map<String,Serializable> evaluateExpressionsOnProcessInstance(long processInstanceId, Map<org.bonitasoft.engine.expression.Expression, Map<String, throws org.bonitasoft.engine.expression.ExpressionEvaluationExceptionSerializable>> expressions) - Specified by:
evaluateExpressionsOnProcessInstancein interfaceorg.bonitasoft.engine.api.ProcessRuntimeAPI- Throws:
org.bonitasoft.engine.expression.ExpressionEvaluationException
-
evaluateExpressionsOnProcessDefinition
public Map<String,Serializable> evaluateExpressionsOnProcessDefinition(long processDefinitionId, Map<org.bonitasoft.engine.expression.Expression, Map<String, throws org.bonitasoft.engine.expression.ExpressionEvaluationExceptionSerializable>> expressions) - Specified by:
evaluateExpressionsOnProcessDefinitionin interfaceorg.bonitasoft.engine.api.ProcessRuntimeAPI- Throws:
org.bonitasoft.engine.expression.ExpressionEvaluationException
-
evaluateExpressionsOnActivityInstance
public Map<String,Serializable> evaluateExpressionsOnActivityInstance(long activityInstanceId, Map<org.bonitasoft.engine.expression.Expression, Map<String, throws org.bonitasoft.engine.expression.ExpressionEvaluationExceptionSerializable>> expressions) - Specified by:
evaluateExpressionsOnActivityInstancein interfaceorg.bonitasoft.engine.api.ProcessRuntimeAPI- Throws:
org.bonitasoft.engine.expression.ExpressionEvaluationException
-
evaluateExpressionsOnCompletedActivityInstance
public Map<String,Serializable> evaluateExpressionsOnCompletedActivityInstance(long activityInstanceId, Map<org.bonitasoft.engine.expression.Expression, Map<String, throws org.bonitasoft.engine.expression.ExpressionEvaluationExceptionSerializable>> expressions) - Specified by:
evaluateExpressionsOnCompletedActivityInstancein interfaceorg.bonitasoft.engine.api.ProcessRuntimeAPI- Throws:
org.bonitasoft.engine.expression.ExpressionEvaluationException
-
createDefinitionLevelExpressionEvaluator
protected EvaluateExpressionsDefinitionLevel createDefinitionLevelExpressionEvaluator(Map<org.bonitasoft.engine.expression.Expression, Map<String, Serializable>> expressionsAndTheirPartialContext, long processDefinitionId, ExpressionResolverService expressionResolverService, ProcessDefinitionService processDefinitionService) -
createInstanceLevelExpressionEvaluator
protected EvaluateExpressionsInstanceLevel createInstanceLevelExpressionEvaluator(Map<org.bonitasoft.engine.expression.Expression, Map<String, Serializable>> expressions, long containerId, String containerType, long processDefinitionId, ExpressionResolverService expressionService) -
createInstanceAndArchivedLevelExpressionEvaluator
protected EvaluateExpressionsInstanceLevelAndArchived createInstanceAndArchivedLevelExpressionEvaluator(Map<org.bonitasoft.engine.expression.Expression, Map<String, Serializable>> expressions, long containerId, String containerType, long processDefinitionId, long time, ExpressionResolverService expressionService) -
getLastArchivedProcessInstance
protected org.bonitasoft.engine.bpm.process.ArchivedProcessInstance getLastArchivedProcessInstance(long processInstanceId) throws SBonitaException - Throws:
SBonitaException
-
getFailedJobs
- Specified by:
getFailedJobsin interfaceorg.bonitasoft.engine.api.ProcessRuntimeAPI
-
replayFailedJob
public void replayFailedJob(long jobDescriptorId) throws org.bonitasoft.engine.exception.ExecutionException - Specified by:
replayFailedJobin interfaceorg.bonitasoft.engine.api.ProcessRuntimeAPI- Throws:
org.bonitasoft.engine.exception.ExecutionException
-
replayFailedJob
public void replayFailedJob(long jobDescriptorId, Map<String, Serializable> parameters) throws org.bonitasoft.engine.exception.ExecutionException- Specified by:
replayFailedJobin interfaceorg.bonitasoft.engine.api.ProcessRuntimeAPI- Throws:
org.bonitasoft.engine.exception.ExecutionException
-
buildJobParametersFromMap
-
buildSJobParameter
-
getArchivedProcessDataInstance
public org.bonitasoft.engine.bpm.data.ArchivedDataInstance getArchivedProcessDataInstance(String dataName, long sourceProcessInstanceId) throws org.bonitasoft.engine.bpm.data.ArchivedDataNotFoundException - Specified by:
getArchivedProcessDataInstancein interfaceorg.bonitasoft.engine.api.ProcessRuntimeAPI- Throws:
org.bonitasoft.engine.bpm.data.ArchivedDataNotFoundException
-
getArchivedActivityDataInstance
public org.bonitasoft.engine.bpm.data.ArchivedDataInstance getArchivedActivityDataInstance(String dataName, long sourceActivityInstanceId) throws org.bonitasoft.engine.bpm.data.ArchivedDataNotFoundException - Specified by:
getArchivedActivityDataInstancein interfaceorg.bonitasoft.engine.api.ProcessRuntimeAPI- Throws:
org.bonitasoft.engine.bpm.data.ArchivedDataNotFoundException
-
getArchivedProcessDataInstances
public List<org.bonitasoft.engine.bpm.data.ArchivedDataInstance> getArchivedProcessDataInstances(long sourceProcessInstanceId, int startIndex, int maxResults) - Specified by:
getArchivedProcessDataInstancesin interfaceorg.bonitasoft.engine.api.ProcessRuntimeAPI
-
getArchivedActivityDataInstances
public List<org.bonitasoft.engine.bpm.data.ArchivedDataInstance> getArchivedActivityDataInstances(long sourceActivityInstanceId, int startIndex, int maxResults) - Specified by:
getArchivedActivityDataInstancesin interfaceorg.bonitasoft.engine.api.ProcessRuntimeAPI
-
getPossibleUsersOfPendingHumanTask
public List<org.bonitasoft.engine.identity.User> getPossibleUsersOfPendingHumanTask(long humanTaskInstanceId, int startIndex, int maxResults) - Specified by:
getPossibleUsersOfPendingHumanTaskin interfaceorg.bonitasoft.engine.api.ProcessRuntimeAPI
-
getPossibleUsersOfHumanTask
public List<org.bonitasoft.engine.identity.User> getPossibleUsersOfHumanTask(long processDefinitionId, String humanTaskName, int startIndex, int maxResults) - Specified by:
getPossibleUsersOfHumanTaskin interfaceorg.bonitasoft.engine.api.ProcessManagementAPI
-
getUserIdsForActor
public List<Long> getUserIdsForActor(long processDefinitionId, String actorName, int startIndex, int maxResults) - Specified by:
getUserIdsForActorin interfaceorg.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:
searchUsersWhoCanExecutePendingHumanTaskin interfaceorg.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:
searchAssignedAndPendingHumanTasksForin interfaceorg.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:
searchAssignedAndPendingHumanTasksin interfaceorg.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:
searchAssignedAndPendingHumanTasksin interfaceorg.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:
getUserTaskContractin interfaceorg.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:
getProcessContractin interfaceorg.bonitasoft.engine.api.ProcessRuntimeAPI- Throws:
org.bonitasoft.engine.bpm.process.ProcessDefinitionNotFoundException
-
executeUserTask
public void executeUserTask(long flownodeInstanceId, Map<String, Serializable> inputs) throws org.bonitasoft.engine.bpm.flownode.FlowNodeExecutionException, org.bonitasoft.engine.bpm.contract.ContractViolationException, org.bonitasoft.engine.bpm.flownode.UserTaskNotFoundException- Specified by:
executeUserTaskin interfaceorg.bonitasoft.engine.api.ProcessRuntimeAPI- Throws:
org.bonitasoft.engine.bpm.flownode.FlowNodeExecutionExceptionorg.bonitasoft.engine.bpm.contract.ContractViolationExceptionorg.bonitasoft.engine.bpm.flownode.UserTaskNotFoundException
-
executeUserTask
public void executeUserTask(long userId, long flownodeInstanceId, Map<String, Serializable> inputs) throws org.bonitasoft.engine.bpm.flownode.FlowNodeExecutionException, org.bonitasoft.engine.bpm.contract.ContractViolationException, org.bonitasoft.engine.bpm.flownode.UserTaskNotFoundException- Specified by:
executeUserTaskin interfaceorg.bonitasoft.engine.api.ProcessRuntimeAPI- Throws:
org.bonitasoft.engine.bpm.flownode.FlowNodeExecutionExceptionorg.bonitasoft.engine.bpm.contract.ContractViolationExceptionorg.bonitasoft.engine.bpm.flownode.UserTaskNotFoundException
-
executeFlowNode
protected void executeFlowNode(long userId, long flowNodeInstanceId, Map<String, Serializable> inputs, boolean shouldBeReadyTask) throws org.bonitasoft.engine.bpm.contract.ContractViolationException, SBonitaExceptionExecute a flow node. All methods that executes flow nodes and human tasks uses this one.- Parameters:
userId- the id of the user executing the taskshouldBeReadyTask- if true the method will only accept to execute human task in ready state- Throws:
org.bonitasoft.engine.bpm.contract.ContractViolationExceptionSBonitaException
-
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:
removeDocumentin interfaceorg.bonitasoft.engine.api.DocumentAPI- Throws:
org.bonitasoft.engine.bpm.document.DocumentNotFoundExceptionorg.bonitasoft.engine.exception.DeletionException
-
getDocumentList
public List<org.bonitasoft.engine.bpm.document.Document> getDocumentList(long processInstanceId, String name, int from, int numberOfResult) throws org.bonitasoft.engine.bpm.document.DocumentNotFoundException - Specified by:
getDocumentListin interfaceorg.bonitasoft.engine.api.DocumentAPI- Throws:
org.bonitasoft.engine.bpm.document.DocumentNotFoundException
-
setDocumentList
public void setDocumentList(long processInstanceId, String name, List<org.bonitasoft.engine.bpm.document.DocumentValue> documentsValues) throws org.bonitasoft.engine.bpm.document.DocumentException, org.bonitasoft.engine.bpm.document.DocumentNotFoundException - Specified by:
setDocumentListin interfaceorg.bonitasoft.engine.api.DocumentAPI- Throws:
org.bonitasoft.engine.bpm.document.DocumentExceptionorg.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:
deleteContentOfArchivedDocumentin interfaceorg.bonitasoft.engine.api.DocumentAPI- Throws:
org.bonitasoft.engine.bpm.document.DocumentExceptionorg.bonitasoft.engine.bpm.document.DocumentNotFoundException
-
getServiceAccessor
-
addDocument
public org.bonitasoft.engine.bpm.document.Document addDocument(long processInstanceId, String documentName, String description, org.bonitasoft.engine.bpm.document.DocumentValue documentValue) throws org.bonitasoft.engine.bpm.process.ProcessInstanceNotFoundException, org.bonitasoft.engine.bpm.document.DocumentAttachmentException, org.bonitasoft.engine.exception.AlreadyExistsException - Specified by:
addDocumentin interfaceorg.bonitasoft.engine.api.DocumentAPI- Throws:
org.bonitasoft.engine.bpm.process.ProcessInstanceNotFoundExceptionorg.bonitasoft.engine.bpm.document.DocumentAttachmentExceptionorg.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:
updateDocumentin interfaceorg.bonitasoft.engine.api.DocumentAPI- Throws:
org.bonitasoft.engine.bpm.process.ProcessInstanceNotFoundExceptionorg.bonitasoft.engine.bpm.document.DocumentAttachmentExceptionorg.bonitasoft.engine.exception.AlreadyExistsException
-
purgeClassLoader
public void purgeClassLoader(long processDefinitionId) throws org.bonitasoft.engine.bpm.process.ProcessDefinitionNotFoundException, org.bonitasoft.engine.exception.UpdateException - Specified by:
purgeClassLoaderin interfaceorg.bonitasoft.engine.api.ProcessManagementAPI- Throws:
org.bonitasoft.engine.bpm.process.ProcessDefinitionNotFoundExceptionorg.bonitasoft.engine.exception.UpdateException
-
getUserTaskContractVariableValue
public Serializable getUserTaskContractVariableValue(long userTaskInstanceId, String name) throws org.bonitasoft.engine.exception.ContractDataNotFoundException - Specified by:
getUserTaskContractVariableValuein interfaceorg.bonitasoft.engine.api.ProcessRuntimeAPI- Throws:
org.bonitasoft.engine.exception.ContractDataNotFoundException
-
getProcessInputValueDuringInitialization
public Serializable getProcessInputValueDuringInitialization(long processInstanceId, String name) throws org.bonitasoft.engine.exception.ContractDataNotFoundException - Specified by:
getProcessInputValueDuringInitializationin interfaceorg.bonitasoft.engine.api.ProcessRuntimeAPI- Throws:
org.bonitasoft.engine.exception.ContractDataNotFoundException
-
getProcessInputValueAfterInitialization
public Serializable getProcessInputValueAfterInitialization(long processInstanceId, String name) throws org.bonitasoft.engine.exception.ContractDataNotFoundException - Specified by:
getProcessInputValueAfterInitializationin interfaceorg.bonitasoft.engine.api.ProcessRuntimeAPI- Throws:
org.bonitasoft.engine.exception.ContractDataNotFoundException
-
getNumberOfParameterInstances
public int getNumberOfParameterInstances(long processDefinitionId) - Specified by:
getNumberOfParameterInstancesin interfaceorg.bonitasoft.engine.api.ProcessManagementAPI
-
getParameterInstance
public org.bonitasoft.engine.bpm.parameter.ParameterInstance getParameterInstance(long processDefinitionId, String parameterName) throws org.bonitasoft.engine.exception.NotFoundException - Specified by:
getParameterInstancein interfaceorg.bonitasoft.engine.api.ProcessManagementAPI- Throws:
org.bonitasoft.engine.exception.NotFoundException
-
getParameterInstances
public List<org.bonitasoft.engine.bpm.parameter.ParameterInstance> getParameterInstances(long processDefinitionId, int startIndex, int maxResults, org.bonitasoft.engine.bpm.parameter.ParameterCriterion sort) - Specified by:
getParameterInstancesin interfaceorg.bonitasoft.engine.api.ProcessManagementAPI
-
getUserTaskExecutionContext
public Map<String,Serializable> getUserTaskExecutionContext(long userTaskInstanceId) throws org.bonitasoft.engine.bpm.flownode.UserTaskNotFoundException, org.bonitasoft.engine.expression.ExpressionEvaluationException - Specified by:
getUserTaskExecutionContextin interfaceorg.bonitasoft.engine.api.ProcessRuntimeAPI- Throws:
org.bonitasoft.engine.bpm.flownode.UserTaskNotFoundExceptionorg.bonitasoft.engine.expression.ExpressionEvaluationException
-
getArchivedUserTaskExecutionContext
public Map<String,Serializable> getArchivedUserTaskExecutionContext(long archivedUserTaskInstanceId) throws org.bonitasoft.engine.bpm.flownode.UserTaskNotFoundException, org.bonitasoft.engine.expression.ExpressionEvaluationException - Specified by:
getArchivedUserTaskExecutionContextin interfaceorg.bonitasoft.engine.api.ProcessRuntimeAPI- Throws:
org.bonitasoft.engine.bpm.flownode.UserTaskNotFoundExceptionorg.bonitasoft.engine.expression.ExpressionEvaluationException
-
getProcessInstanceExecutionContext
public Map<String,Serializable> getProcessInstanceExecutionContext(long processInstanceId) throws org.bonitasoft.engine.bpm.process.ProcessInstanceNotFoundException, org.bonitasoft.engine.expression.ExpressionEvaluationException - Specified by:
getProcessInstanceExecutionContextin interfaceorg.bonitasoft.engine.api.ProcessRuntimeAPI- Throws:
org.bonitasoft.engine.bpm.process.ProcessInstanceNotFoundExceptionorg.bonitasoft.engine.expression.ExpressionEvaluationException
-
getArchivedProcessInstanceExecutionContext
public Map<String,Serializable> getArchivedProcessInstanceExecutionContext(long archivedProcessInstanceId) throws org.bonitasoft.engine.bpm.process.ProcessInstanceNotFoundException, org.bonitasoft.engine.expression.ExpressionEvaluationException - Specified by:
getArchivedProcessInstanceExecutionContextin interfaceorg.bonitasoft.engine.api.ProcessRuntimeAPI- Throws:
org.bonitasoft.engine.bpm.process.ProcessInstanceNotFoundExceptionorg.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:
searchFormMappingsin interfaceorg.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:
getFormMappingin interfaceorg.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:
updateProcessInstancein interfaceorg.bonitasoft.engine.api.ProcessRuntimeAPI- Throws:
org.bonitasoft.engine.bpm.process.ProcessInstanceNotFoundExceptionorg.bonitasoft.engine.exception.UpdateException
-
updateProcessInstanceIndex
public org.bonitasoft.engine.bpm.process.ProcessInstance updateProcessInstanceIndex(long processInstanceId, org.bonitasoft.engine.bpm.process.Index index, String value) throws org.bonitasoft.engine.bpm.process.ProcessInstanceNotFoundException, org.bonitasoft.engine.exception.UpdateException - Specified by:
updateProcessInstanceIndexin interfaceorg.bonitasoft.engine.api.ProcessRuntimeAPI- Throws:
org.bonitasoft.engine.bpm.process.ProcessInstanceNotFoundExceptionorg.bonitasoft.engine.exception.UpdateException
-