public class ProcessAPIImpl
extends java.lang.Object
implements org.bonitasoft.engine.api.ProcessAPI
| Modifier and Type | Field and Description |
|---|---|
protected ProcessConfigurationAPIImpl |
processConfigurationAPI |
| Constructor and Description |
|---|
ProcessAPIImpl() |
ProcessAPIImpl(ProcessManagementAPIImplDelegate processManagementAPIDelegate,
org.bonitasoft.engine.api.DocumentAPI documentAPI,
ProcessConfigurationAPIImpl processConfigurationAPI,
TaskInvolvementDelegate taskInvolvementDelegate,
ProcessInvolvementDelegate processInvolvementDelegate) |
| Modifier and Type | Method and Description |
|---|---|
void |
addCategoriesToProcess(long processDefinitionId,
java.util.List<java.lang.Long> categoryIds) |
org.bonitasoft.engine.bpm.document.Document |
addDocument(long processInstanceId,
java.lang.String documentName,
java.lang.String description,
org.bonitasoft.engine.bpm.document.DocumentValue documentValue) |
org.bonitasoft.engine.bpm.actor.ActorMember |
addGroupToActor(long actorId,
long groupId) |
org.bonitasoft.engine.bpm.actor.ActorMember |
addGroupToActor(java.lang.String actorName,
long groupId,
org.bonitasoft.engine.bpm.process.ProcessDefinition processDefinition) |
org.bonitasoft.engine.bpm.comment.Comment |
addProcessComment(long processInstanceId,
java.lang.String comment) |
org.bonitasoft.engine.bpm.comment.Comment |
addProcessCommentOnBehalfOfUser(long processInstanceId,
java.lang.String comment,
long userId) |
void |
addProcessDefinitionsToCategory(long categoryId,
java.util.List<java.lang.Long> processDefinitionIds) |
void |
addProcessDefinitionToCategory(long categoryId,
long processDefinitionId) |
org.bonitasoft.engine.bpm.actor.ActorMember |
addRoleAndGroupToActor(long actorId,
long roleId,
long groupId) |
org.bonitasoft.engine.bpm.actor.ActorMember |
addRoleAndGroupToActor(java.lang.String actorName,
org.bonitasoft.engine.bpm.process.ProcessDefinition processDefinition,
long roleId,
long groupId) |
org.bonitasoft.engine.bpm.actor.ActorMember |
addRoleToActor(long actorId,
long roleId) |
org.bonitasoft.engine.bpm.actor.ActorMember |
addRoleToActor(java.lang.String actorName,
org.bonitasoft.engine.bpm.process.ProcessDefinition processDefinition,
long roleId) |
org.bonitasoft.engine.bpm.actor.ActorMember |
addUserToActor(long actorId,
long userId) |
org.bonitasoft.engine.bpm.actor.ActorMember |
addUserToActor(java.lang.String actorName,
org.bonitasoft.engine.bpm.process.ProcessDefinition processDefinition,
long userId) |
void |
assignAndExecuteUserTask(long userId,
long userTaskInstanceId,
java.util.Map<java.lang.String,java.io.Serializable> inputs) |
void |
assignUserTask(long userTaskId,
long userId) |
void |
assignUserTaskIfNotAssigned(long userTaskId,
long userId) |
org.bonitasoft.engine.bpm.document.Document |
attachDocument(long processInstanceId,
java.lang.String documentName,
java.lang.String fileName,
java.lang.String mimeType,
byte[] documentContent) |
org.bonitasoft.engine.bpm.document.Document |
attachDocument(long processInstanceId,
java.lang.String documentName,
java.lang.String fileName,
java.lang.String mimeType,
java.lang.String url) |
org.bonitasoft.engine.bpm.document.Document |
attachNewDocumentVersion(long processInstanceId,
java.lang.String documentName,
java.lang.String contentFileName,
java.lang.String contentMimeType,
byte[] documentContent) |
org.bonitasoft.engine.bpm.document.Document |
attachNewDocumentVersion(long processInstanceId,
java.lang.String documentName,
java.lang.String fileName,
java.lang.String mimeType,
java.lang.String url) |
protected ProcessInstanceInterruptor |
buildProcessInstanceInterruptor(TenantServiceAccessor tenantAccessor) |
protected SJobParameter |
buildSJobParameter(java.lang.String parameterKey,
java.io.Serializable parameterValue) |
void |
cancelProcessInstance(long processInstanceId) |
boolean |
canExecuteTask(long activityInstanceId,
long userId) |
protected void |
checkConnectorParameters(java.util.Map<java.lang.String,org.bonitasoft.engine.expression.Expression> connectorInputParameters,
java.util.Map<java.lang.String,java.util.Map<java.lang.String,java.io.Serializable>> inputValues) |
protected org.bonitasoft.engine.bpm.data.DataInstance |
convertModeltoDataInstance(SDataInstance data)
isolate static call for mocking reasons
|
protected java.util.List<org.bonitasoft.engine.bpm.data.DataInstance> |
convertModelToDataInstances(java.util.List<SDataInstance> dataInstances)
isolate static call for mocking reasons
|
protected SOperation |
convertOperation(org.bonitasoft.engine.operation.Operation operation) |
protected java.util.List<SOperation> |
convertOperations(java.util.List<org.bonitasoft.engine.operation.Operation> operations) |
long |
countAttachments(org.bonitasoft.engine.search.SearchOptions searchOptions) |
long |
countComments(org.bonitasoft.engine.search.SearchOptions searchOptions) |
org.bonitasoft.engine.bpm.category.Category |
createCategory(java.lang.String name,
java.lang.String description) |
protected EvaluateExpressionsDefinitionLevel |
createDefinitionLevelExpressionEvaluator(java.util.Map<org.bonitasoft.engine.expression.Expression,java.util.Map<java.lang.String,java.io.Serializable>> expressionsAndTheirPartialContext,
long processDefinitionId,
ExpressionResolverService expressionResolverService,
ProcessDefinitionService processDefinitionService) |
protected EvaluateExpressionsInstanceLevelAndArchived |
createInstanceAndArchivedLevelExpressionEvaluator(java.util.Map<org.bonitasoft.engine.expression.Expression,java.util.Map<java.lang.String,java.io.Serializable>> expressions,
long containerId,
java.lang.String containerType,
long processDefinitionId,
long time,
ExpressionResolverService expressionService) |
protected EvaluateExpressionsInstanceLevel |
createInstanceLevelExpressionEvaluator(java.util.Map<org.bonitasoft.engine.expression.Expression,java.util.Map<java.lang.String,java.io.Serializable>> expressions,
long containerId,
java.lang.String containerType,
long processDefinitionId,
ExpressionResolverService expressionService) |
org.bonitasoft.engine.bpm.supervisor.ProcessSupervisor |
createProcessSupervisorForGroup(long processDefinitionId,
long groupId) |
org.bonitasoft.engine.bpm.supervisor.ProcessSupervisor |
createProcessSupervisorForMembership(long processDefinitionId,
long groupId,
long roleId) |
org.bonitasoft.engine.bpm.supervisor.ProcessSupervisor |
createProcessSupervisorForRole(long processDefinitionId,
long roleId) |
org.bonitasoft.engine.bpm.supervisor.ProcessSupervisor |
createProcessSupervisorForUser(long processDefinitionId,
long userId) |
protected SearchFailedProcessInstancesSupervisedBy |
createSearchFailedProcessInstancesSupervisedBy(long userId,
org.bonitasoft.engine.search.SearchOptions searchOptions,
ProcessInstanceService processInstanceService,
SearchEntitiesDescriptor searchEntitiesDescriptor,
ProcessDefinitionService processDefinitionService) |
protected java.util.List<org.bonitasoft.engine.operation.Operation> |
createSetDataOperation(long processDefinitionId,
java.util.Map<java.lang.String,java.io.Serializable> initialVariables) |
protected GetSUser |
createTxUserGetter(long userId,
IdentityService identityService) |
long |
deleteArchivedProcessInstances(long processDefinitionId,
int startIndex,
int maxResults) |
long |
deleteArchivedProcessInstancesInAllStates(java.util.List<java.lang.Long> sourceProcessInstanceIds) |
long |
deleteArchivedProcessInstancesInAllStates(long sourceProcessInstanceId) |
void |
deleteCategory(long categoryId) |
void |
deleteContentOfArchivedDocument(long archivedDocumentId) |
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,
java.util.List<org.bonitasoft.engine.operation.Operation> operations,
java.util.Map<java.lang.String,java.io.Serializable> operationInputValues,
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,
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.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 SJobParameterBuilderFactory |
getSJobParameterBuilderFactory() |
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> |
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 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) |
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.Map<java.lang.String,java.io.Serializable> initialVariables) |
org.bonitasoft.engine.bpm.process.ProcessInstance |
startProcessWithInputs(long userId,
long processDefinitionId,
java.util.Map<java.lang.String,java.io.Serializable> instantiationInputs) |
org.bonitasoft.engine.bpm.process.ProcessInstance |
startProcessWithInputs(long processDefinitionId,
java.util.Map<java.lang.String,java.io.Serializable> instantiationInputs) |
protected org.bonitasoft.engine.bpm.process.ArchivedProcessInstance |
toArchivedProcessInstance(SAProcessInstance archivedProcessInstance,
SProcessDefinition sProcessDefinition)
internal use for mocking purpose
|
void |
updateActivityDataInstance(java.lang.String dataName,
long activityInstanceId,
java.io.Serializable dataValue) |
void |
updateActivityInstanceVariables(java.util.List<org.bonitasoft.engine.operation.Operation> operations,
long activityInstanceId,
java.util.Map<java.lang.String,java.io.Serializable> expressionContexts) |
void |
updateActivityInstanceVariables(long activityInstanceId,
java.util.Map<java.lang.String,java.io.Serializable> variables) |
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) |
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) |
protected final ProcessConfigurationAPIImpl processConfigurationAPI
public ProcessAPIImpl()
public ProcessAPIImpl(ProcessManagementAPIImplDelegate processManagementAPIDelegate, org.bonitasoft.engine.api.DocumentAPI documentAPI, ProcessConfigurationAPIImpl processConfigurationAPI, TaskInvolvementDelegate taskInvolvementDelegate, ProcessInvolvementDelegate processInvolvementDelegate)
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
searchHumanTaskInstances in interface org.bonitasoft.engine.api.ProcessRuntimeAPIorg.bonitasoft.engine.exception.SearchExceptionpublic void deleteProcessDefinition(long processDefinitionId)
throws org.bonitasoft.engine.exception.DeletionException
deleteProcessDefinition in interface org.bonitasoft.engine.api.ProcessManagementAPIorg.bonitasoft.engine.exception.DeletionExceptionpublic void deleteProcessDefinitions(java.util.List<java.lang.Long> processDefinitionIds)
throws org.bonitasoft.engine.exception.DeletionException
deleteProcessDefinitions in interface org.bonitasoft.engine.api.ProcessManagementAPIorg.bonitasoft.engine.exception.DeletionExceptionpublic 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
deployAndEnableProcess in interface org.bonitasoft.engine.api.ProcessManagementAPIorg.bonitasoft.engine.bpm.process.ProcessDeployExceptionorg.bonitasoft.engine.bpm.process.ProcessEnablementExceptionorg.bonitasoft.engine.exception.AlreadyExistsExceptionorg.bonitasoft.engine.bpm.process.InvalidProcessDefinitionExceptionpublic 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
deployAndEnableProcess in interface org.bonitasoft.engine.api.ProcessManagementAPIorg.bonitasoft.engine.bpm.process.ProcessDeployExceptionorg.bonitasoft.engine.bpm.process.ProcessEnablementExceptionorg.bonitasoft.engine.exception.AlreadyExistsExceptionpublic 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
deploy in interface org.bonitasoft.engine.api.ProcessManagementAPIorg.bonitasoft.engine.exception.AlreadyExistsExceptionorg.bonitasoft.engine.bpm.process.ProcessDeployExceptionpublic 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
deploy in interface org.bonitasoft.engine.api.ProcessManagementAPIorg.bonitasoft.engine.bpm.process.ProcessDeployExceptionorg.bonitasoft.engine.exception.AlreadyExistsExceptionpublic void importActorMapping(long pDefinitionId,
byte[] actorMappingXML)
throws org.bonitasoft.engine.bpm.actor.ActorMappingImportException
importActorMapping in interface org.bonitasoft.engine.api.ProcessManagementAPIorg.bonitasoft.engine.bpm.actor.ActorMappingImportExceptionpublic byte[] exportBarProcessContentUnderHome(long processDefinitionId)
throws org.bonitasoft.engine.bpm.process.ProcessExportException
exportBarProcessContentUnderHome in interface org.bonitasoft.engine.api.ProcessManagementAPIorg.bonitasoft.engine.bpm.process.ProcessExportExceptionpublic void disableAndDeleteProcessDefinition(long processDefinitionId)
throws org.bonitasoft.engine.bpm.process.ProcessDefinitionNotFoundException,
org.bonitasoft.engine.bpm.process.ProcessActivationException,
org.bonitasoft.engine.exception.DeletionException
disableAndDeleteProcessDefinition in interface org.bonitasoft.engine.api.ProcessManagementAPIorg.bonitasoft.engine.bpm.process.ProcessDefinitionNotFoundExceptionorg.bonitasoft.engine.bpm.process.ProcessActivationExceptionorg.bonitasoft.engine.exception.DeletionExceptionpublic void disableProcess(long processDefinitionId)
throws org.bonitasoft.engine.bpm.process.ProcessDefinitionNotFoundException,
org.bonitasoft.engine.bpm.process.ProcessActivationException
disableProcess in interface org.bonitasoft.engine.api.ProcessManagementAPIorg.bonitasoft.engine.bpm.process.ProcessDefinitionNotFoundExceptionorg.bonitasoft.engine.bpm.process.ProcessActivationExceptionpublic void enableProcess(long processDefinitionId)
throws org.bonitasoft.engine.bpm.process.ProcessDefinitionNotFoundException,
org.bonitasoft.engine.bpm.process.ProcessEnablementException
enableProcess in interface org.bonitasoft.engine.api.ProcessManagementAPIorg.bonitasoft.engine.bpm.process.ProcessDefinitionNotFoundExceptionorg.bonitasoft.engine.bpm.process.ProcessEnablementExceptionpublic void executeFlowNode(long flownodeInstanceId)
throws org.bonitasoft.engine.bpm.flownode.FlowNodeExecutionException
executeFlowNode in interface org.bonitasoft.engine.api.ProcessRuntimeAPIorg.bonitasoft.engine.bpm.flownode.FlowNodeExecutionExceptionpublic void executeFlowNode(long userId,
long flownodeInstanceId)
throws org.bonitasoft.engine.bpm.flownode.FlowNodeExecutionException
executeFlowNode in interface org.bonitasoft.engine.api.ProcessRuntimeAPIorg.bonitasoft.engine.bpm.flownode.FlowNodeExecutionExceptionpublic java.util.List<org.bonitasoft.engine.bpm.flownode.ActivityInstance> getActivities(long processInstanceId,
int startIndex,
int maxResults)
getActivities in interface org.bonitasoft.engine.api.ProcessRuntimeAPIpublic long getNumberOfProcessDeploymentInfos()
getNumberOfProcessDeploymentInfos in interface org.bonitasoft.engine.api.ProcessManagementAPIpublic org.bonitasoft.engine.bpm.process.ProcessDefinition getProcessDefinition(long processDefinitionId)
throws org.bonitasoft.engine.bpm.process.ProcessDefinitionNotFoundException
getProcessDefinition in interface org.bonitasoft.engine.api.ProcessManagementAPIorg.bonitasoft.engine.bpm.process.ProcessDefinitionNotFoundExceptionpublic org.bonitasoft.engine.bpm.process.DesignProcessDefinition getDesignProcessDefinition(long processDefinitionId)
throws org.bonitasoft.engine.bpm.process.ProcessDefinitionNotFoundException
getDesignProcessDefinition in interface org.bonitasoft.engine.api.ProcessManagementAPIorg.bonitasoft.engine.bpm.process.ProcessDefinitionNotFoundExceptionpublic org.bonitasoft.engine.bpm.process.ProcessDeploymentInfo getProcessDeploymentInfo(long processDefinitionId)
throws org.bonitasoft.engine.bpm.process.ProcessDefinitionNotFoundException
getProcessDeploymentInfo in interface org.bonitasoft.engine.api.ProcessManagementAPIorg.bonitasoft.engine.bpm.process.ProcessDefinitionNotFoundExceptionpublic org.bonitasoft.engine.bpm.process.ProcessInstance getProcessInstance(long processInstanceId)
throws org.bonitasoft.engine.bpm.process.ProcessInstanceNotFoundException
getProcessInstance in interface org.bonitasoft.engine.api.ProcessRuntimeAPIorg.bonitasoft.engine.bpm.process.ProcessInstanceNotFoundExceptionprotected SProcessInstance getSProcessInstance(long processInstanceId) throws SProcessInstanceNotFoundException, SProcessInstanceReadException
public java.util.List<org.bonitasoft.engine.bpm.process.ArchivedProcessInstance> getArchivedProcessInstances(long processInstanceId,
int startIndex,
int maxResults)
getArchivedProcessInstances in interface org.bonitasoft.engine.api.ProcessRuntimeAPIpublic org.bonitasoft.engine.bpm.process.ArchivedProcessInstance getArchivedProcessInstance(long id)
throws org.bonitasoft.engine.bpm.process.ArchivedProcessInstanceNotFoundException,
org.bonitasoft.engine.exception.RetrieveException
getArchivedProcessInstance in interface org.bonitasoft.engine.api.ProcessRuntimeAPIorg.bonitasoft.engine.bpm.process.ArchivedProcessInstanceNotFoundExceptionorg.bonitasoft.engine.exception.RetrieveExceptionprotected org.bonitasoft.engine.bpm.process.ArchivedProcessInstance toArchivedProcessInstance(SAProcessInstance archivedProcessInstance, SProcessDefinition sProcessDefinition)
public org.bonitasoft.engine.bpm.process.ArchivedProcessInstance getFinalArchivedProcessInstance(long sourceProcessInstanceId)
throws org.bonitasoft.engine.bpm.process.ArchivedProcessInstanceNotFoundException
getFinalArchivedProcessInstance in interface org.bonitasoft.engine.api.ProcessRuntimeAPIorg.bonitasoft.engine.bpm.process.ArchivedProcessInstanceNotFoundExceptionpublic org.bonitasoft.engine.bpm.process.ProcessInstance startProcess(long processDefinitionId)
throws org.bonitasoft.engine.bpm.process.ProcessActivationException,
org.bonitasoft.engine.bpm.process.ProcessExecutionException
startProcess in interface org.bonitasoft.engine.api.ProcessRuntimeAPIorg.bonitasoft.engine.bpm.process.ProcessActivationExceptionorg.bonitasoft.engine.bpm.process.ProcessExecutionExceptionpublic 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
startProcess in interface org.bonitasoft.engine.api.ProcessRuntimeAPIorg.bonitasoft.engine.bpm.process.ProcessDefinitionNotFoundExceptionorg.bonitasoft.engine.bpm.process.ProcessExecutionExceptionorg.bonitasoft.engine.bpm.process.ProcessActivationExceptionpublic int getNumberOfActors(long processDefinitionId)
throws org.bonitasoft.engine.bpm.process.ProcessDefinitionNotFoundException
getNumberOfActors in interface org.bonitasoft.engine.api.ProcessManagementAPIorg.bonitasoft.engine.bpm.process.ProcessDefinitionNotFoundExceptionpublic java.util.List<org.bonitasoft.engine.bpm.actor.ActorInstance> getActors(long processDefinitionId,
int startIndex,
int maxResults,
org.bonitasoft.engine.bpm.actor.ActorCriterion sort)
getActors in interface org.bonitasoft.engine.api.ProcessManagementAPIpublic java.util.List<org.bonitasoft.engine.bpm.actor.ActorMember> getActorMembers(long actorId,
int startIndex,
int maxResults)
getActorMembers in interface org.bonitasoft.engine.api.ProcessManagementAPIpublic long getNumberOfActorMembers(long actorId)
getNumberOfActorMembers in interface org.bonitasoft.engine.api.ProcessManagementAPIpublic long getNumberOfUsersOfActor(long actorId)
getNumberOfUsersOfActor in interface org.bonitasoft.engine.api.ProcessManagementAPIpublic long getNumberOfRolesOfActor(long actorId)
getNumberOfRolesOfActor in interface org.bonitasoft.engine.api.ProcessManagementAPIpublic long getNumberOfGroupsOfActor(long actorId)
getNumberOfGroupsOfActor in interface org.bonitasoft.engine.api.ProcessManagementAPIpublic long getNumberOfMembershipsOfActor(long actorId)
getNumberOfMembershipsOfActor in interface org.bonitasoft.engine.api.ProcessManagementAPIpublic 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
updateActor in interface org.bonitasoft.engine.api.ProcessManagementAPIorg.bonitasoft.engine.bpm.actor.ActorNotFoundExceptionorg.bonitasoft.engine.exception.UpdateExceptionpublic org.bonitasoft.engine.bpm.actor.ActorMember addUserToActor(long actorId,
long userId)
throws org.bonitasoft.engine.exception.CreationException
addUserToActor in interface org.bonitasoft.engine.api.ProcessManagementAPIorg.bonitasoft.engine.exception.CreationExceptionpublic 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
addUserToActor in interface org.bonitasoft.engine.api.ProcessManagementAPIorg.bonitasoft.engine.exception.CreationExceptionorg.bonitasoft.engine.bpm.actor.ActorNotFoundExceptionpublic org.bonitasoft.engine.bpm.actor.ActorMember addGroupToActor(long actorId,
long groupId)
throws org.bonitasoft.engine.exception.CreationException
addGroupToActor in interface org.bonitasoft.engine.api.ProcessManagementAPIorg.bonitasoft.engine.exception.CreationExceptionpublic 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
addGroupToActor in interface org.bonitasoft.engine.api.ProcessManagementAPIorg.bonitasoft.engine.exception.CreationExceptionorg.bonitasoft.engine.bpm.actor.ActorNotFoundExceptionpublic org.bonitasoft.engine.bpm.actor.ActorMember addRoleToActor(long actorId,
long roleId)
throws org.bonitasoft.engine.exception.CreationException
addRoleToActor in interface org.bonitasoft.engine.api.ProcessManagementAPIorg.bonitasoft.engine.exception.CreationExceptionpublic 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
addRoleToActor in interface org.bonitasoft.engine.api.ProcessManagementAPIorg.bonitasoft.engine.bpm.actor.ActorNotFoundExceptionorg.bonitasoft.engine.exception.CreationExceptionpublic 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
addRoleAndGroupToActor in interface org.bonitasoft.engine.api.ProcessManagementAPIorg.bonitasoft.engine.bpm.actor.ActorNotFoundExceptionorg.bonitasoft.engine.exception.CreationExceptionpublic org.bonitasoft.engine.bpm.actor.ActorMember addRoleAndGroupToActor(long actorId,
long roleId,
long groupId)
throws org.bonitasoft.engine.exception.CreationException
addRoleAndGroupToActor in interface org.bonitasoft.engine.api.ProcessManagementAPIorg.bonitasoft.engine.exception.CreationExceptionpublic void removeActorMember(long actorMemberId)
throws org.bonitasoft.engine.exception.DeletionException
removeActorMember in interface org.bonitasoft.engine.api.ProcessManagementAPIorg.bonitasoft.engine.exception.DeletionExceptionpublic org.bonitasoft.engine.bpm.actor.ActorInstance getActor(long actorId)
throws org.bonitasoft.engine.bpm.actor.ActorNotFoundException
getActor in interface org.bonitasoft.engine.api.ProcessManagementAPIorg.bonitasoft.engine.bpm.actor.ActorNotFoundExceptionpublic org.bonitasoft.engine.bpm.flownode.ActivityInstance getActivityInstance(long activityInstanceId)
throws org.bonitasoft.engine.bpm.flownode.ActivityInstanceNotFoundException
getActivityInstance in interface org.bonitasoft.engine.api.ProcessRuntimeAPIorg.bonitasoft.engine.bpm.flownode.ActivityInstanceNotFoundExceptionprotected SActivityInstance getSActivityInstance(long activityInstanceId) throws SActivityInstanceNotFoundException, SActivityReadException
public org.bonitasoft.engine.bpm.flownode.FlowNodeInstance getFlowNodeInstance(long flowNodeInstanceId)
throws org.bonitasoft.engine.bpm.flownode.FlowNodeInstanceNotFoundException
getFlowNodeInstance in interface org.bonitasoft.engine.api.ProcessRuntimeAPIorg.bonitasoft.engine.bpm.flownode.FlowNodeInstanceNotFoundExceptionpublic java.util.List<org.bonitasoft.engine.bpm.flownode.HumanTaskInstance> getAssignedHumanTaskInstances(long userId,
int startIndex,
int maxResults,
org.bonitasoft.engine.bpm.flownode.ActivityInstanceCriterion pagingCriterion)
getAssignedHumanTaskInstances in interface org.bonitasoft.engine.api.ProcessRuntimeAPIpublic long getNumberOfPendingHumanTaskInstances(long userId)
getNumberOfPendingHumanTaskInstances in interface org.bonitasoft.engine.api.ProcessRuntimeAPIpublic java.util.List<org.bonitasoft.engine.bpm.flownode.HumanTaskInstance> getPendingHumanTaskInstances(long userId,
int startIndex,
int maxResults,
org.bonitasoft.engine.bpm.flownode.ActivityInstanceCriterion pagingCriterion)
getPendingHumanTaskInstances in interface org.bonitasoft.engine.api.ProcessRuntimeAPIpublic org.bonitasoft.engine.bpm.flownode.ArchivedActivityInstance getArchivedActivityInstance(long sourceActivityInstanceId)
throws org.bonitasoft.engine.bpm.flownode.ActivityInstanceNotFoundException
getArchivedActivityInstance in interface org.bonitasoft.engine.api.ProcessRuntimeAPIorg.bonitasoft.engine.bpm.flownode.ActivityInstanceNotFoundExceptionpublic org.bonitasoft.engine.bpm.flownode.ArchivedFlowNodeInstance getArchivedFlowNodeInstance(long archivedFlowNodeInstanceId)
throws org.bonitasoft.engine.bpm.flownode.ArchivedFlowNodeInstanceNotFoundException,
org.bonitasoft.engine.exception.RetrieveException
getArchivedFlowNodeInstance in interface org.bonitasoft.engine.api.ProcessRuntimeAPIorg.bonitasoft.engine.bpm.flownode.ArchivedFlowNodeInstanceNotFoundExceptionorg.bonitasoft.engine.exception.RetrieveExceptionpublic java.util.List<org.bonitasoft.engine.bpm.process.ProcessInstance> getProcessInstances(int startIndex,
int maxResults,
org.bonitasoft.engine.bpm.process.ProcessInstanceCriterion criterion)
getProcessInstances in interface org.bonitasoft.engine.api.ProcessRuntimeAPIpublic long getNumberOfProcessInstances()
getNumberOfProcessInstances in interface org.bonitasoft.engine.api.ProcessRuntimeAPIprotected org.bonitasoft.engine.search.SearchResult<org.bonitasoft.engine.bpm.process.ProcessInstance> searchProcessInstances(TenantServiceAccessor tenantAccessor, org.bonitasoft.engine.search.SearchOptions searchOptions) throws SBonitaException
SBonitaExceptionpublic java.util.List<org.bonitasoft.engine.bpm.process.ArchivedProcessInstance> getArchivedProcessInstances(int startIndex,
int maxResults,
org.bonitasoft.engine.bpm.process.ProcessInstanceCriterion criterion)
getArchivedProcessInstances in interface org.bonitasoft.engine.api.ProcessRuntimeAPIpublic long getNumberOfArchivedProcessInstances()
getNumberOfArchivedProcessInstances in interface org.bonitasoft.engine.api.ProcessRuntimeAPIpublic 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
searchArchivedProcessInstances in interface org.bonitasoft.engine.api.ProcessRuntimeAPIorg.bonitasoft.engine.exception.RetrieveExceptionorg.bonitasoft.engine.exception.SearchExceptionpublic org.bonitasoft.engine.search.SearchResult<org.bonitasoft.engine.bpm.process.ArchivedProcessInstance> searchArchivedProcessInstancesInAllStates(org.bonitasoft.engine.search.SearchOptions searchOptions)
throws org.bonitasoft.engine.exception.SearchException
searchArchivedProcessInstancesInAllStates in interface org.bonitasoft.engine.api.ProcessRuntimeAPIorg.bonitasoft.engine.exception.SearchExceptionpublic java.util.List<org.bonitasoft.engine.bpm.flownode.ActivityInstance> getOpenActivityInstances(long processInstanceId,
int startIndex,
int maxResults,
org.bonitasoft.engine.bpm.flownode.ActivityInstanceCriterion criterion)
getOpenActivityInstances in interface org.bonitasoft.engine.api.ProcessRuntimeAPIpublic java.util.List<org.bonitasoft.engine.bpm.flownode.ArchivedActivityInstance> getArchivedActivityInstances(long processInstanceId,
int startIndex,
int maxResults,
org.bonitasoft.engine.bpm.flownode.ActivityInstanceCriterion criterion)
getArchivedActivityInstances in interface org.bonitasoft.engine.api.ProcessRuntimeAPIpublic int getNumberOfOpenedActivityInstances(long processInstanceId)
getNumberOfOpenedActivityInstances in interface org.bonitasoft.engine.api.ProcessRuntimeAPIpublic 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
createCategory in interface org.bonitasoft.engine.api.ProcessManagementAPIorg.bonitasoft.engine.exception.AlreadyExistsExceptionorg.bonitasoft.engine.exception.CreationExceptionpublic org.bonitasoft.engine.bpm.category.Category getCategory(long categoryId)
throws org.bonitasoft.engine.bpm.category.CategoryNotFoundException
getCategory in interface org.bonitasoft.engine.api.ProcessManagementAPIorg.bonitasoft.engine.bpm.category.CategoryNotFoundExceptionpublic long getNumberOfCategories()
getNumberOfCategories in interface org.bonitasoft.engine.api.ProcessManagementAPIpublic java.util.List<org.bonitasoft.engine.bpm.category.Category> getCategories(int startIndex,
int maxResults,
org.bonitasoft.engine.bpm.category.CategoryCriterion sortCriterion)
getCategories in interface org.bonitasoft.engine.api.ProcessManagementAPIpublic void addCategoriesToProcess(long processDefinitionId,
java.util.List<java.lang.Long> categoryIds)
throws org.bonitasoft.engine.exception.AlreadyExistsException,
org.bonitasoft.engine.exception.CreationException
addCategoriesToProcess in interface org.bonitasoft.engine.api.ProcessManagementAPIorg.bonitasoft.engine.exception.AlreadyExistsExceptionorg.bonitasoft.engine.exception.CreationExceptionpublic void removeCategoriesFromProcess(long processDefinitionId,
java.util.List<java.lang.Long> categoryIds)
throws org.bonitasoft.engine.exception.DeletionException
removeCategoriesFromProcess in interface org.bonitasoft.engine.api.ProcessManagementAPIorg.bonitasoft.engine.exception.DeletionExceptionpublic void addProcessDefinitionToCategory(long categoryId,
long processDefinitionId)
throws org.bonitasoft.engine.exception.AlreadyExistsException,
org.bonitasoft.engine.exception.CreationException
addProcessDefinitionToCategory in interface org.bonitasoft.engine.api.ProcessManagementAPIorg.bonitasoft.engine.exception.AlreadyExistsExceptionorg.bonitasoft.engine.exception.CreationExceptionpublic void addProcessDefinitionsToCategory(long categoryId,
java.util.List<java.lang.Long> processDefinitionIds)
throws org.bonitasoft.engine.exception.AlreadyExistsException,
org.bonitasoft.engine.exception.CreationException
addProcessDefinitionsToCategory in interface org.bonitasoft.engine.api.ProcessManagementAPIorg.bonitasoft.engine.exception.AlreadyExistsExceptionorg.bonitasoft.engine.exception.CreationExceptionpublic long getNumberOfCategories(long processDefinitionId)
getNumberOfCategories in interface org.bonitasoft.engine.api.ProcessManagementAPIpublic long getNumberOfProcessDefinitionsOfCategory(long categoryId)
getNumberOfProcessDefinitionsOfCategory in interface org.bonitasoft.engine.api.ProcessManagementAPIpublic java.util.List<org.bonitasoft.engine.bpm.process.ProcessDeploymentInfo> getProcessDeploymentInfosOfCategory(long categoryId,
int startIndex,
int maxResults,
org.bonitasoft.engine.bpm.process.ProcessDeploymentInfoCriterion sortCriterion)
getProcessDeploymentInfosOfCategory in interface org.bonitasoft.engine.api.ProcessManagementAPIpublic java.util.List<org.bonitasoft.engine.bpm.category.Category> getCategoriesOfProcessDefinition(long processDefinitionId,
int startIndex,
int maxResults,
org.bonitasoft.engine.bpm.category.CategoryCriterion sortingCriterion)
getCategoriesOfProcessDefinition in interface org.bonitasoft.engine.api.ProcessManagementAPIpublic java.util.List<org.bonitasoft.engine.bpm.category.Category> getCategoriesUnrelatedToProcessDefinition(long processDefinitionId,
int startIndex,
int maxResults,
org.bonitasoft.engine.bpm.category.CategoryCriterion sortingCriterion)
getCategoriesUnrelatedToProcessDefinition in interface org.bonitasoft.engine.api.ProcessManagementAPIpublic void updateCategory(long categoryId,
org.bonitasoft.engine.bpm.category.CategoryUpdater updater)
throws org.bonitasoft.engine.bpm.category.CategoryNotFoundException,
org.bonitasoft.engine.exception.UpdateException
updateCategory in interface org.bonitasoft.engine.api.ProcessManagementAPIorg.bonitasoft.engine.bpm.category.CategoryNotFoundExceptionorg.bonitasoft.engine.exception.UpdateExceptionpublic void deleteCategory(long categoryId)
throws org.bonitasoft.engine.exception.DeletionException
deleteCategory in interface org.bonitasoft.engine.api.ProcessManagementAPIorg.bonitasoft.engine.exception.DeletionExceptionpublic long getNumberOfUncategorizedProcessDefinitions()
getNumberOfUncategorizedProcessDefinitions in interface org.bonitasoft.engine.api.ProcessManagementAPIpublic java.util.List<org.bonitasoft.engine.bpm.process.ProcessDeploymentInfo> getUncategorizedProcessDeploymentInfos(int startIndex,
int maxResults,
org.bonitasoft.engine.bpm.process.ProcessDeploymentInfoCriterion sortCriterion)
getUncategorizedProcessDeploymentInfos in interface org.bonitasoft.engine.api.ProcessManagementAPIpublic long getNumberOfProcessDeploymentInfosUnrelatedToCategory(long categoryId)
getNumberOfProcessDeploymentInfosUnrelatedToCategory in interface org.bonitasoft.engine.api.ProcessManagementAPIpublic java.util.List<org.bonitasoft.engine.bpm.process.ProcessDeploymentInfo> getProcessDeploymentInfosUnrelatedToCategory(long categoryId,
int startIndex,
int maxResults,
org.bonitasoft.engine.bpm.process.ProcessDeploymentInfoCriterion sortingCriterion)
getProcessDeploymentInfosUnrelatedToCategory in interface org.bonitasoft.engine.api.ProcessManagementAPIpublic long removeCategoriesFromProcessDefinition(long processDefinitionId,
int startIndex,
int maxResults)
throws org.bonitasoft.engine.exception.DeletionException
removeCategoriesFromProcessDefinition in interface org.bonitasoft.engine.api.ProcessManagementAPIorg.bonitasoft.engine.exception.DeletionExceptionpublic long removeProcessDefinitionsFromCategory(long categoryId,
int startIndex,
int maxResults)
throws org.bonitasoft.engine.exception.DeletionException
removeProcessDefinitionsFromCategory in interface org.bonitasoft.engine.api.ProcessManagementAPIorg.bonitasoft.engine.exception.DeletionExceptionpublic java.util.List<org.bonitasoft.engine.bpm.flownode.EventInstance> getEventInstances(long rootContainerId,
int startIndex,
int maxResults,
org.bonitasoft.engine.bpm.flownode.EventCriterion criterion)
getEventInstances in interface org.bonitasoft.engine.api.ProcessRuntimeAPIpublic void assignUserTask(long userTaskId,
long userId)
throws org.bonitasoft.engine.exception.UpdateException
assignUserTask in interface org.bonitasoft.engine.api.ProcessRuntimeAPIorg.bonitasoft.engine.exception.UpdateExceptionpublic void assignUserTaskIfNotAssigned(long userTaskId,
long userId)
throws org.bonitasoft.engine.exception.UpdateException
assignUserTaskIfNotAssigned in interface org.bonitasoft.engine.api.ProcessRuntimeAPIorg.bonitasoft.engine.exception.UpdateExceptionpublic 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
assignAndExecuteUserTask in interface org.bonitasoft.engine.api.ProcessRuntimeAPIorg.bonitasoft.engine.exception.UpdateExceptionorg.bonitasoft.engine.bpm.flownode.UserTaskNotFoundExceptionorg.bonitasoft.engine.bpm.contract.ContractViolationExceptionorg.bonitasoft.engine.bpm.flownode.FlowNodeExecutionExceptionpublic void updateActorsOfUserTask(long userTaskId)
throws org.bonitasoft.engine.exception.UpdateException
updateActorsOfUserTask in interface org.bonitasoft.engine.api.ProcessRuntimeAPIorg.bonitasoft.engine.exception.UpdateExceptionpublic 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
getActivityDataDefinitions in interface org.bonitasoft.engine.api.ProcessManagementAPIorg.bonitasoft.engine.bpm.flownode.ActivityDefinitionNotFoundExceptionorg.bonitasoft.engine.bpm.process.ProcessDefinitionNotFoundExceptionpublic java.util.List<org.bonitasoft.engine.bpm.data.DataDefinition> getProcessDataDefinitions(long processDefinitionId,
int startIndex,
int maxResults)
throws org.bonitasoft.engine.bpm.process.ProcessDefinitionNotFoundException
getProcessDataDefinitions in interface org.bonitasoft.engine.api.ProcessManagementAPIorg.bonitasoft.engine.bpm.process.ProcessDefinitionNotFoundExceptionpublic org.bonitasoft.engine.bpm.flownode.HumanTaskInstance getHumanTaskInstance(long activityInstanceId)
throws org.bonitasoft.engine.bpm.flownode.ActivityInstanceNotFoundException
getHumanTaskInstance in interface org.bonitasoft.engine.api.ProcessRuntimeAPIorg.bonitasoft.engine.bpm.flownode.ActivityInstanceNotFoundExceptionpublic long getNumberOfAssignedHumanTaskInstances(long userId)
getNumberOfAssignedHumanTaskInstances in interface org.bonitasoft.engine.api.ProcessRuntimeAPIpublic java.util.Map<java.lang.Long,java.lang.Long> getNumberOfOpenTasks(java.util.List<java.lang.Long> userIds)
getNumberOfOpenTasks in interface org.bonitasoft.engine.api.ProcessRuntimeAPIpublic java.util.Map<java.lang.String,byte[]> getProcessResources(long processDefinitionId,
java.lang.String filenamesPattern)
throws org.bonitasoft.engine.exception.RetrieveException
getProcessResources in interface org.bonitasoft.engine.api.ProcessManagementAPIorg.bonitasoft.engine.exception.RetrieveExceptionpublic byte[] getExternalProcessResource(long processDefinitionId,
java.lang.String fileName)
throws org.bonitasoft.engine.exception.RetrieveException,
java.io.FileNotFoundException
getExternalProcessResource in interface org.bonitasoft.engine.api.ProcessManagementAPIorg.bonitasoft.engine.exception.RetrieveExceptionjava.io.FileNotFoundExceptionpublic long getLatestProcessDefinitionId(java.lang.String processName)
throws org.bonitasoft.engine.bpm.process.ProcessDefinitionNotFoundException
getLatestProcessDefinitionId in interface org.bonitasoft.engine.api.ProcessManagementAPIorg.bonitasoft.engine.bpm.process.ProcessDefinitionNotFoundExceptionpublic java.util.List<org.bonitasoft.engine.bpm.data.DataInstance> getProcessDataInstances(long processInstanceId,
int startIndex,
int maxResults)
getProcessDataInstances in interface org.bonitasoft.engine.api.ProcessRuntimeAPIpublic org.bonitasoft.engine.bpm.data.DataInstance getProcessDataInstance(java.lang.String dataName,
long processInstanceId)
throws org.bonitasoft.engine.bpm.data.DataNotFoundException
getProcessDataInstance in interface org.bonitasoft.engine.api.ProcessRuntimeAPIorg.bonitasoft.engine.bpm.data.DataNotFoundExceptionpublic void updateProcessDataInstance(java.lang.String dataName,
long processInstanceId,
java.io.Serializable dataValue)
throws org.bonitasoft.engine.exception.UpdateException
updateProcessDataInstance in interface org.bonitasoft.engine.api.ProcessRuntimeAPIorg.bonitasoft.engine.exception.UpdateExceptionpublic void updateProcessDataInstances(long processInstanceId,
java.util.Map<java.lang.String,java.io.Serializable> dataNameValues)
throws org.bonitasoft.engine.exception.UpdateException
updateProcessDataInstances in interface org.bonitasoft.engine.api.ProcessRuntimeAPIorg.bonitasoft.engine.exception.UpdateExceptionprotected 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
java.lang.ClassNotFoundExceptionorg.bonitasoft.engine.exception.UpdateExceptionSDataInstanceExceptionprotected void updateDataInstance(DataInstanceService dataInstanceService, SDataInstance sDataInstance, java.io.Serializable dataNewValue, java.lang.ClassLoader classLoader) throws org.bonitasoft.engine.exception.UpdateException, SDataInstanceException
org.bonitasoft.engine.exception.UpdateExceptionSDataInstanceExceptionprotected void verifyTypeOfNewDataValue(SDataInstance sDataInstance, java.io.Serializable dataValue, java.lang.ClassLoader classLoader) throws org.bonitasoft.engine.exception.UpdateException
org.bonitasoft.engine.exception.UpdateExceptionprotected java.lang.ClassLoader getProcessInstanceClassloader(TenantServiceAccessor tenantAccessor, long processInstanceId) throws SProcessInstanceNotFoundException, SProcessInstanceReadException, SClassLoaderException
tenantAccessor - processInstanceId - SProcessInstanceNotFoundExceptionSProcessInstanceReadExceptionSClassLoaderExceptionpublic java.util.List<org.bonitasoft.engine.bpm.data.DataInstance> getActivityDataInstances(long activityInstanceId,
int startIndex,
int maxResults)
getActivityDataInstances in interface org.bonitasoft.engine.api.ProcessRuntimeAPIpublic org.bonitasoft.engine.bpm.data.DataInstance getActivityDataInstance(java.lang.String dataName,
long activityInstanceId)
throws org.bonitasoft.engine.bpm.data.DataNotFoundException
getActivityDataInstance in interface org.bonitasoft.engine.api.ProcessRuntimeAPIorg.bonitasoft.engine.bpm.data.DataNotFoundExceptionpublic void updateActivityDataInstance(java.lang.String dataName,
long activityInstanceId,
java.io.Serializable dataValue)
throws org.bonitasoft.engine.exception.UpdateException
updateActivityDataInstance in interface org.bonitasoft.engine.api.ProcessRuntimeAPIorg.bonitasoft.engine.exception.UpdateExceptionpublic org.bonitasoft.engine.bpm.data.DataInstance getActivityTransientDataInstance(java.lang.String dataName,
long activityInstanceId)
throws org.bonitasoft.engine.bpm.data.DataNotFoundException
getActivityTransientDataInstance in interface org.bonitasoft.engine.api.ProcessRuntimeAPIorg.bonitasoft.engine.bpm.data.DataNotFoundExceptionprotected org.bonitasoft.engine.bpm.data.DataInstance convertModeltoDataInstance(SDataInstance data)
public java.util.List<org.bonitasoft.engine.bpm.data.DataInstance> getActivityTransientDataInstances(long activityInstanceId,
int startIndex,
int maxResults)
getActivityTransientDataInstances in interface org.bonitasoft.engine.api.ProcessRuntimeAPIprotected java.util.List<org.bonitasoft.engine.bpm.data.DataInstance> convertModelToDataInstances(java.util.List<SDataInstance> dataInstances)
public void updateActivityTransientDataInstance(java.lang.String dataName,
long activityInstanceId,
java.io.Serializable dataValue)
throws org.bonitasoft.engine.exception.UpdateException
updateActivityTransientDataInstance in interface org.bonitasoft.engine.api.ProcessRuntimeAPIorg.bonitasoft.engine.exception.UpdateExceptionprotected 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
SDataInstanceExceptionorg.bonitasoft.engine.exception.UpdateExceptionpublic void importActorMapping(long processDefinitionId,
java.lang.String xmlContent)
throws org.bonitasoft.engine.bpm.actor.ActorMappingImportException
importActorMapping in interface org.bonitasoft.engine.api.ProcessManagementAPIorg.bonitasoft.engine.bpm.actor.ActorMappingImportExceptionpublic java.lang.String exportActorMapping(long processDefinitionId)
throws org.bonitasoft.engine.bpm.actor.ActorMappingExportException
exportActorMapping in interface org.bonitasoft.engine.api.ProcessManagementAPIorg.bonitasoft.engine.bpm.actor.ActorMappingExportExceptionpublic boolean isInvolvedInProcessInstance(long userId,
long processInstanceId)
throws org.bonitasoft.engine.bpm.process.ProcessInstanceNotFoundException
isInvolvedInProcessInstance in interface org.bonitasoft.engine.api.ProcessRuntimeAPIorg.bonitasoft.engine.bpm.process.ProcessInstanceNotFoundExceptionpublic boolean isInvolvedInHumanTaskInstance(long userId,
long humanTaskInstanceId)
throws org.bonitasoft.engine.bpm.flownode.ActivityInstanceNotFoundException,
org.bonitasoft.engine.identity.UserNotFoundException
isInvolvedInHumanTaskInstance in interface org.bonitasoft.engine.api.ProcessRuntimeAPIorg.bonitasoft.engine.bpm.flownode.ActivityInstanceNotFoundExceptionorg.bonitasoft.engine.identity.UserNotFoundExceptionpublic boolean isManagerOfUserInvolvedInProcessInstance(long managerUserId,
long processInstanceId)
throws org.bonitasoft.engine.bpm.process.ProcessInstanceNotFoundException,
org.bonitasoft.engine.exception.BonitaException
isManagerOfUserInvolvedInProcessInstance in interface org.bonitasoft.engine.api.ProcessRuntimeAPIorg.bonitasoft.engine.bpm.process.ProcessInstanceNotFoundExceptionorg.bonitasoft.engine.exception.BonitaExceptionpublic long getProcessInstanceIdFromActivityInstanceId(long activityInstanceId)
throws org.bonitasoft.engine.bpm.process.ProcessInstanceNotFoundException
getProcessInstanceIdFromActivityInstanceId in interface org.bonitasoft.engine.api.ProcessRuntimeAPIorg.bonitasoft.engine.bpm.process.ProcessInstanceNotFoundExceptionpublic long getProcessDefinitionIdFromActivityInstanceId(long activityInstanceId)
throws org.bonitasoft.engine.bpm.process.ProcessDefinitionNotFoundException
getProcessDefinitionIdFromActivityInstanceId in interface org.bonitasoft.engine.api.ProcessRuntimeAPIorg.bonitasoft.engine.bpm.process.ProcessDefinitionNotFoundExceptionpublic long getProcessDefinitionIdFromProcessInstanceId(long processInstanceId)
throws org.bonitasoft.engine.bpm.process.ProcessDefinitionNotFoundException
getProcessDefinitionIdFromProcessInstanceId in interface org.bonitasoft.engine.api.ProcessRuntimeAPIorg.bonitasoft.engine.bpm.process.ProcessDefinitionNotFoundExceptionpublic java.util.Date getActivityReachedStateDate(long activityInstanceId,
java.lang.String stateName)
getActivityReachedStateDate in interface org.bonitasoft.engine.api.ProcessRuntimeAPIpublic java.util.Set<java.lang.String> getSupportedStates(org.bonitasoft.engine.bpm.flownode.FlowNodeType nodeType)
getSupportedStates in interface org.bonitasoft.engine.api.ProcessManagementAPIpublic void updateActivityInstanceVariables(long activityInstanceId,
java.util.Map<java.lang.String,java.io.Serializable> variables)
throws org.bonitasoft.engine.exception.UpdateException
updateActivityInstanceVariables in interface org.bonitasoft.engine.api.ProcessRuntimeAPIorg.bonitasoft.engine.exception.UpdateExceptionpublic 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
updateActivityInstanceVariables in interface org.bonitasoft.engine.api.ProcessRuntimeAPIorg.bonitasoft.engine.exception.UpdateExceptionprotected SOperation convertOperation(org.bonitasoft.engine.operation.Operation operation)
protected java.util.List<SOperation> convertOperations(java.util.List<org.bonitasoft.engine.operation.Operation> operations)
public long getOneAssignedUserTaskInstanceOfProcessInstance(long processInstanceId,
long userId)
throws org.bonitasoft.engine.exception.RetrieveException
getOneAssignedUserTaskInstanceOfProcessInstance in interface org.bonitasoft.engine.api.ProcessRuntimeAPIorg.bonitasoft.engine.exception.RetrieveExceptionpublic long getOneAssignedUserTaskInstanceOfProcessDefinition(long processDefinitionId,
long userId)
getOneAssignedUserTaskInstanceOfProcessDefinition in interface org.bonitasoft.engine.api.ProcessRuntimeAPIpublic java.lang.String getActivityInstanceState(long activityInstanceId)
throws org.bonitasoft.engine.bpm.flownode.ActivityInstanceNotFoundException
getActivityInstanceState in interface org.bonitasoft.engine.api.ProcessRuntimeAPIorg.bonitasoft.engine.bpm.flownode.ActivityInstanceNotFoundExceptionpublic boolean canExecuteTask(long activityInstanceId,
long userId)
throws org.bonitasoft.engine.bpm.flownode.ActivityInstanceNotFoundException,
org.bonitasoft.engine.exception.RetrieveException
canExecuteTask in interface org.bonitasoft.engine.api.ProcessRuntimeAPIorg.bonitasoft.engine.bpm.flownode.ActivityInstanceNotFoundExceptionorg.bonitasoft.engine.exception.RetrieveExceptionpublic long getProcessDefinitionId(java.lang.String name,
java.lang.String version)
throws org.bonitasoft.engine.bpm.process.ProcessDefinitionNotFoundException
getProcessDefinitionId in interface org.bonitasoft.engine.api.ProcessManagementAPIorg.bonitasoft.engine.bpm.process.ProcessDefinitionNotFoundExceptionpublic void releaseUserTask(long userTaskId)
throws org.bonitasoft.engine.bpm.flownode.ActivityInstanceNotFoundException,
org.bonitasoft.engine.exception.UpdateException
releaseUserTask in interface org.bonitasoft.engine.api.ProcessRuntimeAPIorg.bonitasoft.engine.bpm.flownode.ActivityInstanceNotFoundExceptionorg.bonitasoft.engine.exception.UpdateExceptionpublic void updateProcessDeploymentInfo(long processDefinitionId,
org.bonitasoft.engine.bpm.process.ProcessDeploymentInfoUpdater processDeploymentInfoUpdater)
throws org.bonitasoft.engine.bpm.process.ProcessDefinitionNotFoundException,
org.bonitasoft.engine.exception.UpdateException
updateProcessDeploymentInfo in interface org.bonitasoft.engine.api.ProcessManagementAPIorg.bonitasoft.engine.bpm.process.ProcessDefinitionNotFoundExceptionorg.bonitasoft.engine.exception.UpdateExceptionpublic 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)
getStartableProcessDeploymentInfosForActors in interface org.bonitasoft.engine.api.ProcessManagementAPIpublic boolean isAllowedToStartProcess(long processDefinitionId,
java.util.Set<java.lang.Long> actorIds)
isAllowedToStartProcess in interface org.bonitasoft.engine.api.ProcessManagementAPIpublic org.bonitasoft.engine.bpm.actor.ActorInstance getActorInitiator(long processDefinitionId)
throws org.bonitasoft.engine.bpm.actor.ActorNotFoundException,
org.bonitasoft.engine.bpm.process.ProcessDefinitionNotFoundException
getActorInitiator in interface org.bonitasoft.engine.api.ProcessManagementAPIorg.bonitasoft.engine.bpm.actor.ActorNotFoundExceptionorg.bonitasoft.engine.bpm.process.ProcessDefinitionNotFoundExceptionpublic int getNumberOfActivityDataDefinitions(long processDefinitionId,
java.lang.String activityName)
throws org.bonitasoft.engine.bpm.process.ProcessDefinitionNotFoundException,
org.bonitasoft.engine.bpm.flownode.ActivityDefinitionNotFoundException
getNumberOfActivityDataDefinitions in interface org.bonitasoft.engine.api.ProcessManagementAPIorg.bonitasoft.engine.bpm.process.ProcessDefinitionNotFoundExceptionorg.bonitasoft.engine.bpm.flownode.ActivityDefinitionNotFoundExceptionpublic int getNumberOfProcessDataDefinitions(long processDefinitionId)
throws org.bonitasoft.engine.bpm.process.ProcessDefinitionNotFoundException
getNumberOfProcessDataDefinitions in interface org.bonitasoft.engine.api.ProcessManagementAPIorg.bonitasoft.engine.bpm.process.ProcessDefinitionNotFoundExceptionpublic 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
startProcess in interface org.bonitasoft.engine.api.ProcessRuntimeAPIorg.bonitasoft.engine.bpm.process.ProcessDefinitionNotFoundExceptionorg.bonitasoft.engine.bpm.process.ProcessActivationExceptionorg.bonitasoft.engine.bpm.process.ProcessExecutionExceptionpublic 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
startProcessWithInputs in interface org.bonitasoft.engine.api.ProcessRuntimeAPIorg.bonitasoft.engine.bpm.process.ProcessDefinitionNotFoundExceptionorg.bonitasoft.engine.bpm.process.ProcessActivationExceptionorg.bonitasoft.engine.bpm.process.ProcessExecutionExceptionorg.bonitasoft.engine.bpm.contract.ContractViolationExceptionpublic 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
startProcessWithInputs in interface org.bonitasoft.engine.api.ProcessRuntimeAPIorg.bonitasoft.engine.bpm.process.ProcessDefinitionNotFoundExceptionorg.bonitasoft.engine.bpm.process.ProcessActivationExceptionorg.bonitasoft.engine.bpm.process.ProcessExecutionExceptionorg.bonitasoft.engine.bpm.contract.ContractViolationExceptionpublic 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
startProcess in interface org.bonitasoft.engine.api.ProcessRuntimeAPIorg.bonitasoft.engine.bpm.process.ProcessDefinitionNotFoundExceptionorg.bonitasoft.engine.bpm.process.ProcessActivationExceptionorg.bonitasoft.engine.bpm.process.ProcessExecutionExceptionprotected 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
org.bonitasoft.engine.bpm.process.ProcessExecutionExceptionpublic 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
startProcess in interface org.bonitasoft.engine.api.ProcessRuntimeAPIorg.bonitasoft.engine.bpm.process.ProcessExecutionExceptionorg.bonitasoft.engine.bpm.process.ProcessDefinitionNotFoundExceptionorg.bonitasoft.engine.bpm.process.ProcessActivationExceptionpublic 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
startProcess in interface org.bonitasoft.engine.api.ProcessRuntimeAPIorg.bonitasoft.engine.bpm.process.ProcessDefinitionNotFoundExceptionorg.bonitasoft.engine.bpm.process.ProcessActivationExceptionorg.bonitasoft.engine.bpm.process.ProcessExecutionExceptionpublic long getNumberOfActivityDataInstances(long activityInstanceId)
throws org.bonitasoft.engine.bpm.flownode.ActivityInstanceNotFoundException
getNumberOfActivityDataInstances in interface org.bonitasoft.engine.api.ProcessRuntimeAPIorg.bonitasoft.engine.bpm.flownode.ActivityInstanceNotFoundExceptionpublic long getNumberOfProcessDataInstances(long processInstanceId)
throws org.bonitasoft.engine.bpm.process.ProcessInstanceNotFoundException
getNumberOfProcessDataInstances in interface org.bonitasoft.engine.api.ProcessRuntimeAPIorg.bonitasoft.engine.bpm.process.ProcessInstanceNotFoundExceptionprotected 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
SBonitaExceptionpublic 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
executeConnectorOnProcessDefinition in interface org.bonitasoft.engine.api.ProcessRuntimeAPIorg.bonitasoft.engine.bpm.connector.ConnectorExecutionExceptionpublic 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
executeConnectorOnProcessDefinition in interface org.bonitasoft.engine.api.ProcessRuntimeAPIorg.bonitasoft.engine.bpm.connector.ConnectorExecutionExceptionprotected 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
org.bonitasoft.engine.exception.NotSerializableExceptionSConnectorExceptionprotected 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
org.bonitasoft.engine.bpm.connector.ConnectorExecutionExceptionpublic void setActivityStateByName(long activityInstanceId,
java.lang.String state)
throws org.bonitasoft.engine.exception.UpdateException
setActivityStateByName in interface org.bonitasoft.engine.api.ProcessRuntimeAPIorg.bonitasoft.engine.exception.UpdateExceptionpublic void setActivityStateById(long activityInstanceId,
int stateId)
throws org.bonitasoft.engine.exception.UpdateException
setActivityStateById in interface org.bonitasoft.engine.api.ProcessRuntimeAPIorg.bonitasoft.engine.exception.UpdateExceptionpublic void setTaskPriority(long humanTaskInstanceId,
org.bonitasoft.engine.bpm.flownode.TaskPriority priority)
throws org.bonitasoft.engine.exception.UpdateException
setTaskPriority in interface org.bonitasoft.engine.api.ProcessRuntimeAPIorg.bonitasoft.engine.exception.UpdateExceptionpublic long deleteProcessInstances(long processDefinitionId,
int startIndex,
int maxResults)
throws org.bonitasoft.engine.exception.DeletionException
deleteProcessInstances in interface org.bonitasoft.engine.api.ProcessRuntimeAPIorg.bonitasoft.engine.exception.DeletionExceptionpublic long deleteArchivedProcessInstances(long processDefinitionId,
int startIndex,
int maxResults)
throws org.bonitasoft.engine.exception.DeletionException
deleteArchivedProcessInstances in interface org.bonitasoft.engine.api.ProcessRuntimeAPIorg.bonitasoft.engine.exception.DeletionExceptionpublic long deleteArchivedProcessInstancesInAllStates(java.util.List<java.lang.Long> sourceProcessInstanceIds)
throws org.bonitasoft.engine.exception.DeletionException
deleteArchivedProcessInstancesInAllStates in interface org.bonitasoft.engine.api.ProcessRuntimeAPIorg.bonitasoft.engine.exception.DeletionExceptionpublic long deleteArchivedProcessInstancesInAllStates(long sourceProcessInstanceId)
throws org.bonitasoft.engine.exception.DeletionException
deleteArchivedProcessInstancesInAllStates in interface org.bonitasoft.engine.api.ProcessRuntimeAPIorg.bonitasoft.engine.exception.DeletionExceptionpublic void deleteProcessInstance(long processInstanceId)
throws org.bonitasoft.engine.exception.DeletionException
deleteProcessInstance in interface org.bonitasoft.engine.api.ProcessRuntimeAPIorg.bonitasoft.engine.exception.DeletionExceptionpublic org.bonitasoft.engine.search.SearchResult<org.bonitasoft.engine.bpm.process.ProcessInstance> searchOpenProcessInstances(org.bonitasoft.engine.search.SearchOptions searchOptions)
throws org.bonitasoft.engine.exception.SearchException
searchOpenProcessInstances in interface org.bonitasoft.engine.api.ProcessRuntimeAPIorg.bonitasoft.engine.exception.SearchExceptionpublic org.bonitasoft.engine.search.SearchResult<org.bonitasoft.engine.bpm.process.ProcessInstance> searchProcessInstances(org.bonitasoft.engine.search.SearchOptions searchOptions)
throws org.bonitasoft.engine.exception.SearchException
searchProcessInstances in interface org.bonitasoft.engine.api.ProcessRuntimeAPIorg.bonitasoft.engine.exception.SearchExceptionpublic org.bonitasoft.engine.search.SearchResult<org.bonitasoft.engine.bpm.process.ProcessInstance> searchFailedProcessInstances(org.bonitasoft.engine.search.SearchOptions searchOptions)
throws org.bonitasoft.engine.exception.SearchException
searchFailedProcessInstances in interface org.bonitasoft.engine.api.ProcessRuntimeAPIorg.bonitasoft.engine.exception.SearchExceptionpublic 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
searchFailedProcessInstancesSupervisedBy in interface org.bonitasoft.engine.api.ProcessRuntimeAPIorg.bonitasoft.engine.exception.SearchExceptionprotected SearchFailedProcessInstancesSupervisedBy createSearchFailedProcessInstancesSupervisedBy(long userId, org.bonitasoft.engine.search.SearchOptions searchOptions, ProcessInstanceService processInstanceService, SearchEntitiesDescriptor searchEntitiesDescriptor, ProcessDefinitionService processDefinitionService)
protected GetSUser createTxUserGetter(long userId, IdentityService identityService)
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
searchOpenProcessInstancesSupervisedBy in interface org.bonitasoft.engine.api.ProcessRuntimeAPIorg.bonitasoft.engine.exception.SearchExceptionpublic 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
searchProcessDeploymentInfosStartedBy in interface org.bonitasoft.engine.api.ProcessManagementAPIorg.bonitasoft.engine.exception.SearchExceptionpublic org.bonitasoft.engine.search.SearchResult<org.bonitasoft.engine.bpm.process.ProcessDeploymentInfo> searchProcessDeploymentInfos(org.bonitasoft.engine.search.SearchOptions searchOptions)
throws org.bonitasoft.engine.exception.SearchException
searchProcessDeploymentInfos in interface org.bonitasoft.engine.api.ProcessManagementAPIorg.bonitasoft.engine.exception.SearchExceptionpublic 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
searchProcessDeploymentInfosCanBeStartedBy in interface org.bonitasoft.engine.api.ProcessManagementAPIorg.bonitasoft.engine.exception.RetrieveExceptionorg.bonitasoft.engine.exception.SearchExceptionpublic 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
searchProcessDeploymentInfosCanBeStartedByUsersManagedBy in interface org.bonitasoft.engine.api.ProcessManagementAPIorg.bonitasoft.engine.exception.SearchExceptionpublic 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
searchProcessDeploymentInfosWithAssignedOrPendingHumanTasksFor in interface org.bonitasoft.engine.api.ProcessRuntimeAPIorg.bonitasoft.engine.exception.SearchExceptionpublic 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
searchProcessDeploymentInfosWithAssignedOrPendingHumanTasksSupervisedBy in interface org.bonitasoft.engine.api.ProcessRuntimeAPIorg.bonitasoft.engine.exception.SearchExceptionpublic org.bonitasoft.engine.search.SearchResult<org.bonitasoft.engine.bpm.process.ProcessDeploymentInfo> searchProcessDeploymentInfosWithAssignedOrPendingHumanTasks(org.bonitasoft.engine.search.SearchOptions searchOptions)
throws org.bonitasoft.engine.exception.SearchException
searchProcessDeploymentInfosWithAssignedOrPendingHumanTasks in interface org.bonitasoft.engine.api.ProcessRuntimeAPIorg.bonitasoft.engine.exception.SearchExceptionpublic java.util.Map<java.lang.String,java.util.Map<java.lang.String,java.lang.Long>> getFlownodeStateCounters(long processInstanceId)
getFlownodeStateCounters in interface org.bonitasoft.engine.api.ProcessRuntimeAPIpublic 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
searchProcessDeploymentInfosSupervisedBy in interface org.bonitasoft.engine.api.ProcessManagementAPIorg.bonitasoft.engine.exception.SearchExceptionpublic 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
searchAssignedTasksSupervisedBy in interface org.bonitasoft.engine.api.ProcessRuntimeAPIorg.bonitasoft.engine.exception.SearchExceptionpublic 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
searchArchivedHumanTasksSupervisedBy in interface org.bonitasoft.engine.api.ProcessRuntimeAPIorg.bonitasoft.engine.exception.SearchExceptionpublic org.bonitasoft.engine.search.SearchResult<org.bonitasoft.engine.bpm.supervisor.ProcessSupervisor> searchProcessSupervisors(org.bonitasoft.engine.search.SearchOptions searchOptions)
throws org.bonitasoft.engine.exception.SearchException
searchProcessSupervisors in interface org.bonitasoft.engine.api.ProcessManagementAPIorg.bonitasoft.engine.exception.SearchExceptionpublic boolean isUserProcessSupervisor(long processDefinitionId,
long userId)
isUserProcessSupervisor in interface org.bonitasoft.engine.api.ProcessManagementAPIpublic void deleteSupervisor(long supervisorId)
throws org.bonitasoft.engine.exception.DeletionException
deleteSupervisor in interface org.bonitasoft.engine.api.ProcessManagementAPIorg.bonitasoft.engine.exception.DeletionExceptionpublic void deleteSupervisor(java.lang.Long processDefinitionId,
java.lang.Long userId,
java.lang.Long roleId,
java.lang.Long groupId)
throws org.bonitasoft.engine.exception.DeletionException
deleteSupervisor in interface org.bonitasoft.engine.api.ProcessManagementAPIorg.bonitasoft.engine.exception.DeletionExceptionpublic org.bonitasoft.engine.bpm.supervisor.ProcessSupervisor createProcessSupervisorForUser(long processDefinitionId,
long userId)
throws org.bonitasoft.engine.exception.CreationException,
org.bonitasoft.engine.exception.AlreadyExistsException
createProcessSupervisorForUser in interface org.bonitasoft.engine.api.ProcessManagementAPIorg.bonitasoft.engine.exception.CreationExceptionorg.bonitasoft.engine.exception.AlreadyExistsExceptionpublic org.bonitasoft.engine.bpm.supervisor.ProcessSupervisor createProcessSupervisorForRole(long processDefinitionId,
long roleId)
throws org.bonitasoft.engine.exception.CreationException,
org.bonitasoft.engine.exception.AlreadyExistsException
createProcessSupervisorForRole in interface org.bonitasoft.engine.api.ProcessManagementAPIorg.bonitasoft.engine.exception.CreationExceptionorg.bonitasoft.engine.exception.AlreadyExistsExceptionpublic org.bonitasoft.engine.bpm.supervisor.ProcessSupervisor createProcessSupervisorForGroup(long processDefinitionId,
long groupId)
throws org.bonitasoft.engine.exception.CreationException,
org.bonitasoft.engine.exception.AlreadyExistsException
createProcessSupervisorForGroup in interface org.bonitasoft.engine.api.ProcessManagementAPIorg.bonitasoft.engine.exception.CreationExceptionorg.bonitasoft.engine.exception.AlreadyExistsExceptionpublic org.bonitasoft.engine.bpm.supervisor.ProcessSupervisor createProcessSupervisorForMembership(long processDefinitionId,
long groupId,
long roleId)
throws org.bonitasoft.engine.exception.CreationException,
org.bonitasoft.engine.exception.AlreadyExistsException
createProcessSupervisorForMembership in interface org.bonitasoft.engine.api.ProcessManagementAPIorg.bonitasoft.engine.exception.CreationExceptionorg.bonitasoft.engine.exception.AlreadyExistsExceptionprotected java.util.List<SProcessSupervisor> searchSProcessSupervisors(java.lang.Long processDefinitionId, java.lang.Long userId, java.lang.Long groupId, java.lang.Long roleId) throws SBonitaReadException
SBonitaReadExceptionpublic 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
searchUncategorizedProcessDeploymentInfosCanBeStartedBy in interface org.bonitasoft.engine.api.ProcessManagementAPIorg.bonitasoft.engine.exception.SearchExceptionpublic 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
searchArchivedHumanTasksManagedBy in interface org.bonitasoft.engine.api.ProcessRuntimeAPIorg.bonitasoft.engine.exception.SearchExceptionpublic 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
searchOpenProcessInstancesInvolvingUser in interface org.bonitasoft.engine.api.ProcessRuntimeAPIorg.bonitasoft.engine.exception.SearchExceptionpublic 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
searchOpenProcessInstancesInvolvingUsersManagedBy in interface org.bonitasoft.engine.api.ProcessRuntimeAPIorg.bonitasoft.engine.exception.SearchExceptionpublic org.bonitasoft.engine.search.SearchResult<org.bonitasoft.engine.bpm.flownode.ArchivedHumanTaskInstance> searchArchivedHumanTasks(org.bonitasoft.engine.search.SearchOptions searchOptions)
throws org.bonitasoft.engine.exception.SearchException
searchArchivedHumanTasks in interface org.bonitasoft.engine.api.ProcessRuntimeAPIorg.bonitasoft.engine.exception.SearchExceptionpublic 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
searchAssignedTasksManagedBy in interface org.bonitasoft.engine.api.ProcessRuntimeAPIorg.bonitasoft.engine.exception.SearchExceptionpublic 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
searchArchivedProcessInstancesSupervisedBy in interface org.bonitasoft.engine.api.ProcessRuntimeAPIorg.bonitasoft.engine.exception.SearchExceptionpublic 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
searchArchivedProcessInstancesInvolvingUser in interface org.bonitasoft.engine.api.ProcessRuntimeAPIorg.bonitasoft.engine.exception.SearchExceptionpublic 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
searchPendingTasksForUser in interface org.bonitasoft.engine.api.ProcessRuntimeAPIorg.bonitasoft.engine.exception.SearchExceptionpublic 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
searchPendingTasksAssignedToUser in interface org.bonitasoft.engine.api.ProcessRuntimeAPIorg.bonitasoft.engine.exception.SearchExceptionpublic 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
searchMyAvailableHumanTasks in interface org.bonitasoft.engine.api.ProcessRuntimeAPIorg.bonitasoft.engine.exception.SearchExceptionpublic 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
searchPendingTasksSupervisedBy in interface org.bonitasoft.engine.api.ProcessRuntimeAPIorg.bonitasoft.engine.exception.SearchExceptionpublic org.bonitasoft.engine.search.SearchResult<org.bonitasoft.engine.bpm.comment.Comment> searchComments(org.bonitasoft.engine.search.SearchOptions searchOptions)
throws org.bonitasoft.engine.exception.SearchException
searchComments in interface org.bonitasoft.engine.api.ProcessRuntimeAPIorg.bonitasoft.engine.exception.SearchExceptionpublic org.bonitasoft.engine.bpm.comment.Comment addProcessComment(long processInstanceId,
java.lang.String comment)
throws org.bonitasoft.engine.exception.CreationException
addProcessComment in interface org.bonitasoft.engine.api.ProcessRuntimeAPIorg.bonitasoft.engine.exception.CreationExceptionpublic org.bonitasoft.engine.bpm.comment.Comment addProcessCommentOnBehalfOfUser(long processInstanceId,
java.lang.String comment,
long userId)
throws org.bonitasoft.engine.exception.CreationException
addProcessCommentOnBehalfOfUser in interface org.bonitasoft.engine.api.ProcessRuntimeAPIorg.bonitasoft.engine.exception.CreationException@Deprecated public java.util.List<org.bonitasoft.engine.bpm.comment.Comment> getComments(long processInstanceId)
getComments in interface org.bonitasoft.engine.api.ProcessRuntimeAPIpublic 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
attachDocument in interface org.bonitasoft.engine.api.DocumentAPIorg.bonitasoft.engine.bpm.document.DocumentAttachmentExceptionorg.bonitasoft.engine.bpm.process.ProcessInstanceNotFoundExceptionpublic 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
attachDocument in interface org.bonitasoft.engine.api.DocumentAPIorg.bonitasoft.engine.bpm.document.DocumentAttachmentExceptionorg.bonitasoft.engine.bpm.process.ProcessInstanceNotFoundExceptionpublic 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
attachNewDocumentVersion in interface org.bonitasoft.engine.api.DocumentAPIorg.bonitasoft.engine.bpm.document.DocumentAttachmentExceptionpublic 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
attachNewDocumentVersion in interface org.bonitasoft.engine.api.DocumentAPIorg.bonitasoft.engine.bpm.document.DocumentAttachmentExceptionpublic org.bonitasoft.engine.bpm.document.Document getDocument(long documentId)
throws org.bonitasoft.engine.bpm.document.DocumentNotFoundException
getDocument in interface org.bonitasoft.engine.api.DocumentAPIorg.bonitasoft.engine.bpm.document.DocumentNotFoundExceptionpublic 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
getLastVersionOfDocuments in interface org.bonitasoft.engine.api.DocumentAPIorg.bonitasoft.engine.bpm.document.DocumentExceptionorg.bonitasoft.engine.bpm.process.ProcessInstanceNotFoundExceptionpublic byte[] getDocumentContent(java.lang.String documentStorageId)
throws org.bonitasoft.engine.bpm.document.DocumentNotFoundException
getDocumentContent in interface org.bonitasoft.engine.api.DocumentAPIorg.bonitasoft.engine.bpm.document.DocumentNotFoundExceptionpublic org.bonitasoft.engine.bpm.document.Document getLastDocument(long processInstanceId,
java.lang.String documentName)
throws org.bonitasoft.engine.bpm.document.DocumentNotFoundException
getLastDocument in interface org.bonitasoft.engine.api.DocumentAPIorg.bonitasoft.engine.bpm.document.DocumentNotFoundExceptionpublic long getNumberOfDocuments(long processInstanceId)
throws org.bonitasoft.engine.bpm.document.DocumentException
getNumberOfDocuments in interface org.bonitasoft.engine.api.DocumentAPIorg.bonitasoft.engine.bpm.document.DocumentExceptionpublic org.bonitasoft.engine.bpm.document.Document getDocumentAtProcessInstantiation(long processInstanceId,
java.lang.String documentName)
throws org.bonitasoft.engine.bpm.document.DocumentNotFoundException
getDocumentAtProcessInstantiation in interface org.bonitasoft.engine.api.DocumentAPIorg.bonitasoft.engine.bpm.document.DocumentNotFoundExceptionpublic org.bonitasoft.engine.bpm.document.Document getDocumentAtActivityInstanceCompletion(long activityInstanceId,
java.lang.String documentName)
throws org.bonitasoft.engine.bpm.document.DocumentNotFoundException
getDocumentAtActivityInstanceCompletion in interface org.bonitasoft.engine.api.DocumentAPIorg.bonitasoft.engine.bpm.document.DocumentNotFoundExceptionpublic 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
searchPendingTasksManagedBy in interface org.bonitasoft.engine.api.ProcessRuntimeAPIorg.bonitasoft.engine.exception.SearchExceptionpublic java.util.Map<java.lang.Long,java.lang.Long> getNumberOfOverdueOpenTasks(java.util.List<java.lang.Long> userIds)
throws org.bonitasoft.engine.exception.RetrieveException
getNumberOfOverdueOpenTasks in interface org.bonitasoft.engine.api.ProcessRuntimeAPIorg.bonitasoft.engine.exception.RetrieveExceptionpublic org.bonitasoft.engine.search.SearchResult<org.bonitasoft.engine.bpm.process.ProcessDeploymentInfo> searchUncategorizedProcessDeploymentInfos(org.bonitasoft.engine.search.SearchOptions searchOptions)
throws org.bonitasoft.engine.exception.SearchException
searchUncategorizedProcessDeploymentInfos in interface org.bonitasoft.engine.api.ProcessManagementAPIorg.bonitasoft.engine.exception.SearchExceptionpublic 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
searchCommentsManagedBy in interface org.bonitasoft.engine.api.ProcessRuntimeAPIorg.bonitasoft.engine.exception.SearchExceptionpublic 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
searchCommentsInvolvingUser in interface org.bonitasoft.engine.api.ProcessRuntimeAPIorg.bonitasoft.engine.exception.SearchExceptionpublic java.util.List<java.lang.Long> getChildrenInstanceIdsOfProcessInstance(long processInstanceId,
int startIndex,
int maxResults,
org.bonitasoft.engine.bpm.process.ProcessInstanceCriterion criterion)
getChildrenInstanceIdsOfProcessInstance in interface org.bonitasoft.engine.api.ProcessRuntimeAPIpublic 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
searchUncategorizedProcessDeploymentInfosSupervisedBy in interface org.bonitasoft.engine.api.ProcessManagementAPIorg.bonitasoft.engine.exception.SearchExceptionpublic java.util.Map<java.lang.Long,org.bonitasoft.engine.bpm.process.ProcessDeploymentInfo> getProcessDeploymentInfosFromIds(java.util.List<java.lang.Long> processDefinitionIds)
getProcessDeploymentInfosFromIds in interface org.bonitasoft.engine.api.ProcessManagementAPIpublic java.util.List<org.bonitasoft.engine.bpm.connector.ConnectorImplementationDescriptor> getConnectorImplementations(long processDefinitionId,
int startIndex,
int maxsResults,
org.bonitasoft.engine.bpm.connector.ConnectorCriterion sortingCriterion)
getConnectorImplementations in interface org.bonitasoft.engine.api.ProcessManagementAPIpublic long getNumberOfConnectorImplementations(long processDefinitionId)
getNumberOfConnectorImplementations in interface org.bonitasoft.engine.api.ProcessManagementAPIpublic org.bonitasoft.engine.search.SearchResult<org.bonitasoft.engine.bpm.flownode.ActivityInstance> searchActivities(org.bonitasoft.engine.search.SearchOptions searchOptions)
throws org.bonitasoft.engine.exception.SearchException
searchActivities in interface org.bonitasoft.engine.api.ProcessRuntimeAPIorg.bonitasoft.engine.exception.SearchExceptionpublic org.bonitasoft.engine.search.SearchResult<org.bonitasoft.engine.bpm.flownode.ArchivedFlowNodeInstance> searchArchivedFlowNodeInstances(org.bonitasoft.engine.search.SearchOptions searchOptions)
throws org.bonitasoft.engine.exception.SearchException
searchArchivedFlowNodeInstances in interface org.bonitasoft.engine.api.ProcessRuntimeAPIorg.bonitasoft.engine.exception.SearchExceptionpublic org.bonitasoft.engine.search.SearchResult<org.bonitasoft.engine.bpm.flownode.FlowNodeInstance> searchFlowNodeInstances(org.bonitasoft.engine.search.SearchOptions searchOptions)
throws org.bonitasoft.engine.exception.SearchException
searchFlowNodeInstances in interface org.bonitasoft.engine.api.ProcessRuntimeAPIorg.bonitasoft.engine.exception.SearchExceptionpublic 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
searchTimerEventTriggerInstances in interface org.bonitasoft.engine.api.ProcessRuntimeAPIorg.bonitasoft.engine.exception.SearchExceptionpublic java.util.Date updateExecutionDateOfTimerEventTriggerInstance(long timerEventTriggerInstanceId,
java.util.Date executionDate)
throws org.bonitasoft.engine.bpm.flownode.TimerEventTriggerInstanceNotFoundException,
org.bonitasoft.engine.exception.UpdateException
updateExecutionDateOfTimerEventTriggerInstance in interface org.bonitasoft.engine.api.ProcessRuntimeAPIorg.bonitasoft.engine.bpm.flownode.TimerEventTriggerInstanceNotFoundExceptionorg.bonitasoft.engine.exception.UpdateExceptionpublic org.bonitasoft.engine.search.SearchResult<org.bonitasoft.engine.bpm.flownode.ArchivedActivityInstance> searchArchivedActivities(org.bonitasoft.engine.search.SearchOptions searchOptions)
throws org.bonitasoft.engine.exception.SearchException
searchArchivedActivities in interface org.bonitasoft.engine.api.ProcessRuntimeAPIorg.bonitasoft.engine.exception.SearchExceptionpublic org.bonitasoft.engine.bpm.connector.ConnectorImplementationDescriptor getConnectorImplementation(long processDefinitionId,
java.lang.String connectorId,
java.lang.String connectorVersion)
throws org.bonitasoft.engine.bpm.connector.ConnectorNotFoundException
getConnectorImplementation in interface org.bonitasoft.engine.api.ProcessManagementAPIorg.bonitasoft.engine.bpm.connector.ConnectorNotFoundExceptionpublic void cancelProcessInstance(long processInstanceId)
throws org.bonitasoft.engine.bpm.process.ProcessInstanceNotFoundException,
org.bonitasoft.engine.exception.UpdateException
cancelProcessInstance in interface org.bonitasoft.engine.api.ProcessRuntimeAPIorg.bonitasoft.engine.bpm.process.ProcessInstanceNotFoundExceptionorg.bonitasoft.engine.exception.UpdateExceptionprotected ProcessInstanceInterruptor buildProcessInstanceInterruptor(TenantServiceAccessor tenantAccessor)
public void setProcessInstanceState(org.bonitasoft.engine.bpm.process.ProcessInstance processInstance,
java.lang.String state)
throws org.bonitasoft.engine.exception.UpdateException
setProcessInstanceState in interface org.bonitasoft.engine.api.ProcessRuntimeAPIorg.bonitasoft.engine.exception.UpdateExceptionpublic java.util.Map<java.lang.Long,org.bonitasoft.engine.bpm.process.ProcessDeploymentInfo> getProcessDeploymentInfosFromProcessInstanceIds(java.util.List<java.lang.Long> processInstanceIds)
getProcessDeploymentInfosFromProcessInstanceIds in interface org.bonitasoft.engine.api.ProcessManagementAPIpublic java.util.Map<java.lang.Long,org.bonitasoft.engine.bpm.process.ProcessDeploymentInfo> getProcessDeploymentInfosFromArchivedProcessInstanceIds(java.util.List<java.lang.Long> archivedProcessInstantsIds)
getProcessDeploymentInfosFromArchivedProcessInstanceIds in interface org.bonitasoft.engine.api.ProcessManagementAPIpublic org.bonitasoft.engine.search.SearchResult<org.bonitasoft.engine.bpm.document.Document> searchDocuments(org.bonitasoft.engine.search.SearchOptions searchOptions)
throws org.bonitasoft.engine.exception.SearchException
searchDocuments in interface org.bonitasoft.engine.api.DocumentAPIorg.bonitasoft.engine.exception.SearchExceptionpublic 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
searchDocumentsSupervisedBy in interface org.bonitasoft.engine.api.DocumentAPIorg.bonitasoft.engine.exception.SearchExceptionorg.bonitasoft.engine.identity.UserNotFoundExceptionpublic org.bonitasoft.engine.search.SearchResult<org.bonitasoft.engine.bpm.document.ArchivedDocument> searchArchivedDocuments(org.bonitasoft.engine.search.SearchOptions searchOptions)
throws org.bonitasoft.engine.exception.SearchException
searchArchivedDocuments in interface org.bonitasoft.engine.api.DocumentAPIorg.bonitasoft.engine.exception.SearchExceptionpublic 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
searchArchivedDocumentsSupervisedBy in interface org.bonitasoft.engine.api.DocumentAPIorg.bonitasoft.engine.exception.SearchExceptionorg.bonitasoft.engine.identity.UserNotFoundExceptionpublic void retryTask(long activityInstanceId)
throws org.bonitasoft.engine.bpm.flownode.ActivityExecutionException,
org.bonitasoft.engine.bpm.flownode.ActivityInstanceNotFoundException
retryTask in interface org.bonitasoft.engine.api.ProcessRuntimeAPIorg.bonitasoft.engine.bpm.flownode.ActivityExecutionExceptionorg.bonitasoft.engine.bpm.flownode.ActivityInstanceNotFoundExceptionpublic void executeMessageCouple(long messageInstanceId,
long waitingMessageId)
throws org.bonitasoft.engine.exception.ExecutionException
executeMessageCouple in interface org.bonitasoft.engine.api.ProcessRuntimeAPIorg.bonitasoft.engine.exception.ExecutionExceptionpublic org.bonitasoft.engine.bpm.document.ArchivedDocument getArchivedVersionOfProcessDocument(long sourceObjectId)
throws org.bonitasoft.engine.bpm.document.ArchivedDocumentNotFoundException
getArchivedVersionOfProcessDocument in interface org.bonitasoft.engine.api.DocumentAPIorg.bonitasoft.engine.bpm.document.ArchivedDocumentNotFoundExceptionpublic org.bonitasoft.engine.bpm.document.ArchivedDocument getArchivedProcessDocument(long archivedProcessDocumentId)
throws org.bonitasoft.engine.bpm.document.ArchivedDocumentNotFoundException
getArchivedProcessDocument in interface org.bonitasoft.engine.api.DocumentAPIorg.bonitasoft.engine.bpm.document.ArchivedDocumentNotFoundExceptionpublic org.bonitasoft.engine.search.SearchResult<org.bonitasoft.engine.bpm.comment.ArchivedComment> searchArchivedComments(org.bonitasoft.engine.search.SearchOptions searchOptions)
throws org.bonitasoft.engine.exception.SearchException
searchArchivedComments in interface org.bonitasoft.engine.api.ProcessRuntimeAPIorg.bonitasoft.engine.exception.SearchExceptionpublic org.bonitasoft.engine.bpm.comment.ArchivedComment getArchivedComment(long archivedCommentId)
throws org.bonitasoft.engine.exception.RetrieveException,
org.bonitasoft.engine.exception.NotFoundException
getArchivedComment in interface org.bonitasoft.engine.api.ProcessRuntimeAPIorg.bonitasoft.engine.exception.RetrieveExceptionorg.bonitasoft.engine.exception.NotFoundExceptionpublic java.util.Map<java.lang.Long,org.bonitasoft.engine.bpm.actor.ActorInstance> getActorsFromActorIds(java.util.List<java.lang.Long> actorIds)
getActorsFromActorIds in interface org.bonitasoft.engine.api.ProcessManagementAPIpublic 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
evaluateExpressionOnProcessDefinition in interface org.bonitasoft.engine.api.ProcessRuntimeAPIorg.bonitasoft.engine.expression.ExpressionEvaluationExceptionpublic void updateDueDateOfTask(long userTaskId,
java.util.Date dueDate)
throws org.bonitasoft.engine.exception.UpdateException
updateDueDateOfTask in interface org.bonitasoft.engine.api.ProcessRuntimeAPIorg.bonitasoft.engine.exception.UpdateExceptionpublic long countComments(org.bonitasoft.engine.search.SearchOptions searchOptions)
throws org.bonitasoft.engine.exception.SearchException
countComments in interface org.bonitasoft.engine.api.ProcessRuntimeAPIorg.bonitasoft.engine.exception.SearchExceptionpublic long countAttachments(org.bonitasoft.engine.search.SearchOptions searchOptions)
throws org.bonitasoft.engine.exception.SearchException
countAttachments in interface org.bonitasoft.engine.api.ProcessRuntimeAPIorg.bonitasoft.engine.exception.SearchExceptionpublic void sendSignal(java.lang.String signalName)
throws org.bonitasoft.engine.bpm.flownode.SendEventException
sendSignal in interface org.bonitasoft.engine.api.ProcessRuntimeAPIorg.bonitasoft.engine.bpm.flownode.SendEventExceptionpublic 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
sendMessage in interface org.bonitasoft.engine.api.ProcessRuntimeAPIorg.bonitasoft.engine.bpm.flownode.SendEventExceptionpublic 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
sendMessage in interface org.bonitasoft.engine.api.ProcessRuntimeAPIorg.bonitasoft.engine.bpm.flownode.SendEventExceptionpublic java.util.List<org.bonitasoft.engine.bpm.process.Problem> getProcessResolutionProblems(long processDefinitionId)
throws org.bonitasoft.engine.bpm.process.ProcessDefinitionNotFoundException
getProcessResolutionProblems in interface org.bonitasoft.engine.api.ProcessManagementAPIorg.bonitasoft.engine.bpm.process.ProcessDefinitionNotFoundExceptionpublic java.util.List<org.bonitasoft.engine.bpm.process.ProcessDeploymentInfo> getProcessDeploymentInfos(int startIndex,
int maxResults,
org.bonitasoft.engine.bpm.process.ProcessDeploymentInfoCriterion pagingCriterion)
getProcessDeploymentInfos in interface org.bonitasoft.engine.api.ProcessManagementAPIpublic java.util.List<org.bonitasoft.engine.bpm.process.ProcessDeploymentInfo> getProcessDeploymentInfosWithActorOnlyForGroup(long groupId,
int startIndex,
int maxResults,
org.bonitasoft.engine.bpm.process.ProcessDeploymentInfoCriterion sortingCriterion)
getProcessDeploymentInfosWithActorOnlyForGroup in interface org.bonitasoft.engine.api.ProcessManagementAPIpublic 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)
getProcessDeploymentInfosWithActorOnlyForGroups in interface org.bonitasoft.engine.api.ProcessManagementAPIpublic java.util.List<org.bonitasoft.engine.bpm.process.ProcessDeploymentInfo> getProcessDeploymentInfosWithActorOnlyForRole(long roleId,
int startIndex,
int maxResults,
org.bonitasoft.engine.bpm.process.ProcessDeploymentInfoCriterion sortingCriterion)
getProcessDeploymentInfosWithActorOnlyForRole in interface org.bonitasoft.engine.api.ProcessManagementAPIpublic 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)
getProcessDeploymentInfosWithActorOnlyForRoles in interface org.bonitasoft.engine.api.ProcessManagementAPIpublic java.util.List<org.bonitasoft.engine.bpm.process.ProcessDeploymentInfo> getProcessDeploymentInfosWithActorOnlyForUser(long userId,
int startIndex,
int maxResults,
org.bonitasoft.engine.bpm.process.ProcessDeploymentInfoCriterion sortingCriterion)
getProcessDeploymentInfosWithActorOnlyForUser in interface org.bonitasoft.engine.api.ProcessManagementAPIpublic 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)
getProcessDeploymentInfosWithActorOnlyForUsers in interface org.bonitasoft.engine.api.ProcessManagementAPIpublic org.bonitasoft.engine.search.SearchResult<org.bonitasoft.engine.bpm.connector.ConnectorInstance> searchConnectorInstances(org.bonitasoft.engine.search.SearchOptions searchOptions)
throws org.bonitasoft.engine.exception.RetrieveException
searchConnectorInstances in interface org.bonitasoft.engine.api.ProcessRuntimeAPIorg.bonitasoft.engine.exception.RetrieveExceptionpublic org.bonitasoft.engine.search.SearchResult<org.bonitasoft.engine.bpm.connector.ArchivedConnectorInstance> searchArchivedConnectorInstances(org.bonitasoft.engine.search.SearchOptions searchOptions)
throws org.bonitasoft.engine.exception.RetrieveException
searchArchivedConnectorInstances in interface org.bonitasoft.engine.api.ProcessRuntimeAPIorg.bonitasoft.engine.exception.RetrieveExceptionpublic java.util.List<org.bonitasoft.engine.bpm.flownode.HumanTaskInstance> getHumanTaskInstances(long rootProcessInstanceId,
java.lang.String taskName,
int startIndex,
int maxResults)
getHumanTaskInstances in interface org.bonitasoft.engine.api.ProcessRuntimeAPIpublic org.bonitasoft.engine.bpm.flownode.HumanTaskInstance getLastStateHumanTaskInstance(long rootProcessInstanceId,
java.lang.String taskName)
throws org.bonitasoft.engine.exception.NotFoundException
getLastStateHumanTaskInstance in interface org.bonitasoft.engine.api.ProcessRuntimeAPIorg.bonitasoft.engine.exception.NotFoundExceptionpublic 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
searchUsersWhoCanStartProcessDefinition in interface org.bonitasoft.engine.api.ProcessManagementAPIorg.bonitasoft.engine.exception.SearchExceptionpublic 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
evaluateExpressionsAtProcessInstanciation in interface org.bonitasoft.engine.api.ProcessRuntimeAPIorg.bonitasoft.engine.expression.ExpressionEvaluationExceptionpublic 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
evaluateExpressionOnCompletedProcessInstance in interface org.bonitasoft.engine.api.ProcessRuntimeAPIorg.bonitasoft.engine.expression.ExpressionEvaluationExceptionpublic 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
evaluateExpressionsOnProcessInstance in interface org.bonitasoft.engine.api.ProcessRuntimeAPIorg.bonitasoft.engine.expression.ExpressionEvaluationExceptionpublic 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
evaluateExpressionsOnProcessDefinition in interface org.bonitasoft.engine.api.ProcessRuntimeAPIorg.bonitasoft.engine.expression.ExpressionEvaluationExceptionpublic 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
evaluateExpressionsOnActivityInstance in interface org.bonitasoft.engine.api.ProcessRuntimeAPIorg.bonitasoft.engine.expression.ExpressionEvaluationExceptionpublic 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
evaluateExpressionsOnCompletedActivityInstance in interface org.bonitasoft.engine.api.ProcessRuntimeAPIorg.bonitasoft.engine.expression.ExpressionEvaluationExceptionprotected 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 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)
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 org.bonitasoft.engine.bpm.process.ArchivedProcessInstance getLastArchivedProcessInstance(long processInstanceId)
throws SBonitaException
SBonitaExceptionpublic java.util.List<org.bonitasoft.engine.job.FailedJob> getFailedJobs(int startIndex,
int maxResults)
getFailedJobs in interface org.bonitasoft.engine.api.ProcessRuntimeAPIpublic void replayFailedJob(long jobDescriptorId)
throws org.bonitasoft.engine.exception.ExecutionException
replayFailedJob in interface org.bonitasoft.engine.api.ProcessRuntimeAPIorg.bonitasoft.engine.exception.ExecutionExceptionpublic void replayFailedJob(long jobDescriptorId,
java.util.Map<java.lang.String,java.io.Serializable> parameters)
throws org.bonitasoft.engine.exception.ExecutionException
replayFailedJob in interface org.bonitasoft.engine.api.ProcessRuntimeAPIorg.bonitasoft.engine.exception.ExecutionExceptionprotected java.util.List<SJobParameter> getJobParameters(java.util.Map<java.lang.String,java.io.Serializable> parameters)
protected SJobParameter buildSJobParameter(java.lang.String parameterKey, java.io.Serializable parameterValue)
protected SJobParameterBuilderFactory getSJobParameterBuilderFactory()
public org.bonitasoft.engine.bpm.data.ArchivedDataInstance getArchivedProcessDataInstance(java.lang.String dataName,
long sourceProcessInstanceId)
throws org.bonitasoft.engine.bpm.data.ArchivedDataNotFoundException
getArchivedProcessDataInstance in interface org.bonitasoft.engine.api.ProcessRuntimeAPIorg.bonitasoft.engine.bpm.data.ArchivedDataNotFoundExceptionpublic org.bonitasoft.engine.bpm.data.ArchivedDataInstance getArchivedActivityDataInstance(java.lang.String dataName,
long sourceActivityInstanceId)
throws org.bonitasoft.engine.bpm.data.ArchivedDataNotFoundException
getArchivedActivityDataInstance in interface org.bonitasoft.engine.api.ProcessRuntimeAPIorg.bonitasoft.engine.bpm.data.ArchivedDataNotFoundExceptionpublic java.util.List<org.bonitasoft.engine.bpm.data.ArchivedDataInstance> getArchivedProcessDataInstances(long sourceProcessInstanceId,
int startIndex,
int maxResults)
getArchivedProcessDataInstances in interface org.bonitasoft.engine.api.ProcessRuntimeAPIpublic java.util.List<org.bonitasoft.engine.bpm.data.ArchivedDataInstance> getArchivedActivityDataInstances(long sourceActivityInstanceId,
int startIndex,
int maxResults)
getArchivedActivityDataInstances in interface org.bonitasoft.engine.api.ProcessRuntimeAPIpublic java.util.List<org.bonitasoft.engine.identity.User> getPossibleUsersOfPendingHumanTask(long humanTaskInstanceId,
int startIndex,
int maxResults)
getPossibleUsersOfPendingHumanTask in interface org.bonitasoft.engine.api.ProcessRuntimeAPIpublic java.util.List<org.bonitasoft.engine.identity.User> getPossibleUsersOfHumanTask(long processDefinitionId,
java.lang.String humanTaskName,
int startIndex,
int maxResults)
getPossibleUsersOfHumanTask in interface org.bonitasoft.engine.api.ProcessManagementAPIpublic java.util.List<java.lang.Long> getUserIdsForActor(long processDefinitionId,
java.lang.String actorName,
int startIndex,
int maxResults)
getUserIdsForActor in interface org.bonitasoft.engine.api.ProcessManagementAPIpublic org.bonitasoft.engine.search.SearchResult<org.bonitasoft.engine.identity.User> searchUsersWhoCanExecutePendingHumanTask(long humanTaskInstanceId,
org.bonitasoft.engine.search.SearchOptions searchOptions)
searchUsersWhoCanExecutePendingHumanTask in interface org.bonitasoft.engine.api.ProcessRuntimeAPIpublic 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
searchAssignedAndPendingHumanTasksFor in interface org.bonitasoft.engine.api.ProcessRuntimeAPIorg.bonitasoft.engine.exception.SearchExceptionpublic 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
searchAssignedAndPendingHumanTasks in interface org.bonitasoft.engine.api.ProcessRuntimeAPIorg.bonitasoft.engine.exception.SearchExceptionpublic org.bonitasoft.engine.search.SearchResult<org.bonitasoft.engine.bpm.flownode.HumanTaskInstance> searchAssignedAndPendingHumanTasks(org.bonitasoft.engine.search.SearchOptions searchOptions)
throws org.bonitasoft.engine.exception.SearchException
searchAssignedAndPendingHumanTasks in interface org.bonitasoft.engine.api.ProcessRuntimeAPIorg.bonitasoft.engine.exception.SearchExceptionpublic org.bonitasoft.engine.bpm.contract.ContractDefinition getUserTaskContract(long userTaskId)
throws org.bonitasoft.engine.bpm.flownode.UserTaskNotFoundException
getUserTaskContract in interface org.bonitasoft.engine.api.ProcessRuntimeAPIorg.bonitasoft.engine.bpm.flownode.UserTaskNotFoundExceptionpublic org.bonitasoft.engine.bpm.contract.ContractDefinition getProcessContract(long processDefinitionId)
throws org.bonitasoft.engine.bpm.process.ProcessDefinitionNotFoundException
getProcessContract in interface org.bonitasoft.engine.api.ProcessRuntimeAPIorg.bonitasoft.engine.bpm.process.ProcessDefinitionNotFoundExceptionpublic 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
executeUserTask in interface org.bonitasoft.engine.api.ProcessRuntimeAPIorg.bonitasoft.engine.bpm.flownode.FlowNodeExecutionExceptionorg.bonitasoft.engine.bpm.contract.ContractViolationExceptionorg.bonitasoft.engine.bpm.flownode.UserTaskNotFoundExceptionpublic 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
executeUserTask in interface org.bonitasoft.engine.api.ProcessRuntimeAPIorg.bonitasoft.engine.bpm.flownode.FlowNodeExecutionExceptionorg.bonitasoft.engine.bpm.contract.ContractViolationExceptionorg.bonitasoft.engine.bpm.flownode.UserTaskNotFoundExceptionprotected 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
userId - the id of the user executing the taskflowNodeInstanceId - inputs - shouldBeReadyTask - if true the method will only accept to execute human task in ready stateorg.bonitasoft.engine.bpm.contract.ContractViolationExceptionSBonitaExceptionpublic org.bonitasoft.engine.bpm.document.Document removeDocument(long documentId)
throws org.bonitasoft.engine.bpm.document.DocumentNotFoundException,
org.bonitasoft.engine.exception.DeletionException
removeDocument in interface org.bonitasoft.engine.api.DocumentAPIorg.bonitasoft.engine.bpm.document.DocumentNotFoundExceptionorg.bonitasoft.engine.exception.DeletionExceptionpublic 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
getDocumentList in interface org.bonitasoft.engine.api.DocumentAPIorg.bonitasoft.engine.bpm.document.DocumentNotFoundExceptionpublic 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
setDocumentList in interface org.bonitasoft.engine.api.DocumentAPIorg.bonitasoft.engine.bpm.document.DocumentExceptionorg.bonitasoft.engine.bpm.document.DocumentNotFoundExceptionpublic void deleteContentOfArchivedDocument(long archivedDocumentId)
throws org.bonitasoft.engine.bpm.document.DocumentException,
org.bonitasoft.engine.bpm.document.DocumentNotFoundException
deleteContentOfArchivedDocument in interface org.bonitasoft.engine.api.DocumentAPIorg.bonitasoft.engine.bpm.document.DocumentExceptionorg.bonitasoft.engine.bpm.document.DocumentNotFoundExceptionpublic 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
addDocument in interface org.bonitasoft.engine.api.DocumentAPIorg.bonitasoft.engine.bpm.process.ProcessInstanceNotFoundExceptionorg.bonitasoft.engine.bpm.document.DocumentAttachmentExceptionorg.bonitasoft.engine.exception.AlreadyExistsExceptionpublic 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
updateDocument in interface org.bonitasoft.engine.api.DocumentAPIorg.bonitasoft.engine.bpm.process.ProcessInstanceNotFoundExceptionorg.bonitasoft.engine.bpm.document.DocumentAttachmentExceptionorg.bonitasoft.engine.exception.AlreadyExistsExceptionpublic void purgeClassLoader(long processDefinitionId)
throws org.bonitasoft.engine.bpm.process.ProcessDefinitionNotFoundException,
org.bonitasoft.engine.exception.UpdateException
purgeClassLoader in interface org.bonitasoft.engine.api.ProcessManagementAPIorg.bonitasoft.engine.bpm.process.ProcessDefinitionNotFoundExceptionorg.bonitasoft.engine.exception.UpdateExceptionpublic java.io.Serializable getUserTaskContractVariableValue(long userTaskInstanceId,
java.lang.String name)
throws org.bonitasoft.engine.exception.ContractDataNotFoundException
getUserTaskContractVariableValue in interface org.bonitasoft.engine.api.ProcessRuntimeAPIorg.bonitasoft.engine.exception.ContractDataNotFoundExceptionpublic java.io.Serializable getProcessInputValueDuringInitialization(long processInstanceId,
java.lang.String name)
throws org.bonitasoft.engine.exception.ContractDataNotFoundException
getProcessInputValueDuringInitialization in interface org.bonitasoft.engine.api.ProcessRuntimeAPIorg.bonitasoft.engine.exception.ContractDataNotFoundExceptionpublic java.io.Serializable getProcessInputValueAfterInitialization(long processInstanceId,
java.lang.String name)
throws org.bonitasoft.engine.exception.ContractDataNotFoundException
getProcessInputValueAfterInitialization in interface org.bonitasoft.engine.api.ProcessRuntimeAPIorg.bonitasoft.engine.exception.ContractDataNotFoundExceptionpublic int getNumberOfParameterInstances(long processDefinitionId)
getNumberOfParameterInstances in interface org.bonitasoft.engine.api.ProcessManagementAPIpublic org.bonitasoft.engine.bpm.parameter.ParameterInstance getParameterInstance(long processDefinitionId,
java.lang.String parameterName)
throws org.bonitasoft.engine.exception.NotFoundException
getParameterInstance in interface org.bonitasoft.engine.api.ProcessManagementAPIorg.bonitasoft.engine.exception.NotFoundExceptionpublic java.util.List<org.bonitasoft.engine.bpm.parameter.ParameterInstance> getParameterInstances(long processDefinitionId,
int startIndex,
int maxResults,
org.bonitasoft.engine.bpm.parameter.ParameterCriterion sort)
getParameterInstances in interface org.bonitasoft.engine.api.ProcessManagementAPIpublic java.util.Map<java.lang.String,java.io.Serializable> getUserTaskExecutionContext(long userTaskInstanceId)
throws org.bonitasoft.engine.bpm.flownode.UserTaskNotFoundException,
org.bonitasoft.engine.expression.ExpressionEvaluationException
getUserTaskExecutionContext in interface org.bonitasoft.engine.api.ProcessRuntimeAPIorg.bonitasoft.engine.bpm.flownode.UserTaskNotFoundExceptionorg.bonitasoft.engine.expression.ExpressionEvaluationExceptionpublic java.util.Map<java.lang.String,java.io.Serializable> getArchivedUserTaskExecutionContext(long archivedUserTaskInstanceId)
throws org.bonitasoft.engine.bpm.flownode.UserTaskNotFoundException,
org.bonitasoft.engine.expression.ExpressionEvaluationException
getArchivedUserTaskExecutionContext in interface org.bonitasoft.engine.api.ProcessRuntimeAPIorg.bonitasoft.engine.bpm.flownode.UserTaskNotFoundExceptionorg.bonitasoft.engine.expression.ExpressionEvaluationExceptionpublic java.util.Map<java.lang.String,java.io.Serializable> getProcessInstanceExecutionContext(long processInstanceId)
throws org.bonitasoft.engine.bpm.process.ProcessInstanceNotFoundException,
org.bonitasoft.engine.expression.ExpressionEvaluationException
getProcessInstanceExecutionContext in interface org.bonitasoft.engine.api.ProcessRuntimeAPIorg.bonitasoft.engine.bpm.process.ProcessInstanceNotFoundExceptionorg.bonitasoft.engine.expression.ExpressionEvaluationExceptionpublic java.util.Map<java.lang.String,java.io.Serializable> getArchivedProcessInstanceExecutionContext(long archivedProcessInstanceId)
throws org.bonitasoft.engine.bpm.process.ProcessInstanceNotFoundException,
org.bonitasoft.engine.expression.ExpressionEvaluationException
getArchivedProcessInstanceExecutionContext in interface org.bonitasoft.engine.api.ProcessRuntimeAPIorg.bonitasoft.engine.bpm.process.ProcessInstanceNotFoundExceptionorg.bonitasoft.engine.expression.ExpressionEvaluationExceptionpublic org.bonitasoft.engine.search.SearchResult<org.bonitasoft.engine.form.FormMapping> searchFormMappings(org.bonitasoft.engine.search.SearchOptions searchOptions)
throws org.bonitasoft.engine.exception.SearchException
searchFormMappings in interface org.bonitasoft.engine.api.ProcessManagementAPIorg.bonitasoft.engine.exception.SearchExceptionpublic org.bonitasoft.engine.form.FormMapping getFormMapping(long formMappingId)
throws org.bonitasoft.engine.exception.FormMappingNotFoundException
getFormMapping in interface org.bonitasoft.engine.api.ProcessManagementAPIorg.bonitasoft.engine.exception.FormMappingNotFoundException