public class ProcessAPIImpl extends Object implements ProcessAPI
| Modifier and Type | Field and Description |
|---|---|
protected ProcessConfigurationAPIImpl |
processConfigurationAPI |
| Constructor and Description |
|---|
ProcessAPIImpl() |
ProcessAPIImpl(ProcessManagementAPIImplDelegate processManagementAPIDelegate,
DocumentAPI documentAPI,
ProcessConfigurationAPIImpl processConfigurationAPI) |
protected final ProcessConfigurationAPIImpl processConfigurationAPI
public ProcessAPIImpl()
public ProcessAPIImpl(ProcessManagementAPIImplDelegate processManagementAPIDelegate, DocumentAPI documentAPI, ProcessConfigurationAPIImpl processConfigurationAPI)
protected ProcessManagementAPIImplDelegate instantiateProcessManagementAPIDelegate()
public SearchResult<HumanTaskInstance> searchHumanTaskInstances(SearchOptions searchOptions) throws SearchException
searchHumanTaskInstances in interface ProcessRuntimeAPISearchExceptionpublic void deleteProcessDefinition(long processDefinitionId)
throws DeletionException
deleteProcessDefinition in interface ProcessManagementAPIDeletionExceptionpublic void deleteProcessDefinitions(List<Long> processDefinitionIds) throws DeletionException
deleteProcessDefinitions in interface ProcessManagementAPIDeletionException@Deprecated public void deleteProcess(long processDefinitionId) throws DeletionException
deleteProcess in interface ProcessManagementAPIDeletionException@Deprecated public void deleteProcesses(List<Long> processDefinitionIds) throws DeletionException
deleteProcesses in interface ProcessManagementAPIDeletionExceptionpublic ProcessDefinition deployAndEnableProcess(DesignProcessDefinition designProcessDefinition) throws ProcessDeployException, ProcessEnablementException, AlreadyExistsException, InvalidProcessDefinitionException
deployAndEnableProcess in interface ProcessManagementAPIProcessDeployExceptionProcessEnablementExceptionAlreadyExistsExceptionInvalidProcessDefinitionExceptionpublic ProcessDefinition deployAndEnableProcess(BusinessArchive businessArchive) throws ProcessDeployException, ProcessEnablementException, AlreadyExistsException
deployAndEnableProcess in interface ProcessManagementAPIProcessDeployExceptionProcessEnablementExceptionAlreadyExistsExceptionpublic ProcessDefinition deploy(DesignProcessDefinition designProcessDefinition) throws AlreadyExistsException, ProcessDeployException
deploy in interface ProcessManagementAPIAlreadyExistsExceptionProcessDeployExceptionpublic ProcessDefinition deploy(BusinessArchive businessArchive) throws ProcessDeployException, AlreadyExistsException
deploy in interface ProcessManagementAPIProcessDeployExceptionAlreadyExistsExceptionpublic void importActorMapping(long pDefinitionId,
byte[] actorMappingXML)
throws ActorMappingImportException
importActorMapping in interface ProcessManagementAPIActorMappingImportExceptionpublic byte[] exportBarProcessContentUnderHome(long processDefinitionId)
throws ProcessExportException
exportBarProcessContentUnderHome in interface ProcessManagementAPIProcessExportExceptionprotected void unzipBar(BusinessArchive businessArchive, SProcessDefinition sProcessDefinition, long tenantId) throws BonitaHomeNotSetException, IOException
BonitaHomeNotSetExceptionIOException@Deprecated public void disableAndDelete(long processDefinitionId) throws ProcessDefinitionNotFoundException, ProcessActivationException, DeletionException
disableAndDelete in interface ProcessManagementAPIProcessDefinitionNotFoundExceptionProcessActivationExceptionDeletionExceptionpublic void disableAndDeleteProcessDefinition(long processDefinitionId)
throws ProcessDefinitionNotFoundException,
ProcessActivationException,
DeletionException
disableAndDeleteProcessDefinition in interface ProcessManagementAPIProcessDefinitionNotFoundExceptionProcessActivationExceptionDeletionExceptionpublic void disableProcess(long processDefinitionId)
throws ProcessDefinitionNotFoundException,
ProcessActivationException
disableProcess in interface ProcessManagementAPIProcessDefinitionNotFoundExceptionProcessActivationExceptionpublic void enableProcess(long processDefinitionId)
throws ProcessDefinitionNotFoundException,
ProcessEnablementException
enableProcess in interface ProcessManagementAPIProcessDefinitionNotFoundExceptionProcessEnablementExceptionpublic void executeFlowNode(long flownodeInstanceId)
throws FlowNodeExecutionException
executeFlowNode in interface ProcessRuntimeAPIFlowNodeExecutionExceptionpublic void executeFlowNode(long userId,
long flownodeInstanceId)
throws FlowNodeExecutionException
executeFlowNode in interface ProcessRuntimeAPIFlowNodeExecutionExceptionprotected void executeFlowNode(long userId,
long flownodeInstanceId,
boolean wrapInTransaction)
throws FlowNodeExecutionException
FlowNodeExecutionExceptionpublic List<ActivityInstance> getActivities(long processInstanceId, int startIndex, int maxResults)
getActivities in interface ProcessRuntimeAPIpublic long getNumberOfProcessDeploymentInfos()
getNumberOfProcessDeploymentInfos in interface ProcessManagementAPIpublic ProcessDefinition getProcessDefinition(long processDefinitionId) throws ProcessDefinitionNotFoundException
getProcessDefinition in interface ProcessManagementAPIProcessDefinitionNotFoundExceptionpublic DesignProcessDefinition getDesignProcessDefinition(long processDefinitionId) throws ProcessDefinitionNotFoundException
getDesignProcessDefinition in interface ProcessManagementAPIProcessDefinitionNotFoundExceptionpublic ProcessDeploymentInfo getProcessDeploymentInfo(long processDefinitionId) throws ProcessDefinitionNotFoundException
getProcessDeploymentInfo in interface ProcessManagementAPIProcessDefinitionNotFoundExceptionpublic ProcessInstance getProcessInstance(long processInstanceId) throws ProcessInstanceNotFoundException
getProcessInstance in interface ProcessRuntimeAPIProcessInstanceNotFoundExceptionprotected org.bonitasoft.engine.core.process.instance.model.SProcessInstance getSProcessInstance(long processInstanceId)
throws org.bonitasoft.engine.core.process.instance.api.exceptions.SProcessInstanceNotFoundException,
org.bonitasoft.engine.core.process.instance.api.exceptions.SProcessInstanceReadException
org.bonitasoft.engine.core.process.instance.api.exceptions.SProcessInstanceNotFoundExceptionorg.bonitasoft.engine.core.process.instance.api.exceptions.SProcessInstanceReadExceptionpublic List<ArchivedProcessInstance> getArchivedProcessInstances(long processInstanceId, int startIndex, int maxResults)
getArchivedProcessInstances in interface ProcessRuntimeAPIpublic ArchivedProcessInstance getArchivedProcessInstance(long id) throws ArchivedProcessInstanceNotFoundException, RetrieveException
getArchivedProcessInstance in interface ProcessRuntimeAPIArchivedProcessInstanceNotFoundExceptionRetrieveExceptionprotected ArchivedProcessInstance toArchivedProcessInstance(org.bonitasoft.engine.core.process.instance.model.archive.SAProcessInstance archivedProcessInstance, SProcessDefinition sProcessDefinition)
public ArchivedProcessInstance getFinalArchivedProcessInstance(long processInstanceId) throws ArchivedProcessInstanceNotFoundException
getFinalArchivedProcessInstance in interface ProcessRuntimeAPIArchivedProcessInstanceNotFoundExceptionpublic ProcessInstance startProcess(long processDefinitionId) throws ProcessActivationException, ProcessExecutionException
startProcess in interface ProcessRuntimeAPIProcessActivationExceptionProcessExecutionExceptionpublic ProcessInstance startProcess(long userId, long processDefinitionId) throws ProcessDefinitionNotFoundException, ProcessExecutionException, ProcessActivationException
startProcess in interface ProcessRuntimeAPIProcessDefinitionNotFoundExceptionProcessExecutionExceptionProcessActivationExceptionpublic int getNumberOfActors(long processDefinitionId)
throws ProcessDefinitionNotFoundException
getNumberOfActors in interface ProcessManagementAPIProcessDefinitionNotFoundExceptionpublic List<ActorInstance> getActors(long processDefinitionId, int startIndex, int maxResults, ActorCriterion sort)
getActors in interface ProcessManagementAPIpublic List<ActorMember> getActorMembers(long actorId, int startIndex, int maxResults)
getActorMembers in interface ProcessManagementAPIpublic long getNumberOfActorMembers(long actorId)
getNumberOfActorMembers in interface ProcessManagementAPIpublic long getNumberOfUsersOfActor(long actorId)
getNumberOfUsersOfActor in interface ProcessManagementAPIpublic long getNumberOfRolesOfActor(long actorId)
getNumberOfRolesOfActor in interface ProcessManagementAPIpublic long getNumberOfGroupsOfActor(long actorId)
getNumberOfGroupsOfActor in interface ProcessManagementAPIpublic long getNumberOfMembershipsOfActor(long actorId)
getNumberOfMembershipsOfActor in interface ProcessManagementAPIpublic ActorInstance updateActor(long actorId, ActorUpdater descriptor) throws ActorNotFoundException, UpdateException
updateActor in interface ProcessManagementAPIActorNotFoundExceptionUpdateExceptionpublic ActorMember addUserToActor(long actorId, long userId) throws CreationException
addUserToActor in interface ProcessManagementAPICreationExceptionpublic ActorMember addUserToActor(String actorName, ProcessDefinition processDefinition, long userId) throws CreationException, ActorNotFoundException
addUserToActor in interface ProcessManagementAPICreationExceptionActorNotFoundExceptionpublic ActorMember addGroupToActor(long actorId, long groupId) throws CreationException
addGroupToActor in interface ProcessManagementAPICreationExceptionpublic ActorMember addGroupToActor(String actorName, long groupId, ProcessDefinition processDefinition) throws CreationException, ActorNotFoundException
addGroupToActor in interface ProcessManagementAPICreationExceptionActorNotFoundExceptionpublic ActorMember addRoleToActor(long actorId, long roleId) throws CreationException
addRoleToActor in interface ProcessManagementAPICreationExceptionpublic ActorMember addRoleToActor(String actorName, ProcessDefinition processDefinition, long roleId) throws ActorNotFoundException, CreationException
addRoleToActor in interface ProcessManagementAPIActorNotFoundExceptionCreationExceptionpublic ActorMember addRoleAndGroupToActor(String actorName, ProcessDefinition processDefinition, long roleId, long groupId) throws ActorNotFoundException, CreationException
addRoleAndGroupToActor in interface ProcessManagementAPIActorNotFoundExceptionCreationExceptionpublic ActorMember addRoleAndGroupToActor(long actorId, long roleId, long groupId) throws CreationException
addRoleAndGroupToActor in interface ProcessManagementAPICreationExceptionpublic void removeActorMember(long actorMemberId)
throws DeletionException
removeActorMember in interface ProcessManagementAPIDeletionExceptionpublic ActorInstance getActor(long actorId) throws ActorNotFoundException
getActor in interface ProcessManagementAPIActorNotFoundExceptionpublic ActivityInstance getActivityInstance(long activityInstanceId) throws ActivityInstanceNotFoundException
getActivityInstance in interface ProcessRuntimeAPIActivityInstanceNotFoundExceptionprotected org.bonitasoft.engine.core.process.instance.model.SActivityInstance getSActivityInstance(long activityInstanceId)
throws org.bonitasoft.engine.core.process.instance.api.exceptions.SActivityInstanceNotFoundException,
org.bonitasoft.engine.core.process.instance.api.exceptions.SActivityReadException
org.bonitasoft.engine.core.process.instance.api.exceptions.SActivityInstanceNotFoundExceptionorg.bonitasoft.engine.core.process.instance.api.exceptions.SActivityReadExceptionpublic FlowNodeInstance getFlowNodeInstance(long flowNodeInstanceId) throws FlowNodeInstanceNotFoundException
getFlowNodeInstance in interface ProcessRuntimeAPIFlowNodeInstanceNotFoundExceptionpublic List<HumanTaskInstance> getAssignedHumanTaskInstances(long userId, int startIndex, int maxResults, ActivityInstanceCriterion pagingCriterion)
getAssignedHumanTaskInstances in interface ProcessRuntimeAPIpublic long getNumberOfPendingHumanTaskInstances(long userId)
getNumberOfPendingHumanTaskInstances in interface ProcessRuntimeAPIpublic List<HumanTaskInstance> getPendingHumanTaskInstances(long userId, int startIndex, int maxResults, ActivityInstanceCriterion pagingCriterion)
getPendingHumanTaskInstances in interface ProcessRuntimeAPIpublic ArchivedActivityInstance getArchivedActivityInstance(long activityInstanceId) throws ActivityInstanceNotFoundException
getArchivedActivityInstance in interface ProcessRuntimeAPIActivityInstanceNotFoundExceptionpublic ArchivedFlowNodeInstance getArchivedFlowNodeInstance(long archivedFlowNodeInstanceId) throws ArchivedFlowNodeInstanceNotFoundException, RetrieveException
getArchivedFlowNodeInstance in interface ProcessRuntimeAPIArchivedFlowNodeInstanceNotFoundExceptionRetrieveExceptionpublic List<ProcessInstance> getProcessInstances(int startIndex, int maxResults, ProcessInstanceCriterion criterion)
getProcessInstances in interface ProcessRuntimeAPIpublic long getNumberOfProcessInstances()
getNumberOfProcessInstances in interface ProcessRuntimeAPIprotected SearchResult<ProcessInstance> searchProcessInstances(TenantServiceAccessor tenantAccessor, SearchOptions searchOptions) throws org.bonitasoft.engine.commons.exceptions.SBonitaException
org.bonitasoft.engine.commons.exceptions.SBonitaExceptionpublic List<ArchivedProcessInstance> getArchivedProcessInstances(int startIndex, int maxResults, ProcessInstanceCriterion criterion)
getArchivedProcessInstances in interface ProcessRuntimeAPIpublic long getNumberOfArchivedProcessInstances()
getNumberOfArchivedProcessInstances in interface ProcessRuntimeAPIpublic SearchResult<ArchivedProcessInstance> searchArchivedProcessInstances(SearchOptions searchOptions) throws RetrieveException, SearchException
searchArchivedProcessInstances in interface ProcessRuntimeAPIRetrieveExceptionSearchExceptionpublic SearchResult<ArchivedProcessInstance> searchArchivedProcessInstancesInAllStates(SearchOptions searchOptions) throws SearchException
searchArchivedProcessInstancesInAllStates in interface ProcessRuntimeAPISearchExceptionpublic List<ActivityInstance> getOpenActivityInstances(long processInstanceId, int startIndex, int maxResults, ActivityInstanceCriterion criterion)
getOpenActivityInstances in interface ProcessRuntimeAPIpublic List<ArchivedActivityInstance> getArchivedActivityInstances(long processInstanceId, int startIndex, int maxResults, ActivityInstanceCriterion criterion)
getArchivedActivityInstances in interface ProcessRuntimeAPIpublic int getNumberOfOpenedActivityInstances(long processInstanceId)
getNumberOfOpenedActivityInstances in interface ProcessRuntimeAPIpublic Category createCategory(String name, String description) throws AlreadyExistsException, CreationException
createCategory in interface ProcessManagementAPIAlreadyExistsExceptionCreationExceptionpublic Category getCategory(long categoryId) throws CategoryNotFoundException
getCategory in interface ProcessManagementAPICategoryNotFoundExceptionpublic long getNumberOfCategories()
getNumberOfCategories in interface ProcessManagementAPIpublic List<Category> getCategories(int startIndex, int maxResults, CategoryCriterion sortCriterion)
getCategories in interface ProcessManagementAPIpublic void addCategoriesToProcess(long processDefinitionId,
List<Long> categoryIds)
throws AlreadyExistsException,
CreationException
addCategoriesToProcess in interface ProcessManagementAPIAlreadyExistsExceptionCreationExceptionpublic void removeCategoriesFromProcess(long processDefinitionId,
List<Long> categoryIds)
throws DeletionException
removeCategoriesFromProcess in interface ProcessManagementAPIDeletionExceptionpublic void addProcessDefinitionToCategory(long categoryId,
long processDefinitionId)
throws AlreadyExistsException,
CreationException
addProcessDefinitionToCategory in interface ProcessManagementAPIAlreadyExistsExceptionCreationExceptionpublic void addProcessDefinitionsToCategory(long categoryId,
List<Long> processDefinitionIds)
throws AlreadyExistsException,
CreationException
addProcessDefinitionsToCategory in interface ProcessManagementAPIAlreadyExistsExceptionCreationExceptionpublic long getNumberOfCategories(long processDefinitionId)
getNumberOfCategories in interface ProcessManagementAPIpublic long getNumberOfProcessDefinitionsOfCategory(long categoryId)
getNumberOfProcessDefinitionsOfCategory in interface ProcessManagementAPIpublic List<ProcessDeploymentInfo> getProcessDeploymentInfosOfCategory(long categoryId, int startIndex, int maxResults, ProcessDeploymentInfoCriterion sortCriterion)
getProcessDeploymentInfosOfCategory in interface ProcessManagementAPIpublic List<Category> getCategoriesOfProcessDefinition(long processDefinitionId, int startIndex, int maxResults, CategoryCriterion sortingCriterion)
getCategoriesOfProcessDefinition in interface ProcessManagementAPIpublic List<Category> getCategoriesUnrelatedToProcessDefinition(long processDefinitionId, int startIndex, int maxResults, CategoryCriterion sortingCriterion)
getCategoriesUnrelatedToProcessDefinition in interface ProcessManagementAPIpublic void updateCategory(long categoryId,
CategoryUpdater updater)
throws CategoryNotFoundException,
UpdateException
updateCategory in interface ProcessManagementAPICategoryNotFoundExceptionUpdateExceptionpublic void deleteCategory(long categoryId)
throws DeletionException
deleteCategory in interface ProcessManagementAPIDeletionExceptionpublic long getNumberOfUncategorizedProcessDefinitions()
getNumberOfUncategorizedProcessDefinitions in interface ProcessManagementAPIpublic List<ProcessDeploymentInfo> getUncategorizedProcessDeploymentInfos(int startIndex, int maxResults, ProcessDeploymentInfoCriterion sortCriterion)
getUncategorizedProcessDeploymentInfos in interface ProcessManagementAPIpublic long getNumberOfProcessDeploymentInfosUnrelatedToCategory(long categoryId)
getNumberOfProcessDeploymentInfosUnrelatedToCategory in interface ProcessManagementAPIpublic List<ProcessDeploymentInfo> getProcessDeploymentInfosUnrelatedToCategory(long categoryId, int startIndex, int maxResults, ProcessDeploymentInfoCriterion sortingCriterion)
getProcessDeploymentInfosUnrelatedToCategory in interface ProcessManagementAPI@Deprecated public void removeAllCategoriesFromProcessDefinition(long processDefinitionId) throws DeletionException
removeAllCategoriesFromProcessDefinition in interface ProcessManagementAPIDeletionException@Deprecated public void removeAllProcessDefinitionsFromCategory(long categoryId) throws DeletionException
removeAllProcessDefinitionsFromCategory in interface ProcessManagementAPIDeletionExceptionpublic long removeCategoriesFromProcessDefinition(long processDefinitionId,
int startIndex,
int maxResults)
throws DeletionException
removeCategoriesFromProcessDefinition in interface ProcessManagementAPIDeletionExceptionpublic long removeProcessDefinitionsFromCategory(long categoryId,
int startIndex,
int maxResults)
throws DeletionException
removeProcessDefinitionsFromCategory in interface ProcessManagementAPIDeletionExceptionpublic List<EventInstance> getEventInstances(long rootContainerId, int startIndex, int maxResults, EventCriterion criterion)
getEventInstances in interface ProcessRuntimeAPIpublic void assignUserTask(long userTaskId,
long userId)
throws UpdateException
assignUserTask in interface ProcessRuntimeAPIUpdateExceptionpublic void updateActorsOfUserTask(long userTaskId)
throws UpdateException
updateActorsOfUserTask in interface ProcessRuntimeAPIUpdateExceptionpublic List<DataDefinition> getActivityDataDefinitions(long processDefinitionId, String activityName, int startIndex, int maxResults) throws ActivityDefinitionNotFoundException, ProcessDefinitionNotFoundException
getActivityDataDefinitions in interface ProcessManagementAPIActivityDefinitionNotFoundExceptionProcessDefinitionNotFoundExceptionpublic List<DataDefinition> getProcessDataDefinitions(long processDefinitionId, int startIndex, int maxResults) throws ProcessDefinitionNotFoundException
getProcessDataDefinitions in interface ProcessManagementAPIProcessDefinitionNotFoundExceptionpublic HumanTaskInstance getHumanTaskInstance(long activityInstanceId) throws ActivityInstanceNotFoundException
getHumanTaskInstance in interface ProcessRuntimeAPIActivityInstanceNotFoundExceptionpublic long getNumberOfAssignedHumanTaskInstances(long userId)
getNumberOfAssignedHumanTaskInstances in interface ProcessRuntimeAPIpublic Map<Long,Long> getNumberOfOpenTasks(List<Long> userIds)
getNumberOfOpenTasks in interface ProcessRuntimeAPIpublic Map<String,byte[]> getProcessResources(long processDefinitionId, String filenamesPattern) throws RetrieveException
getProcessResources in interface ProcessManagementAPIRetrieveExceptionpublic long getLatestProcessDefinitionId(String processName) throws ProcessDefinitionNotFoundException
getLatestProcessDefinitionId in interface ProcessManagementAPIProcessDefinitionNotFoundExceptionpublic List<DataInstance> getProcessDataInstances(long processInstanceId, int startIndex, int maxResults)
getProcessDataInstances in interface ProcessRuntimeAPIpublic DataInstance getProcessDataInstance(String dataName, long processInstanceId) throws DataNotFoundException
getProcessDataInstance in interface ProcessRuntimeAPIDataNotFoundExceptionpublic void updateProcessDataInstance(String dataName, long processInstanceId, Serializable dataValue) throws UpdateException
updateProcessDataInstance in interface ProcessRuntimeAPIUpdateExceptionpublic void updateProcessDataInstances(long processInstanceId,
Map<String,Serializable> dataNameValues)
throws UpdateException
updateProcessDataInstances in interface ProcessRuntimeAPIUpdateExceptionprotected void updateDataInstances(List<org.bonitasoft.engine.data.instance.model.SDataInstance> sDataInstances, Map<String,Serializable> dataNameValues, ClassLoader classLoader) throws ClassNotFoundException, UpdateException, org.bonitasoft.engine.data.instance.exception.SDataInstanceException
ClassNotFoundExceptionUpdateExceptionorg.bonitasoft.engine.data.instance.exception.SDataInstanceExceptionprotected void updateDataInstance(org.bonitasoft.engine.data.instance.api.DataInstanceService dataInstanceService,
org.bonitasoft.engine.data.instance.model.SDataInstance sDataInstance,
Serializable dataNewValue,
ClassLoader classLoader)
throws UpdateException,
org.bonitasoft.engine.data.instance.exception.SDataInstanceException
UpdateExceptionorg.bonitasoft.engine.data.instance.exception.SDataInstanceExceptionprotected void verifyTypeOfNewDataValue(org.bonitasoft.engine.data.instance.model.SDataInstance sDataInstance,
Serializable dataValue,
ClassLoader classLoader)
throws UpdateException
UpdateExceptionprotected ClassLoader getProcessInstanceClassloader(TenantServiceAccessor tenantAccessor, long processInstanceId) throws org.bonitasoft.engine.core.process.instance.api.exceptions.SProcessInstanceNotFoundException, org.bonitasoft.engine.core.process.instance.api.exceptions.SProcessInstanceReadException, org.bonitasoft.engine.classloader.SClassLoaderException
tenantAccessor - processInstanceId - org.bonitasoft.engine.core.process.instance.api.exceptions.SProcessInstanceNotFoundExceptionorg.bonitasoft.engine.core.process.instance.api.exceptions.SProcessInstanceReadExceptionorg.bonitasoft.engine.classloader.SClassLoaderExceptionpublic List<DataInstance> getActivityDataInstances(long activityInstanceId, int startIndex, int maxResults)
getActivityDataInstances in interface ProcessRuntimeAPIpublic DataInstance getActivityDataInstance(String dataName, long activityInstanceId) throws DataNotFoundException
getActivityDataInstance in interface ProcessRuntimeAPIDataNotFoundExceptionpublic void updateActivityDataInstance(String dataName, long activityInstanceId, Serializable dataValue) throws UpdateException
updateActivityDataInstance in interface ProcessRuntimeAPIUpdateExceptionpublic DataInstance getActivityTransientDataInstance(String dataName, long activityInstanceId) throws DataNotFoundException
getActivityTransientDataInstance in interface ProcessRuntimeAPIDataNotFoundExceptionprotected DataInstance convertModeltoDataInstance(org.bonitasoft.engine.data.instance.model.SDataInstance data)
public List<DataInstance> getActivityTransientDataInstances(long activityInstanceId, int startIndex, int maxResults)
getActivityTransientDataInstances in interface ProcessRuntimeAPIprotected List<DataInstance> convertModelToDataInstances(List<org.bonitasoft.engine.data.instance.model.SDataInstance> dataInstances)
public void updateActivityTransientDataInstance(String dataName, long activityInstanceId, Serializable dataValue) throws UpdateException
updateActivityTransientDataInstance in interface ProcessRuntimeAPIUpdateExceptionprotected void updateTransientData(String dataName, long activityInstanceId, Serializable dataValue, TransientDataService transientDataInstanceService, ClassLoader classLoader) throws org.bonitasoft.engine.data.instance.exception.SDataInstanceException, UpdateException
org.bonitasoft.engine.data.instance.exception.SDataInstanceExceptionUpdateExceptionpublic void importActorMapping(long processDefinitionId,
String xmlContent)
throws ActorMappingImportException
importActorMapping in interface ProcessManagementAPIActorMappingImportExceptionpublic String exportActorMapping(long processDefinitionId) throws ActorMappingExportException
exportActorMapping in interface ProcessManagementAPIActorMappingExportExceptionpublic boolean isInvolvedInProcessInstance(long userId,
long processInstanceId)
throws ProcessInstanceNotFoundException
isInvolvedInProcessInstance in interface ProcessRuntimeAPIProcessInstanceNotFoundExceptionpublic boolean isInvolvedInHumanTaskInstance(long userId,
long humanTaskInstanceId)
throws ActivityInstanceNotFoundException,
UserNotFoundException
isInvolvedInHumanTaskInstance in interface ProcessRuntimeAPIActivityInstanceNotFoundExceptionUserNotFoundExceptionpublic boolean isManagerOfUserInvolvedInProcessInstance(long managerUserId,
long processInstanceId)
throws ProcessInstanceNotFoundException,
BonitaException
isManagerOfUserInvolvedInProcessInstance in interface ProcessRuntimeAPIProcessInstanceNotFoundExceptionBonitaExceptionpublic long getProcessInstanceIdFromActivityInstanceId(long activityInstanceId)
throws ProcessInstanceNotFoundException
getProcessInstanceIdFromActivityInstanceId in interface ProcessRuntimeAPIProcessInstanceNotFoundExceptionpublic long getProcessDefinitionIdFromActivityInstanceId(long activityInstanceId)
throws ProcessDefinitionNotFoundException
getProcessDefinitionIdFromActivityInstanceId in interface ProcessRuntimeAPIProcessDefinitionNotFoundExceptionpublic long getProcessDefinitionIdFromProcessInstanceId(long processInstanceId)
throws ProcessDefinitionNotFoundException
getProcessDefinitionIdFromProcessInstanceId in interface ProcessRuntimeAPIProcessDefinitionNotFoundExceptionpublic Date getActivityReachedStateDate(long activityInstanceId, String stateName)
getActivityReachedStateDate in interface ProcessRuntimeAPIpublic Set<String> getSupportedStates(FlowNodeType nodeType)
getSupportedStates in interface ProcessManagementAPIpublic void updateActivityInstanceVariables(long activityInstanceId,
Map<String,Serializable> variables)
throws UpdateException
updateActivityInstanceVariables in interface ProcessRuntimeAPIUpdateExceptionpublic void updateActivityInstanceVariables(List<Operation> operations, long activityInstanceId, Map<String,Serializable> expressionContexts) throws UpdateException
updateActivityInstanceVariables in interface ProcessRuntimeAPIUpdateExceptionprotected org.bonitasoft.engine.core.operation.model.SOperation convertOperation(Operation operation)
protected List<org.bonitasoft.engine.core.operation.model.SOperation> convertOperations(List<Operation> operations)
public long getOneAssignedUserTaskInstanceOfProcessInstance(long processInstanceId,
long userId)
throws RetrieveException
getOneAssignedUserTaskInstanceOfProcessInstance in interface ProcessRuntimeAPIRetrieveExceptionpublic long getOneAssignedUserTaskInstanceOfProcessDefinition(long processDefinitionId,
long userId)
getOneAssignedUserTaskInstanceOfProcessDefinition in interface ProcessRuntimeAPIpublic String getActivityInstanceState(long activityInstanceId) throws ActivityInstanceNotFoundException
getActivityInstanceState in interface ProcessRuntimeAPIActivityInstanceNotFoundExceptionpublic boolean canExecuteTask(long activityInstanceId,
long userId)
throws ActivityInstanceNotFoundException,
RetrieveException
canExecuteTask in interface ProcessRuntimeAPIActivityInstanceNotFoundExceptionRetrieveExceptionpublic long getProcessDefinitionId(String name, String version) throws ProcessDefinitionNotFoundException
getProcessDefinitionId in interface ProcessManagementAPIProcessDefinitionNotFoundExceptionpublic void releaseUserTask(long userTaskId)
throws ActivityInstanceNotFoundException,
UpdateException
releaseUserTask in interface ProcessRuntimeAPIActivityInstanceNotFoundExceptionUpdateExceptionpublic void updateProcessDeploymentInfo(long processDefinitionId,
ProcessDeploymentInfoUpdater processDeploymentInfoUpdater)
throws ProcessDefinitionNotFoundException,
UpdateException
updateProcessDeploymentInfo in interface ProcessManagementAPIProcessDefinitionNotFoundExceptionUpdateExceptionpublic List<ProcessDeploymentInfo> getStartableProcessDeploymentInfosForActors(Set<Long> actorIds, int startIndex, int maxResults, ProcessDeploymentInfoCriterion sortingCriterion)
getStartableProcessDeploymentInfosForActors in interface ProcessManagementAPIpublic boolean isAllowedToStartProcess(long processDefinitionId,
Set<Long> actorIds)
isAllowedToStartProcess in interface ProcessManagementAPIpublic ActorInstance getActorInitiator(long processDefinitionId) throws ActorNotFoundException, ProcessDefinitionNotFoundException
getActorInitiator in interface ProcessManagementAPIActorNotFoundExceptionProcessDefinitionNotFoundExceptionpublic int getNumberOfActivityDataDefinitions(long processDefinitionId,
String activityName)
throws ProcessDefinitionNotFoundException,
ActivityDefinitionNotFoundException
getNumberOfActivityDataDefinitions in interface ProcessManagementAPIProcessDefinitionNotFoundExceptionActivityDefinitionNotFoundExceptionpublic int getNumberOfProcessDataDefinitions(long processDefinitionId)
throws ProcessDefinitionNotFoundException
getNumberOfProcessDataDefinitions in interface ProcessManagementAPIProcessDefinitionNotFoundExceptionpublic ProcessInstance startProcess(long processDefinitionId, Map<String,Serializable> initialVariables) throws ProcessDefinitionNotFoundException, ProcessActivationException, ProcessExecutionException
startProcess in interface ProcessRuntimeAPIProcessDefinitionNotFoundExceptionProcessActivationExceptionProcessExecutionExceptionpublic ProcessInstance startProcessWithInputs(long processDefinitionId, Map<String,Serializable> instantiationInputs) throws ProcessDefinitionNotFoundException, ProcessActivationException, ProcessExecutionException, ContractViolationException
startProcessWithInputs in interface ProcessRuntimeAPIProcessDefinitionNotFoundExceptionProcessActivationExceptionProcessExecutionExceptionContractViolationExceptionpublic ProcessInstance startProcessWithInputs(long userId, long processDefinitionId, Map<String,Serializable> instantiationInputs) throws ProcessDefinitionNotFoundException, ProcessActivationException, ProcessExecutionException, ContractViolationException
startProcessWithInputs in interface ProcessRuntimeAPIProcessDefinitionNotFoundExceptionProcessActivationExceptionProcessExecutionExceptionContractViolationExceptionpublic ProcessInstance startProcess(long userId, long processDefinitionId, Map<String,Serializable> initialVariables) throws ProcessDefinitionNotFoundException, ProcessActivationException, ProcessExecutionException
startProcess in interface ProcessRuntimeAPIProcessDefinitionNotFoundExceptionProcessActivationExceptionProcessExecutionExceptionprotected List<Operation> createSetDataOperation(long processDefinitionId, Map<String,Serializable> initialVariables) throws ProcessExecutionException
ProcessExecutionExceptionpublic ProcessInstance startProcess(long processDefinitionId, List<Operation> operations, Map<String,Serializable> context) throws ProcessExecutionException, ProcessDefinitionNotFoundException, ProcessActivationException
startProcess in interface ProcessRuntimeAPIProcessExecutionExceptionProcessDefinitionNotFoundExceptionProcessActivationExceptionpublic ProcessInstance startProcess(long userId, long processDefinitionId, List<Operation> operations, Map<String,Serializable> context) throws ProcessDefinitionNotFoundException, ProcessActivationException, ProcessExecutionException
startProcess in interface ProcessRuntimeAPIProcessDefinitionNotFoundExceptionProcessActivationExceptionProcessExecutionExceptionpublic long getNumberOfActivityDataInstances(long activityInstanceId)
throws ActivityInstanceNotFoundException
getNumberOfActivityDataInstances in interface ProcessRuntimeAPIActivityInstanceNotFoundExceptionpublic long getNumberOfProcessDataInstances(long processInstanceId)
throws ProcessInstanceNotFoundException
getNumberOfProcessDataInstances in interface ProcessRuntimeAPIProcessInstanceNotFoundExceptionprotected Map<String,Serializable> executeOperations(org.bonitasoft.engine.core.connector.ConnectorResult connectorResult, List<Operation> operations, Map<String,Serializable> operationInputValues, org.bonitasoft.engine.core.expression.control.model.SExpressionContext expressionContext, ClassLoader classLoader, TenantServiceAccessor tenantAccessor) throws org.bonitasoft.engine.commons.exceptions.SBonitaException
org.bonitasoft.engine.commons.exceptions.SBonitaExceptionpublic Map<String,Serializable> executeConnectorOnProcessDefinition(String connectorDefinitionId, String connectorDefinitionVersion, Map<String,Expression> connectorInputParameters, Map<String,Map<String,Serializable>> inputValues, long processDefinitionId) throws ConnectorExecutionException
executeConnectorOnProcessDefinition in interface ProcessRuntimeAPIConnectorExecutionExceptionpublic Map<String,Serializable> executeConnectorOnProcessDefinition(String connectorDefinitionId, String connectorDefinitionVersion, Map<String,Expression> connectorInputParameters, Map<String,Map<String,Serializable>> inputValues, List<Operation> operations, Map<String,Serializable> operationInputValues, long processDefinitionId) throws ConnectorExecutionException
executeConnectorOnProcessDefinition in interface ProcessRuntimeAPIConnectorExecutionExceptionprotected Map<String,Serializable> getSerializableResultOfConnector(String connectorDefinitionVersion, org.bonitasoft.engine.core.connector.ConnectorResult connectorResult, org.bonitasoft.engine.core.connector.ConnectorService connectorService) throws NotSerializableException, org.bonitasoft.engine.core.connector.exception.SConnectorException
NotSerializableExceptionorg.bonitasoft.engine.core.connector.exception.SConnectorExceptionprotected void checkConnectorParameters(Map<String,Expression> connectorInputParameters, Map<String,Map<String,Serializable>> inputValues) throws ConnectorExecutionException
ConnectorExecutionExceptionpublic void setActivityStateByName(long activityInstanceId,
String state)
throws UpdateException
setActivityStateByName in interface ProcessRuntimeAPIUpdateExceptionpublic void setActivityStateById(long activityInstanceId,
int stateId)
throws UpdateException
setActivityStateById in interface ProcessRuntimeAPIUpdateExceptionpublic void setTaskPriority(long humanTaskInstanceId,
TaskPriority priority)
throws UpdateException
setTaskPriority in interface ProcessRuntimeAPIUpdateException@Deprecated public void deleteProcessInstances(long processDefinitionId) throws DeletionException
deleteProcessInstances in interface ProcessRuntimeAPIDeletionExceptionpublic long deleteProcessInstances(long processDefinitionId,
int startIndex,
int maxResults)
throws DeletionException
deleteProcessInstances in interface ProcessRuntimeAPIDeletionExceptionpublic long deleteArchivedProcessInstances(long processDefinitionId,
int startIndex,
int maxResults)
throws DeletionException
deleteArchivedProcessInstances in interface ProcessRuntimeAPIDeletionExceptionpublic long deleteArchivedProcessInstancesInAllStates(List<Long> sourceProcessInstanceIds) throws DeletionException
deleteArchivedProcessInstancesInAllStates in interface ProcessRuntimeAPIDeletionExceptionpublic long deleteArchivedProcessInstancesInAllStates(long sourceProcessInstanceId)
throws DeletionException
deleteArchivedProcessInstancesInAllStates in interface ProcessRuntimeAPIDeletionExceptionpublic void deleteProcessInstance(long processInstanceId)
throws DeletionException
deleteProcessInstance in interface ProcessRuntimeAPIDeletionExceptionpublic SearchResult<ProcessInstance> searchOpenProcessInstances(SearchOptions searchOptions) throws SearchException
searchOpenProcessInstances in interface ProcessRuntimeAPISearchExceptionpublic SearchResult<ProcessInstance> searchProcessInstances(SearchOptions searchOptions) throws SearchException
searchProcessInstances in interface ProcessRuntimeAPISearchExceptionpublic SearchResult<ProcessInstance> searchFailedProcessInstances(SearchOptions searchOptions) throws SearchException
searchFailedProcessInstances in interface ProcessRuntimeAPISearchExceptionpublic SearchResult<ProcessInstance> searchFailedProcessInstancesSupervisedBy(long userId, SearchOptions searchOptions) throws SearchException
searchFailedProcessInstancesSupervisedBy in interface ProcessRuntimeAPISearchExceptionprotected SearchFailedProcessInstancesSupervisedBy createSearchFailedProcessInstancesSupervisedBy(long userId, SearchOptions searchOptions, org.bonitasoft.engine.core.process.instance.api.ProcessInstanceService processInstanceService, SearchEntitiesDescriptor searchEntitiesDescriptor, ProcessDefinitionService processDefinitionService)
protected GetSUser createTxUserGetter(long userId, IdentityService identityService)
public SearchResult<ProcessInstance> searchOpenProcessInstancesSupervisedBy(long userId, SearchOptions searchOptions) throws SearchException
searchOpenProcessInstancesSupervisedBy in interface ProcessRuntimeAPISearchExceptionpublic SearchResult<ProcessDeploymentInfo> searchProcessDeploymentInfosStartedBy(long userId, SearchOptions searchOptions) throws SearchException
searchProcessDeploymentInfosStartedBy in interface ProcessManagementAPISearchExceptionpublic SearchResult<ProcessDeploymentInfo> searchProcessDeploymentInfos(SearchOptions searchOptions) throws SearchException
searchProcessDeploymentInfos in interface ProcessManagementAPISearchExceptionpublic SearchResult<ProcessDeploymentInfo> searchProcessDeploymentInfosCanBeStartedBy(long userId, SearchOptions searchOptions) throws RetrieveException, SearchException
searchProcessDeploymentInfosCanBeStartedBy in interface ProcessManagementAPIRetrieveExceptionSearchException@Deprecated public SearchResult<ProcessDeploymentInfo> searchProcessDeploymentInfos(long userId, SearchOptions searchOptions) throws RetrieveException, SearchException
searchProcessDeploymentInfos in interface ProcessManagementAPIRetrieveExceptionSearchExceptionpublic SearchResult<ProcessDeploymentInfo> searchProcessDeploymentInfosCanBeStartedByUsersManagedBy(long managerUserId, SearchOptions searchOptions) throws SearchException
searchProcessDeploymentInfosCanBeStartedByUsersManagedBy in interface ProcessManagementAPISearchException@Deprecated public SearchResult<ProcessDeploymentInfo> searchProcessDeploymentInfosUsersManagedByCanStart(long managerUserId, SearchOptions searchOptions) throws SearchException
searchProcessDeploymentInfosUsersManagedByCanStart in interface ProcessManagementAPISearchExceptionpublic SearchResult<ProcessDeploymentInfo> searchProcessDeploymentInfosWithAssignedOrPendingHumanTasksFor(long userId, SearchOptions searchOptions) throws SearchException
searchProcessDeploymentInfosWithAssignedOrPendingHumanTasksFor in interface ProcessRuntimeAPISearchExceptionpublic SearchResult<ProcessDeploymentInfo> searchProcessDeploymentInfosWithAssignedOrPendingHumanTasksSupervisedBy(long supervisorId, SearchOptions searchOptions) throws SearchException
searchProcessDeploymentInfosWithAssignedOrPendingHumanTasksSupervisedBy in interface ProcessRuntimeAPISearchExceptionpublic SearchResult<ProcessDeploymentInfo> searchProcessDeploymentInfosWithAssignedOrPendingHumanTasks(SearchOptions searchOptions) throws SearchException
searchProcessDeploymentInfosWithAssignedOrPendingHumanTasks in interface ProcessRuntimeAPISearchExceptionpublic Map<String,Map<String,Long>> getFlownodeStateCounters(long processInstanceId)
getFlownodeStateCounters in interface ProcessRuntimeAPIpublic SearchResult<ProcessDeploymentInfo> searchProcessDeploymentInfosSupervisedBy(long userId, SearchOptions searchOptions) throws SearchException
searchProcessDeploymentInfosSupervisedBy in interface ProcessManagementAPISearchExceptionpublic SearchResult<HumanTaskInstance> searchAssignedTasksSupervisedBy(long supervisorId, SearchOptions searchOptions) throws SearchException
searchAssignedTasksSupervisedBy in interface ProcessRuntimeAPISearchExceptionpublic SearchResult<ArchivedHumanTaskInstance> searchArchivedHumanTasksSupervisedBy(long supervisorId, SearchOptions searchOptions) throws SearchException
searchArchivedHumanTasksSupervisedBy in interface ProcessRuntimeAPISearchExceptionpublic SearchResult<ProcessSupervisor> searchProcessSupervisors(SearchOptions searchOptions) throws SearchException
searchProcessSupervisors in interface ProcessManagementAPISearchExceptionpublic boolean isUserProcessSupervisor(long processDefinitionId,
long userId)
isUserProcessSupervisor in interface ProcessManagementAPIpublic void deleteSupervisor(long supervisorId)
throws DeletionException
deleteSupervisor in interface ProcessManagementAPIDeletionExceptionpublic void deleteSupervisor(Long processDefinitionId, Long userId, Long roleId, Long groupId) throws DeletionException
deleteSupervisor in interface ProcessManagementAPIDeletionExceptionpublic ProcessSupervisor createProcessSupervisorForUser(long processDefinitionId, long userId) throws CreationException, AlreadyExistsException
createProcessSupervisorForUser in interface ProcessManagementAPICreationExceptionAlreadyExistsExceptionpublic ProcessSupervisor createProcessSupervisorForRole(long processDefinitionId, long roleId) throws CreationException, AlreadyExistsException
createProcessSupervisorForRole in interface ProcessManagementAPICreationExceptionAlreadyExistsExceptionpublic ProcessSupervisor createProcessSupervisorForGroup(long processDefinitionId, long groupId) throws CreationException, AlreadyExistsException
createProcessSupervisorForGroup in interface ProcessManagementAPICreationExceptionAlreadyExistsExceptionpublic ProcessSupervisor createProcessSupervisorForMembership(long processDefinitionId, long groupId, long roleId) throws CreationException, AlreadyExistsException
createProcessSupervisorForMembership in interface ProcessManagementAPICreationExceptionAlreadyExistsExceptionprotected List<org.bonitasoft.engine.supervisor.mapping.model.SProcessSupervisor> searchSProcessSupervisors(Long processDefinitionId, Long userId, Long groupId, Long roleId) throws org.bonitasoft.engine.persistence.SBonitaReadException
org.bonitasoft.engine.persistence.SBonitaReadException@Deprecated public SearchResult<ProcessDeploymentInfo> searchUncategorizedProcessDeploymentInfosUserCanStart(long userId, SearchOptions searchOptions) throws SearchException
searchUncategorizedProcessDeploymentInfosUserCanStart in interface ProcessManagementAPISearchExceptionpublic SearchResult<ProcessDeploymentInfo> searchUncategorizedProcessDeploymentInfosCanBeStartedBy(long userId, SearchOptions searchOptions) throws SearchException
searchUncategorizedProcessDeploymentInfosCanBeStartedBy in interface ProcessManagementAPISearchExceptionpublic SearchResult<ArchivedHumanTaskInstance> searchArchivedHumanTasksManagedBy(long managerUserId, SearchOptions searchOptions) throws SearchException
searchArchivedHumanTasksManagedBy in interface ProcessRuntimeAPISearchExceptionpublic SearchResult<ProcessInstance> searchOpenProcessInstancesInvolvingUser(long userId, SearchOptions searchOptions) throws SearchException
searchOpenProcessInstancesInvolvingUser in interface ProcessRuntimeAPISearchExceptionpublic SearchResult<ProcessInstance> searchOpenProcessInstancesInvolvingUsersManagedBy(long managerUserId, SearchOptions searchOptions) throws SearchException
searchOpenProcessInstancesInvolvingUsersManagedBy in interface ProcessRuntimeAPISearchExceptionpublic SearchResult<ArchivedHumanTaskInstance> searchArchivedHumanTasks(SearchOptions searchOptions) throws SearchException
searchArchivedHumanTasks in interface ProcessRuntimeAPISearchExceptionpublic SearchResult<HumanTaskInstance> searchAssignedTasksManagedBy(long managerUserId, SearchOptions searchOptions) throws SearchException
searchAssignedTasksManagedBy in interface ProcessRuntimeAPISearchExceptionpublic SearchResult<ArchivedProcessInstance> searchArchivedProcessInstancesSupervisedBy(long userId, SearchOptions searchOptions) throws SearchException
searchArchivedProcessInstancesSupervisedBy in interface ProcessRuntimeAPISearchExceptionpublic SearchResult<ArchivedProcessInstance> searchArchivedProcessInstancesInvolvingUser(long userId, SearchOptions searchOptions) throws SearchException
searchArchivedProcessInstancesInvolvingUser in interface ProcessRuntimeAPISearchExceptionpublic SearchResult<HumanTaskInstance> searchPendingTasksForUser(long userId, SearchOptions searchOptions) throws SearchException
searchPendingTasksForUser in interface ProcessRuntimeAPISearchExceptionpublic SearchResult<HumanTaskInstance> searchMyAvailableHumanTasks(long userId, SearchOptions searchOptions) throws SearchException
searchMyAvailableHumanTasks in interface ProcessRuntimeAPISearchExceptionpublic SearchResult<HumanTaskInstance> searchPendingTasksSupervisedBy(long userId, SearchOptions searchOptions)
searchPendingTasksSupervisedBy in interface ProcessRuntimeAPIpublic SearchResult<Comment> searchComments(SearchOptions searchOptions) throws SearchException
searchComments in interface ProcessRuntimeAPISearchExceptionpublic Comment addProcessComment(long processInstanceId, String comment) throws CreationException
addProcessComment in interface ProcessRuntimeAPICreationException@Deprecated public Comment addComment(long processInstanceId, String comment)
addComment in interface ProcessRuntimeAPI@Deprecated public List<Comment> getComments(long processInstanceId)
getComments in interface ProcessRuntimeAPIpublic Document attachDocument(long processInstanceId, String documentName, String fileName, String mimeType, String url) throws DocumentAttachmentException, ProcessInstanceNotFoundException
attachDocument in interface DocumentAPIDocumentAttachmentExceptionProcessInstanceNotFoundExceptionpublic Document attachDocument(long processInstanceId, String documentName, String fileName, String mimeType, byte[] documentContent) throws DocumentAttachmentException, ProcessInstanceNotFoundException
attachDocument in interface DocumentAPIDocumentAttachmentExceptionProcessInstanceNotFoundExceptionpublic Document attachNewDocumentVersion(long processInstanceId, String documentName, String fileName, String mimeType, String url) throws DocumentAttachmentException
attachNewDocumentVersion in interface DocumentAPIDocumentAttachmentExceptionpublic Document attachNewDocumentVersion(long processInstanceId, String documentName, String contentFileName, String contentMimeType, byte[] documentContent) throws DocumentAttachmentException
attachNewDocumentVersion in interface DocumentAPIDocumentAttachmentExceptionpublic Document getDocument(long documentId) throws DocumentNotFoundException
getDocument in interface DocumentAPIDocumentNotFoundExceptionpublic List<Document> getLastVersionOfDocuments(long processInstanceId, int pageIndex, int numberPerPage, DocumentCriterion pagingCriterion) throws DocumentException, ProcessInstanceNotFoundException
getLastVersionOfDocuments in interface DocumentAPIDocumentExceptionProcessInstanceNotFoundExceptionpublic byte[] getDocumentContent(String documentStorageId) throws DocumentNotFoundException
getDocumentContent in interface DocumentAPIDocumentNotFoundExceptionpublic Document getLastDocument(long processInstanceId, String documentName) throws DocumentNotFoundException
getLastDocument in interface DocumentAPIDocumentNotFoundExceptionpublic long getNumberOfDocuments(long processInstanceId)
throws DocumentException
getNumberOfDocuments in interface DocumentAPIDocumentExceptionpublic Document getDocumentAtProcessInstantiation(long processInstanceId, String documentName) throws DocumentNotFoundException
getDocumentAtProcessInstantiation in interface DocumentAPIDocumentNotFoundExceptionpublic Document getDocumentAtActivityInstanceCompletion(long activityInstanceId, String documentName) throws DocumentNotFoundException
getDocumentAtActivityInstanceCompletion in interface DocumentAPIDocumentNotFoundExceptionpublic SearchResult<HumanTaskInstance> searchPendingTasksManagedBy(long managerUserId, SearchOptions searchOptions) throws SearchException
searchPendingTasksManagedBy in interface ProcessRuntimeAPISearchExceptionpublic Map<Long,Long> getNumberOfOverdueOpenTasks(List<Long> userIds) throws RetrieveException
getNumberOfOverdueOpenTasks in interface ProcessRuntimeAPIRetrieveExceptionpublic SearchResult<ProcessDeploymentInfo> searchUncategorizedProcessDeploymentInfos(SearchOptions searchOptions) throws SearchException
searchUncategorizedProcessDeploymentInfos in interface ProcessManagementAPISearchExceptionpublic SearchResult<Comment> searchCommentsManagedBy(long managerUserId, SearchOptions searchOptions) throws SearchException
searchCommentsManagedBy in interface ProcessRuntimeAPISearchExceptionpublic SearchResult<Comment> searchCommentsInvolvingUser(long userId, SearchOptions searchOptions) throws SearchException
searchCommentsInvolvingUser in interface ProcessRuntimeAPISearchExceptionpublic List<Long> getChildrenInstanceIdsOfProcessInstance(long processInstanceId, int startIndex, int maxResults, ProcessInstanceCriterion criterion)
getChildrenInstanceIdsOfProcessInstance in interface ProcessRuntimeAPIpublic SearchResult<ProcessDeploymentInfo> searchUncategorizedProcessDeploymentInfosSupervisedBy(long userId, SearchOptions searchOptions) throws SearchException
searchUncategorizedProcessDeploymentInfosSupervisedBy in interface ProcessManagementAPISearchExceptionpublic Map<Long,ProcessDeploymentInfo> getProcessDeploymentInfosFromIds(List<Long> processDefinitionIds)
getProcessDeploymentInfosFromIds in interface ProcessManagementAPIpublic List<ConnectorImplementationDescriptor> getConnectorImplementations(long processDefinitionId, int startIndex, int maxsResults, ConnectorCriterion sortingCriterion)
getConnectorImplementations in interface ProcessManagementAPIpublic long getNumberOfConnectorImplementations(long processDefinitionId)
getNumberOfConnectorImplementations in interface ProcessManagementAPIpublic SearchResult<ActivityInstance> searchActivities(SearchOptions searchOptions) throws SearchException
searchActivities in interface ProcessRuntimeAPISearchExceptionpublic SearchResult<ArchivedFlowNodeInstance> searchArchivedFlowNodeInstances(SearchOptions searchOptions) throws SearchException
searchArchivedFlowNodeInstances in interface ProcessRuntimeAPISearchExceptionpublic SearchResult<FlowNodeInstance> searchFlowNodeInstances(SearchOptions searchOptions) throws SearchException
searchFlowNodeInstances in interface ProcessRuntimeAPISearchExceptionpublic SearchResult<TimerEventTriggerInstance> searchTimerEventTriggerInstances(long processInstanceId, SearchOptions searchOptions) throws SearchException
searchTimerEventTriggerInstances in interface ProcessRuntimeAPISearchExceptionpublic Date updateExecutionDateOfTimerEventTriggerInstance(long timerEventTriggerInstanceId, Date executionDate) throws TimerEventTriggerInstanceNotFoundException, UpdateException
updateExecutionDateOfTimerEventTriggerInstance in interface ProcessRuntimeAPITimerEventTriggerInstanceNotFoundExceptionUpdateExceptionpublic SearchResult<ArchivedActivityInstance> searchArchivedActivities(SearchOptions searchOptions) throws SearchException
searchArchivedActivities in interface ProcessRuntimeAPISearchExceptionpublic ConnectorImplementationDescriptor getConnectorImplementation(long processDefinitionId, String connectorId, String connectorVersion) throws ConnectorNotFoundException
getConnectorImplementation in interface ProcessManagementAPIConnectorNotFoundExceptionpublic void cancelProcessInstance(long processInstanceId)
throws ProcessInstanceNotFoundException,
UpdateException
cancelProcessInstance in interface ProcessRuntimeAPIProcessInstanceNotFoundExceptionUpdateExceptionprotected TransactionalProcessInstanceInterruptor buildProcessInstanceInterruptor(TenantServiceAccessor tenantAccessor)
public void setProcessInstanceState(ProcessInstance processInstance, String state) throws UpdateException
setProcessInstanceState in interface ProcessRuntimeAPIUpdateExceptionpublic Map<Long,ProcessDeploymentInfo> getProcessDeploymentInfosFromProcessInstanceIds(List<Long> processInstanceIds)
getProcessDeploymentInfosFromProcessInstanceIds in interface ProcessManagementAPIpublic Map<Long,ProcessDeploymentInfo> getProcessDeploymentInfosFromArchivedProcessInstanceIds(List<Long> archivedProcessInstantsIds)
getProcessDeploymentInfosFromArchivedProcessInstanceIds in interface ProcessManagementAPIpublic SearchResult<Document> searchDocuments(SearchOptions searchOptions) throws SearchException
searchDocuments in interface DocumentAPISearchExceptionpublic SearchResult<Document> searchDocumentsSupervisedBy(long userId, SearchOptions searchOptions) throws SearchException, UserNotFoundException
searchDocumentsSupervisedBy in interface DocumentAPISearchExceptionUserNotFoundExceptionpublic SearchResult<ArchivedDocument> searchArchivedDocuments(SearchOptions searchOptions) throws SearchException
searchArchivedDocuments in interface DocumentAPISearchExceptionpublic SearchResult<ArchivedDocument> searchArchivedDocumentsSupervisedBy(long userId, SearchOptions searchOptions) throws SearchException, UserNotFoundException
searchArchivedDocumentsSupervisedBy in interface DocumentAPISearchExceptionUserNotFoundExceptionpublic void retryTask(long activityInstanceId)
throws ActivityExecutionException,
ActivityInstanceNotFoundException
retryTask in interface ProcessRuntimeAPIActivityExecutionExceptionActivityInstanceNotFoundExceptionpublic ArchivedDocument getArchivedVersionOfProcessDocument(long sourceObjectId) throws ArchivedDocumentNotFoundException
getArchivedVersionOfProcessDocument in interface DocumentAPIArchivedDocumentNotFoundExceptionpublic ArchivedDocument getArchivedProcessDocument(long archivedProcessDocumentId) throws ArchivedDocumentNotFoundException
getArchivedProcessDocument in interface DocumentAPIArchivedDocumentNotFoundExceptionpublic SearchResult<ArchivedComment> searchArchivedComments(SearchOptions searchOptions) throws SearchException
searchArchivedComments in interface ProcessRuntimeAPISearchExceptionpublic ArchivedComment getArchivedComment(long archivedCommentId) throws RetrieveException, NotFoundException
getArchivedComment in interface ProcessRuntimeAPIRetrieveExceptionNotFoundExceptionpublic Map<Long,ActorInstance> getActorsFromActorIds(List<Long> actorIds)
getActorsFromActorIds in interface ProcessManagementAPIpublic Serializable evaluateExpressionOnProcessDefinition(Expression expression, Map<String,Serializable> context, long processDefinitionId) throws ExpressionEvaluationException
evaluateExpressionOnProcessDefinition in interface ProcessRuntimeAPIExpressionEvaluationExceptionpublic void updateDueDateOfTask(long userTaskId,
Date dueDate)
throws UpdateException
updateDueDateOfTask in interface ProcessRuntimeAPIUpdateExceptionpublic long countComments(SearchOptions searchOptions) throws SearchException
countComments in interface ProcessRuntimeAPISearchExceptionpublic long countAttachments(SearchOptions searchOptions) throws SearchException
countAttachments in interface ProcessRuntimeAPISearchExceptionpublic void sendSignal(String signalName) throws SendEventException
sendSignal in interface ProcessRuntimeAPISendEventExceptionpublic void sendMessage(String messageName, Expression targetProcess, Expression targetFlowNode, Map<Expression,Expression> messageContent) throws SendEventException
sendMessage in interface ProcessRuntimeAPISendEventExceptionpublic void sendMessage(String messageName, Expression targetProcess, Expression targetFlowNode, Map<Expression,Expression> messageContent, Map<Expression,Expression> correlations) throws SendEventException
sendMessage in interface ProcessRuntimeAPISendEventExceptionpublic List<Problem> getProcessResolutionProblems(long processDefinitionId) throws ProcessDefinitionNotFoundException
getProcessResolutionProblems in interface ProcessManagementAPIProcessDefinitionNotFoundExceptionpublic List<ProcessDeploymentInfo> getProcessDeploymentInfos(int startIndex, int maxResults, ProcessDeploymentInfoCriterion pagingCriterion)
getProcessDeploymentInfos in interface ProcessManagementAPIpublic List<ProcessDeploymentInfo> getProcessDeploymentInfosWithActorOnlyForGroup(long groupId, int startIndex, int maxResults, ProcessDeploymentInfoCriterion sortingCriterion)
getProcessDeploymentInfosWithActorOnlyForGroup in interface ProcessManagementAPIpublic List<ProcessDeploymentInfo> getProcessDeploymentInfosWithActorOnlyForGroups(List<Long> groupIds, int startIndex, int maxResults, ProcessDeploymentInfoCriterion sortingCriterion)
getProcessDeploymentInfosWithActorOnlyForGroups in interface ProcessManagementAPIpublic List<ProcessDeploymentInfo> getProcessDeploymentInfosWithActorOnlyForRole(long roleId, int startIndex, int maxResults, ProcessDeploymentInfoCriterion sortingCriterion)
getProcessDeploymentInfosWithActorOnlyForRole in interface ProcessManagementAPIpublic List<ProcessDeploymentInfo> getProcessDeploymentInfosWithActorOnlyForRoles(List<Long> roleIds, int startIndex, int maxResults, ProcessDeploymentInfoCriterion sortingCriterion)
getProcessDeploymentInfosWithActorOnlyForRoles in interface ProcessManagementAPIpublic List<ProcessDeploymentInfo> getProcessDeploymentInfosWithActorOnlyForUser(long userId, int startIndex, int maxResults, ProcessDeploymentInfoCriterion sortingCriterion)
getProcessDeploymentInfosWithActorOnlyForUser in interface ProcessManagementAPIpublic List<ProcessDeploymentInfo> getProcessDeploymentInfosWithActorOnlyForUsers(List<Long> userIds, int startIndex, int maxResults, ProcessDeploymentInfoCriterion sortingCriterion)
getProcessDeploymentInfosWithActorOnlyForUsers in interface ProcessManagementAPIpublic SearchResult<ConnectorInstance> searchConnectorInstances(SearchOptions searchOptions) throws RetrieveException
searchConnectorInstances in interface ProcessRuntimeAPIRetrieveExceptionpublic SearchResult<ArchivedConnectorInstance> searchArchivedConnectorInstances(SearchOptions searchOptions) throws RetrieveException
searchArchivedConnectorInstances in interface ProcessRuntimeAPIRetrieveExceptionpublic List<HumanTaskInstance> getHumanTaskInstances(long processInstanceId, String taskName, int startIndex, int maxResults)
getHumanTaskInstances in interface ProcessRuntimeAPIpublic HumanTaskInstance getLastStateHumanTaskInstance(long processInstanceId, String taskName) throws NotFoundException
getLastStateHumanTaskInstance in interface ProcessRuntimeAPINotFoundExceptionpublic SearchResult<User> searchUsersWhoCanStartProcessDefinition(long processDefinitionId, SearchOptions searchOptions) throws SearchException
searchUsersWhoCanStartProcessDefinition in interface ProcessManagementAPISearchExceptionpublic Map<String,Serializable> evaluateExpressionsAtProcessInstanciation(long processInstanceId, Map<Expression,Map<String,Serializable>> expressions) throws ExpressionEvaluationException
evaluateExpressionsAtProcessInstanciation in interface ProcessRuntimeAPIExpressionEvaluationExceptionpublic Map<String,Serializable> evaluateExpressionOnCompletedProcessInstance(long processInstanceId, Map<Expression,Map<String,Serializable>> expressions) throws ExpressionEvaluationException
evaluateExpressionOnCompletedProcessInstance in interface ProcessRuntimeAPIExpressionEvaluationExceptionpublic Map<String,Serializable> evaluateExpressionsOnProcessInstance(long processInstanceId, Map<Expression,Map<String,Serializable>> expressions) throws ExpressionEvaluationException
evaluateExpressionsOnProcessInstance in interface ProcessRuntimeAPIExpressionEvaluationExceptionpublic Map<String,Serializable> evaluateExpressionsOnProcessDefinition(long processDefinitionId, Map<Expression,Map<String,Serializable>> expressions) throws ExpressionEvaluationException
evaluateExpressionsOnProcessDefinition in interface ProcessRuntimeAPIExpressionEvaluationExceptionpublic Map<String,Serializable> evaluateExpressionsOnActivityInstance(long activityInstanceId, Map<Expression,Map<String,Serializable>> expressions) throws ExpressionEvaluationException
evaluateExpressionsOnActivityInstance in interface ProcessRuntimeAPIExpressionEvaluationExceptionpublic Map<String,Serializable> evaluateExpressionsOnCompletedActivityInstance(long activityInstanceId, Map<Expression,Map<String,Serializable>> expressions) throws ExpressionEvaluationException
evaluateExpressionsOnCompletedActivityInstance in interface ProcessRuntimeAPIExpressionEvaluationExceptionprotected EvaluateExpressionsDefinitionLevel createDefinitionLevelExpressionEvaluator(Map<Expression,Map<String,Serializable>> expressionsAndTheirPartialContext, long processDefinitionId, org.bonitasoft.engine.core.expression.control.api.ExpressionResolverService expressionResolverService, ProcessDefinitionService processDefinitionService)
protected EvaluateExpressionsInstanceLevel createInstanceLevelExpressionEvaluator(Map<Expression,Map<String,Serializable>> expressions, long containerId, String containerType, long processDefinitionId, org.bonitasoft.engine.core.expression.control.api.ExpressionResolverService expressionService)
protected EvaluateExpressionsInstanceLevelAndArchived createInstanceAndArchivedLevelExpressionEvaluator(Map<Expression,Map<String,Serializable>> expressions, long containerId, String containerType, long processDefinitionId, long time, org.bonitasoft.engine.core.expression.control.api.ExpressionResolverService expressionService)
protected ArchivedProcessInstance getLastArchivedProcessInstance(long processInstanceId) throws org.bonitasoft.engine.commons.exceptions.SBonitaException
org.bonitasoft.engine.commons.exceptions.SBonitaExceptionpublic List<FailedJob> getFailedJobs(int startIndex, int maxResults)
getFailedJobs in interface ProcessRuntimeAPIpublic void replayFailedJob(long jobDescriptorId)
throws ExecutionException
replayFailedJob in interface ProcessRuntimeAPIExecutionExceptionpublic void replayFailedJob(long jobDescriptorId,
Map<String,Serializable> parameters)
throws ExecutionException
replayFailedJob in interface ProcessRuntimeAPIExecutionExceptionprotected List<org.bonitasoft.engine.scheduler.model.SJobParameter> getJobParameters(Map<String,Serializable> parameters)
protected org.bonitasoft.engine.scheduler.model.SJobParameter buildSJobParameter(String parameterKey, Serializable parameterValue)
protected org.bonitasoft.engine.scheduler.builder.SJobParameterBuilderFactory getSJobParameterBuilderFactory()
public ArchivedDataInstance getArchivedProcessDataInstance(String dataName, long processInstanceId) throws ArchivedDataNotFoundException
getArchivedProcessDataInstance in interface ProcessRuntimeAPIArchivedDataNotFoundExceptionpublic ArchivedDataInstance getArchivedActivityDataInstance(String dataName, long activityInstanceId) throws ArchivedDataNotFoundException
getArchivedActivityDataInstance in interface ProcessRuntimeAPIArchivedDataNotFoundExceptionpublic List<ArchivedDataInstance> getArchivedProcessDataInstances(long processInstanceId, int startIndex, int maxResults)
getArchivedProcessDataInstances in interface ProcessRuntimeAPIpublic List<ArchivedDataInstance> getArchivedActivityDataInstances(long activityInstanceId, int startIndex, int maxResults)
getArchivedActivityDataInstances in interface ProcessRuntimeAPIpublic List<User> getPossibleUsersOfPendingHumanTask(long humanTaskInstanceId, int startIndex, int maxResults)
getPossibleUsersOfPendingHumanTask in interface ProcessRuntimeAPIpublic List<User> getPossibleUsersOfHumanTask(long processDefinitionId, String humanTaskName, int startIndex, int maxResults)
getPossibleUsersOfHumanTask in interface ProcessManagementAPIpublic List<Long> getUserIdsForActor(long processDefinitionId, String actorName, int startIndex, int maxResults)
getUserIdsForActor in interface ProcessManagementAPIpublic SearchResult<User> searchUsersWhoCanExecutePendingHumanTask(long humanTaskInstanceId, SearchOptions searchOptions)
searchUsersWhoCanExecutePendingHumanTask in interface ProcessRuntimeAPIpublic SearchResult<HumanTaskInstance> searchAssignedAndPendingHumanTasksFor(long rootProcessDefinitionId, long userId, SearchOptions searchOptions) throws SearchException
searchAssignedAndPendingHumanTasksFor in interface ProcessRuntimeAPISearchExceptionpublic SearchResult<HumanTaskInstance> searchAssignedAndPendingHumanTasks(long rootProcessDefinitionId, SearchOptions searchOptions) throws SearchException
searchAssignedAndPendingHumanTasks in interface ProcessRuntimeAPISearchExceptionpublic ContractDefinition getUserTaskContract(long userTaskId) throws UserTaskNotFoundException
getUserTaskContract in interface ProcessRuntimeAPIUserTaskNotFoundExceptionpublic ContractDefinition getProcessContract(long processDefinitionId) throws ProcessDefinitionNotFoundException
getProcessContract in interface ProcessRuntimeAPIProcessDefinitionNotFoundExceptionpublic void executeUserTask(long flownodeInstanceId,
Map<String,Serializable> inputs)
throws FlowNodeExecutionException,
ContractViolationException,
UserTaskNotFoundException
executeUserTask in interface ProcessRuntimeAPIFlowNodeExecutionExceptionContractViolationExceptionUserTaskNotFoundExceptionpublic void executeUserTask(long userId,
long flownodeInstanceId,
Map<String,Serializable> inputs)
throws FlowNodeExecutionException,
ContractViolationException,
UserTaskNotFoundException
executeUserTask in interface ProcessRuntimeAPIFlowNodeExecutionExceptionContractViolationExceptionUserTaskNotFoundExceptionprotected void executeFlowNode(long userId,
long flownodeInstanceId,
boolean wrapInTransaction,
Map<String,Serializable> inputs)
throws ContractViolationException,
org.bonitasoft.engine.commons.exceptions.SBonitaException
ContractViolationExceptionorg.bonitasoft.engine.commons.exceptions.SBonitaExceptionpublic Document removeDocument(long documentId) throws DocumentNotFoundException, DeletionException
removeDocument in interface DocumentAPIDocumentNotFoundExceptionDeletionExceptionpublic List<Document> getDocumentList(long processInstanceId, String name, int from, int numberOfResult) throws DocumentNotFoundException
getDocumentList in interface DocumentAPIDocumentNotFoundExceptionpublic void setDocumentList(long processInstanceId,
String name,
List<DocumentValue> documentsValues)
throws DocumentException,
DocumentNotFoundException
setDocumentList in interface DocumentAPIDocumentExceptionDocumentNotFoundExceptionpublic void deleteContentOfArchivedDocument(long archivedDocumentId)
throws DocumentException,
DocumentNotFoundException
deleteContentOfArchivedDocument in interface DocumentAPIDocumentExceptionDocumentNotFoundExceptionpublic Document addDocument(long processInstanceId, String documentName, String description, DocumentValue documentValue) throws ProcessInstanceNotFoundException, DocumentAttachmentException, AlreadyExistsException
addDocument in interface DocumentAPIProcessInstanceNotFoundExceptionDocumentAttachmentExceptionAlreadyExistsExceptionpublic Document updateDocument(long documentId, DocumentValue documentValue) throws ProcessInstanceNotFoundException, DocumentAttachmentException, AlreadyExistsException
updateDocument in interface DocumentAPIProcessInstanceNotFoundExceptionDocumentAttachmentExceptionAlreadyExistsExceptionpublic void purgeClassLoader(long processDefinitionId)
throws ProcessDefinitionNotFoundException,
UpdateException
purgeClassLoader in interface ProcessManagementAPIProcessDefinitionNotFoundExceptionUpdateExceptionpublic Serializable getUserTaskContractVariableValue(long userTaskInstanceId, String name) throws ContractDataNotFoundException
getUserTaskContractVariableValue in interface ProcessRuntimeAPIContractDataNotFoundExceptionpublic Serializable getProcessInputValueDuringInitialization(long processInstanceId, String name) throws ContractDataNotFoundException
getProcessInputValueDuringInitialization in interface ProcessRuntimeAPIContractDataNotFoundExceptionpublic Serializable getProcessInputValueAfterInitialization(long processInstanceId, String name) throws ContractDataNotFoundException
getProcessInputValueAfterInitialization in interface ProcessRuntimeAPIContractDataNotFoundExceptionpublic int getNumberOfParameterInstances(long processDefinitionId)
getNumberOfParameterInstances in interface ProcessManagementAPIpublic ParameterInstance getParameterInstance(long processDefinitionId, String parameterName) throws NotFoundException
getParameterInstance in interface ProcessManagementAPINotFoundExceptionpublic List<ParameterInstance> getParameterInstances(long processDefinitionId, int startIndex, int maxResults, ParameterCriterion sort)
getParameterInstances in interface ProcessManagementAPIpublic Map<String,Serializable> getUserTaskExecutionContext(long userTaskInstanceId) throws UserTaskNotFoundException, ExpressionEvaluationException
getUserTaskExecutionContext in interface ProcessRuntimeAPIUserTaskNotFoundExceptionExpressionEvaluationExceptionpublic Map<String,Serializable> getArchivedUserTaskExecutionContext(long archivedUserTaskInstanceId) throws UserTaskNotFoundException, ExpressionEvaluationException
getArchivedUserTaskExecutionContext in interface ProcessRuntimeAPIUserTaskNotFoundExceptionExpressionEvaluationExceptionpublic Map<String,Serializable> getProcessInstanceExecutionContext(long processInstanceId) throws ProcessInstanceNotFoundException, ExpressionEvaluationException
getProcessInstanceExecutionContext in interface ProcessRuntimeAPIProcessInstanceNotFoundExceptionExpressionEvaluationExceptionpublic Map<String,Serializable> getArchivedProcessInstanceExecutionContext(long processInstanceId) throws ProcessInstanceNotFoundException, ExpressionEvaluationException
getArchivedProcessInstanceExecutionContext in interface ProcessRuntimeAPIProcessInstanceNotFoundExceptionExpressionEvaluationExceptionpublic SearchResult<FormMapping> searchFormMappings(SearchOptions searchOptions) throws SearchException
searchFormMappings in interface ProcessManagementAPISearchExceptionpublic FormMapping getFormMapping(long formMappingId) throws FormMappingNotFoundException
getFormMapping in interface ProcessManagementAPIFormMappingNotFoundExceptionCopyright © 2015 Bonitasoft S.A.. All rights reserved.