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