public interface ProcessDefinitionService
| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
GROUP_ID |
static java.lang.String |
PROCESS_CACHE_NAME |
static java.lang.String |
PROCESS_DEFINITION_ID |
static java.lang.String |
PROCESSDEFINITION |
static java.lang.String |
PROCESSDEFINITION_CONTENT |
static java.lang.String |
PROCESSDEFINITION_DEPLOY_INFO |
static java.lang.String |
PROCESSDEFINITION_IS_DISABLED |
static java.lang.String |
PROCESSDEFINITION_IS_ENABLED |
static java.lang.String |
PROCESSDEFINITION_IS_RESOLVED |
static java.lang.String |
PROCESSDEFINITION_IS_UNRESOLVED |
static java.lang.String |
ROLE_ID |
static java.lang.String |
STARTED_BY_SUFFIX |
static java.lang.String |
UNCATEGORIZED_SUFFIX |
static java.lang.String |
UNCATEGORIZED_SUPERVISED_BY_SUFFIX |
static java.lang.String |
UNCATEGORIZED_USERCANSTART_SUFFIX |
static java.lang.String |
USER_ID |
static java.lang.String |
WHOCANSTART_PROCESS_SUFFIX |
| Modifier and Type | Method and Description |
|---|---|
void |
delete(long processId)
Delete the id specified process definition and its deploy info
|
void |
disableProcess(long processId,
boolean failIfAlreadyDisabled)
Disable the process passed as parameter.
|
void |
disableProcessDeploymentInfo(long processId)
Disable the process passed as parameter.
|
void |
enableProcess(long processId,
boolean failIfAlreadyEnabled)
Enable the specific process definition, when it is in RESOLVED state.
|
void |
enableProcessDeploymentInfo(long processId)
Enable the specific process definition, set the process as ENABLED when it is in RESOLVED state.
|
org.bonitasoft.engine.bpm.process.DesignProcessDefinition |
getDesignProcessDefinition(long processDefinitionId)
Returns a specific process definition that include informations such as tasks definition, actors...
|
long |
getLatestProcessDefinitionId(java.lang.String processName)
Get the processDefinitionId of the most recent version of the process
|
SFlowNodeDefinition |
getNextFlowNode(SProcessDefinition definition,
java.lang.String source)
Get target flow node for the given source flow node in the specific process
|
long |
getNumberOfProcessDeploymentInfos()
Gets how many processes are defined.
|
long |
getNumberOfProcessDeploymentInfos(long userId,
QueryOptions countOptions,
java.lang.String querySuffix)
Get total number of process definitions for the specific user who can perform the "querySuffix" specified action
|
long |
getNumberOfProcessDeploymentInfos(QueryOptions countOptions)
Get number of all process definition deploy infos according to the specific search criteria
|
long |
getNumberOfProcessDeploymentInfosByActivationState(org.bonitasoft.engine.bpm.process.ActivationState activationState)
Gets how many processes are in the given state.
|
long |
getNumberOfProcessDeploymentInfosCanBeStartedBy(long userId,
QueryOptions countOptions)
Get number of all process definitions for the specific user who can start
|
long |
getNumberOfProcessDeploymentInfosCanBeStartedByUsersManagedBy(long managerUserId,
QueryOptions countOptions)
Get number of all process definitions for the users managed by specific manager, or manager who can start
|
long |
getNumberOfProcessDeploymentInfosStartedBy(long startedBy,
QueryOptions countOptions)
Get number of all process deploy info started by the specific user
|
java.lang.Long |
getNumberOfProcessDeploymentInfosUnrelatedToCategory(long categoryId)
Get number of SProcessDefinitionDeployInfos unrelated to the specific category
|
long |
getNumberOfProcessDeploymentInfosWithAssignedOrPendingHumanTasks(QueryOptions queryOptions)
Get the total number of the process definitions that have instances with one or more human tasks
assigned/pending.
|
long |
getNumberOfProcessDeploymentInfosWithAssignedOrPendingHumanTasksFor(long userId,
QueryOptions queryOptions)
Get the total number of the process definitions that have one or more human tasks assigned/pending for a specific
user.
|
long |
getNumberOfProcessDeploymentInfosWithAssignedOrPendingHumanTasksSupervisedBy(long userId,
QueryOptions queryOptions)
Get the total number of the process definitions supervised by a specific user, that have instances with one or
more human tasks assigned/pending.
|
long |
getNumberOfUncategorizedProcessDeploymentInfos(QueryOptions countOptions)
Get total number of uncategorized process definitions by given query criteria
|
long |
getNumberOfUncategorizedProcessDeploymentInfosCanBeStartedBy(long userId,
QueryOptions countOptions)
Get total number of uncategorized process definitions for the specific user who can start
|
long |
getNumberOfUncategorizedProcessDeploymentInfosSupervisedBy(long userId,
QueryOptions countOptions)
Get total number of uncategorized process definitions by given query criteria for specific supervisor
|
long |
getNumberOfUsersWhoCanStartProcessDeploymentInfo(long processDefinitionId,
QueryOptions queryOptions)
Get total number of users according to specific query options, and who can start the given process definition
|
SProcessDefinition |
getProcessDefinition(long processDefinitionId)
Get processDefinition by its id
|
long |
getProcessDefinitionId(java.lang.String name,
java.lang.String version)
Get the processDefinitionId by name and version
|
java.util.List<java.lang.Long> |
getProcessDefinitionIds(org.bonitasoft.engine.bpm.process.ActivationState activationState,
int fromIndex,
int numberOfResult)
Get the process definition identifiers in the given state.
|
java.util.List<java.lang.Long> |
getProcessDefinitionIds(int fromIndex,
int numberOfResult)
Get the process definition identifiers.
|
SProcessDefinition |
getProcessDefinitionIfIsEnabled(long processDefinitionId)
Get processDefinition by its id, if it is enabled.
|
SProcessDefinitionDeployInfo |
getProcessDeploymentInfo(long processId)
Get deployment info of the process definition having the id given in parameter
|
java.util.List<SProcessDefinitionDeployInfo> |
getProcessDeploymentInfos(int fromIndex,
int numberPerPage,
java.lang.String field,
OrderByType order)
Get process definition deploy info in a specific interval with order, this can be used for pagination
|
java.util.List<SProcessDefinitionDeployInfo> |
getProcessDeploymentInfos(java.util.List<java.lang.Long> processIds) |
java.util.List<SProcessDefinitionDeployInfo> |
getProcessDeploymentInfos(java.util.List<java.lang.Long> processIds,
int fromIndex,
int numberOfProcesses,
java.lang.String field,
OrderByType order)
get sub set of processDefinitionDeployInfos in specific order
|
java.util.List<SProcessDefinitionDeployInfo> |
getProcessDeploymentInfos(QueryOptions queryOptions)
Get process definition deploy info in a specific interval with order, this can be used for pagination
|
java.util.Map<java.lang.Long,SProcessDefinitionDeployInfo> |
getProcessDeploymentInfosFromArchivedProcessInstanceIds(java.util.List<java.lang.Long> archivedProcessInstantsIds)
Get A list of SProcessDefinitionDeployInfos for the specific archived processInstances
|
java.util.Map<java.lang.Long,SProcessDefinitionDeployInfo> |
getProcessDeploymentInfosFromProcessInstanceIds(java.util.List<java.lang.Long> processInstanceIds)
A list of SProcessDefinitionDeployInfos for the specific processInstances
|
java.util.List<SProcessDefinitionDeployInfo> |
getProcessDeploymentInfosUnrelatedToCategory(long categoryId,
int pageIndex,
int numberPerPage,
org.bonitasoft.engine.bpm.process.ProcessDeploymentInfoCriterion pagingCriterion)
Get A list of SProcessDefinitionDeployInfos unrelated to the specific category
|
java.util.List<SProcessDefinitionDeployInfo> |
getProcessDeploymentInfosWithActorOnlyForGroup(long groupId,
QueryOptions queryOptions)
List all processes that contain at least one task which actor is mapped only to the specified group.
|
java.util.List<SProcessDefinitionDeployInfo> |
getProcessDeploymentInfosWithActorOnlyForGroups(java.util.List<java.lang.Long> groupIds,
QueryOptions queryOptions)
List all processes that contain at least one task which actor is mapped only to the specified groups.
|
java.util.List<SProcessDefinitionDeployInfo> |
getProcessDeploymentInfosWithActorOnlyForRole(long roleId,
QueryOptions queryOptions)
List all processes that contain at least one task which actor is mapped only to the specified role.
|
java.util.List<SProcessDefinitionDeployInfo> |
getProcessDeploymentInfosWithActorOnlyForRoles(java.util.List<java.lang.Long> roleIds,
QueryOptions queryOptions)
List all processes that contain at least one task which actor is mapped only to the specified roles.
|
java.util.List<SProcessDefinitionDeployInfo> |
getProcessDeploymentInfosWithActorOnlyForUser(long userId,
QueryOptions queryOptions)
List all processes that contain at least one task which actor is mapped only to the specified user.
|
java.util.List<SProcessDefinitionDeployInfo> |
getProcessDeploymentInfosWithActorOnlyForUsers(java.util.List<java.lang.Long> userIds,
QueryOptions queryOptions)
List all processes that contain at least one task which actor is mapped only to the specified users.
|
void |
resolveProcess(long processId)
set the process as RESOLVED when it is in UNRESOLVED state
|
java.util.List<SProcessDefinitionDeployInfo> |
searchProcessDeploymentInfos(long userId,
QueryOptions searchOptions,
java.lang.String querySuffix)
Search all process definitions for the specific user who can perform the "querySuffix" specified action
|
java.util.List<SProcessDefinitionDeployInfo> |
searchProcessDeploymentInfos(QueryOptions searchOptions)
Search all process definition deploy infos according to the specific search criteria
|
java.util.List<SProcessDefinitionDeployInfo> |
searchProcessDeploymentInfosCanBeStartedBy(long userId,
QueryOptions searchOptions)
Search all process definitions for the specific user who can start
|
java.util.List<SProcessDefinitionDeployInfo> |
searchProcessDeploymentInfosCanBeStartedByUsersManagedBy(long managerUserId,
QueryOptions searchOptions)
Search all process definitions for the users managed by specific manager, or manager who can start
|
java.util.List<SProcessDefinitionDeployInfo> |
searchProcessDeploymentInfosOfCategory(long categoryId,
QueryOptions queryOptions)
Search all process definitions for a specific category.
|
java.util.List<SProcessDefinitionDeployInfo> |
searchProcessDeploymentInfosStartedBy(long startedBy,
QueryOptions searchOptions)
Search all process deploy info started by the specific user
|
java.util.List<SProcessDefinitionDeployInfo> |
searchProcessDeploymentInfosWithAssignedOrPendingHumanTasks(QueryOptions queryOptions)
Search all process definitions that have instances with one or more human tasks assigned/pending.
|
java.util.List<SProcessDefinitionDeployInfo> |
searchProcessDeploymentInfosWithAssignedOrPendingHumanTasksFor(long userId,
QueryOptions queryOptions)
Search all process definitions that have one or more human tasks assigned/pending for a specific user.
|
java.util.List<SProcessDefinitionDeployInfo> |
searchProcessDeploymentInfosWithAssignedOrPendingHumanTasksSupervisedBy(long userId,
QueryOptions queryOptions)
Search all process definitions supervised by a specific user, that have instances with one or more human tasks
assigned/pending.
|
java.util.List<SProcessDefinitionDeployInfo> |
searchUncategorizedProcessDeploymentInfos(QueryOptions searchOptions)
Search all uncategorized process definitions according to the search criteria.
|
java.util.List<SProcessDefinitionDeployInfo> |
searchUncategorizedProcessDeploymentInfosCanBeStartedBy(long userId,
QueryOptions searchOptions)
Search all uncategorized process definitions for the specific user who can start
|
java.util.List<SProcessDefinitionDeployInfo> |
searchUncategorizedProcessDeploymentInfosSupervisedBy(long userId,
QueryOptions searchOptions)
Search all uncategorized process definitions by given query criteria for specific supervisor
|
java.util.List<SUser> |
searchUsersWhoCanStartProcessDeploymentInfo(long processDefinitionId,
QueryOptions queryOptions)
Search users according to specific query options, and who can start the given process definition
|
SProcessDefinition |
store(org.bonitasoft.engine.bpm.process.DesignProcessDefinition designProcessDefinition)
Store the processDefinition to file system and its deploy info to DB.
|
void |
updateExpressionContent(long processDefinitionId,
long expressionDefinitionId,
java.lang.String content)
Updates the content of an Expression, for a given process definition.
|
SProcessDefinitionDeployInfo |
updateProcessDefinitionDeployInfo(long processId,
EntityUpdateDescriptor descriptor)
Update deployment info of the process definition having the id given in parameter
|
static final java.lang.String PROCESSDEFINITION
static final java.lang.String PROCESSDEFINITION_CONTENT
static final java.lang.String PROCESSDEFINITION_IS_ENABLED
static final java.lang.String PROCESSDEFINITION_IS_DISABLED
static final java.lang.String PROCESSDEFINITION_DEPLOY_INFO
static final java.lang.String PROCESSDEFINITION_IS_RESOLVED
static final java.lang.String PROCESSDEFINITION_IS_UNRESOLVED
static final java.lang.String PROCESS_CACHE_NAME
static final java.lang.String UNCATEGORIZED_SUFFIX
static final java.lang.String UNCATEGORIZED_SUPERVISED_BY_SUFFIX
static final java.lang.String UNCATEGORIZED_USERCANSTART_SUFFIX
static final java.lang.String WHOCANSTART_PROCESS_SUFFIX
static final java.lang.String STARTED_BY_SUFFIX
static final java.lang.String PROCESS_DEFINITION_ID
static final java.lang.String USER_ID
static final java.lang.String ROLE_ID
static final java.lang.String GROUP_ID
SProcessDefinition store(org.bonitasoft.engine.bpm.process.DesignProcessDefinition designProcessDefinition) throws SProcessDefinitionException
designProcessDefinition - the processDefinition will be storedSProcessDefinitionExceptionSProcessDefinition getProcessDefinition(long processDefinitionId) throws SProcessDefinitionNotFoundException, SBonitaReadException
processDefinitionId - identifier of processDefinitionSProcessDefinitionNotFoundException - error thrown if no process definition foundSBonitaReadExceptionSProcessDefinition getProcessDefinitionIfIsEnabled(long processDefinitionId) throws SBonitaReadException, SProcessDefinitionException
processDefinitionId - The identifier of processDefinitionSBonitaReadExceptionSProcessDefinitionException - if process is not enabled.SProcessDefinitionDeployInfo getProcessDeploymentInfo(long processId) throws SProcessDefinitionNotFoundException, SBonitaReadException
processId - id of the process definition on which we want deployment informationSProcessDefinitionNotFoundException - error thrown if no process definition foundSBonitaReadExceptionvoid delete(long processId)
throws SProcessDefinitionNotFoundException,
SProcessDeletionException,
SDeletingEnabledProcessException
processId - identifier of processDefinitionSProcessDefinitionNotFoundException - error thrown if no process definition foundSProcessDeletionExceptionSDeletingEnabledProcessException - error throw if the process still enabledjava.util.List<SProcessDefinitionDeployInfo> getProcessDeploymentInfos(int fromIndex, int numberPerPage, java.lang.String field, OrderByType order) throws SBonitaReadException
fromIndex - Index of the record to be retrieved from. First record has index 0numberPerPage - Number of result we want to get. Maximum number of result returnedfield - the field user to do orderorder - ASC or DESCSBonitaReadExceptionvoid enableProcessDeploymentInfo(long processId)
throws SProcessDefinitionNotFoundException,
SProcessEnablementException
processId - identifier of processDefinitionSProcessDefinitionNotFoundException - error thrown if no process definition found for the given processIdSProcessEnablementException - if process is already enabled or if process is not resolvedResolving a process,
enableProcess(long, boolean)void enableProcess(long processId,
boolean failIfAlreadyEnabled)
throws SProcessDefinitionNotFoundException,
SProcessEnablementException
processId - identifier of processDefinitionfailIfAlreadyEnabled - should we fail if process is already enabled?SProcessDefinitionNotFoundException - error thrown if no process definition found for the given processIdSProcessEnablementException - if process is already enabled and failIfAlreadyEnabled == true, or if process
is not resolvedvoid disableProcessDeploymentInfo(long processId)
throws SProcessDefinitionNotFoundException,
SProcessDisablementException
processId - identifier of process definitionSProcessDefinitionNotFoundException - error thrown if no process definition found for the given processIdSProcessDisablementException - if process is already disableddisableProcess(long, boolean)void disableProcess(long processId,
boolean failIfAlreadyDisabled)
throws SProcessDefinitionNotFoundException,
SProcessDisablementException
processId - identifier of process definitionfailIfAlreadyDisabled - should we fail if process is already disabled?SProcessDefinitionNotFoundException - error thrown if no process definition found for the given processIdSProcessDisablementException - if process is already disabled and failIfAlreadyDisabled == truevoid resolveProcess(long processId)
throws SProcessDefinitionNotFoundException,
SProcessDisablementException
processId - identifier of process definitionSProcessDefinitionNotFoundException - error thrown if no process definition found for the given processIdSProcessDisablementExceptionlong getNumberOfProcessDeploymentInfosByActivationState(org.bonitasoft.engine.bpm.process.ActivationState activationState)
throws SBonitaReadException
activationState - the activation stateSBonitaReadExceptionlong getNumberOfProcessDeploymentInfos()
throws SBonitaReadException
SBonitaReadException - occurs when an exception is thrown during method executionjava.util.List<java.lang.Long> getProcessDefinitionIds(org.bonitasoft.engine.bpm.process.ActivationState activationState,
int fromIndex,
int numberOfResult)
throws SBonitaReadException
activationState - the activation statefromIndex - Index of the record to be retrieved from. First record has index 0numberOfResult - Number of result we want to get. Maximum number of result returnedSBonitaReadExceptionjava.util.List<java.lang.Long> getProcessDefinitionIds(int fromIndex,
int numberOfResult)
throws SBonitaReadException
numberOfResult - Number of result we want to get. Maximum number of result returnedSBonitaReadExceptionSFlowNodeDefinition getNextFlowNode(SProcessDefinition definition, java.lang.String source)
definition - the process definition containing source flow nodesource - a flow node in process definitionjava.util.List<SProcessDefinitionDeployInfo> getProcessDeploymentInfos(java.util.List<java.lang.Long> processIds, int fromIndex, int numberOfProcesses, java.lang.String field, OrderByType order) throws SProcessDefinitionNotFoundException, SBonitaReadException
processIds - identifiers of process definitionfromIndex - Index of the record to be retrieved from. First record has index 0numberOfProcesses - Number of result we want to get. Maximum number of result returnedfield - filed user to do orderorder - ASC or DESCSProcessDefinitionNotFoundExceptionSBonitaReadExceptionjava.util.List<SProcessDefinitionDeployInfo> getProcessDeploymentInfos(java.util.List<java.lang.Long> processIds) throws SProcessDefinitionNotFoundException, SBonitaReadException
long getLatestProcessDefinitionId(java.lang.String processName)
throws SBonitaReadException,
SProcessDefinitionNotFoundException
processName - name of process definitionSBonitaReadExceptionSProcessDefinitionNotFoundExceptionlong getProcessDefinitionId(java.lang.String name,
java.lang.String version)
throws SBonitaReadException,
SProcessDefinitionNotFoundException
name - name of process definitionversion - version or process definitionSBonitaReadExceptionSProcessDefinitionNotFoundExceptionSProcessDefinitionDeployInfo updateProcessDefinitionDeployInfo(long processId, EntityUpdateDescriptor descriptor) throws SProcessDefinitionNotFoundException, SProcessDeploymentInfoUpdateException
processId - identifier of process deploy infodescriptor - update descriptionSProcessDefinitionNotFoundException - error thrown when no process deploy info found with the give processIdSProcessDeploymentInfoUpdateExceptionjava.util.List<SProcessDefinitionDeployInfo> searchProcessDeploymentInfosStartedBy(long startedBy, QueryOptions searchOptions) throws SBonitaReadException
startedBy - the name of user who started the processsearchOptions - a QueryOptions object containing some query conditionsSBonitaReadExceptionlong getNumberOfProcessDeploymentInfosStartedBy(long startedBy,
QueryOptions countOptions)
throws SBonitaReadException
startedBy - the name of user who started the processcountOptions - a QueryOptions object containing some query conditionsSBonitaReadExceptionjava.util.List<SProcessDefinitionDeployInfo> searchProcessDeploymentInfos(QueryOptions searchOptions) throws SBonitaReadException
searchOptions - a QueryOptions object containing search criteriaSBonitaReadExceptionlong getNumberOfProcessDeploymentInfos(QueryOptions countOptions) throws SBonitaReadException
countOptions - a QueryOptions object containing query criteriaSBonitaReadExceptionlong getNumberOfUncategorizedProcessDeploymentInfos(QueryOptions countOptions) throws SBonitaReadException
countOptions - a QueryOptions object containing query criteriaSBonitaReadExceptionlong getNumberOfUncategorizedProcessDeploymentInfosSupervisedBy(long userId,
QueryOptions countOptions)
throws SBonitaReadException
userId - identifier of a supervisor usercountOptions - a QueryOptions object containing query criteriaSBonitaReadExceptionjava.util.List<SProcessDefinitionDeployInfo> searchUncategorizedProcessDeploymentInfos(QueryOptions searchOptions) throws SBonitaReadException
searchOptions - a QueryOptions object containing query criteriaSBonitaReadExceptionjava.util.List<SProcessDefinitionDeployInfo> searchProcessDeploymentInfosOfCategory(long categoryId, QueryOptions queryOptions) throws SBonitaReadException
categoryId - Identifier of the categoryqueryOptions - a QueryOptions object containing query criteriaSBonitaReadExceptionjava.util.List<SProcessDefinitionDeployInfo> searchUncategorizedProcessDeploymentInfosSupervisedBy(long userId, QueryOptions searchOptions) throws SBonitaReadException
userId - identifier of a supervisor usersearchOptions - a QueryOptions object containing query criteriaSBonitaReadExceptionjava.util.List<SProcessDefinitionDeployInfo> searchProcessDeploymentInfosCanBeStartedBy(long userId, QueryOptions searchOptions) throws SBonitaReadException
userId - identifier of usersearchOptions - a QueryOptions object containing query criteriaSBonitaReadExceptionlong getNumberOfProcessDeploymentInfosCanBeStartedBy(long userId,
QueryOptions countOptions)
throws SBonitaReadException
userId - identifier of usercountOptions - a QueryOptions object containing query criteriaSBonitaReadExceptionjava.util.List<SProcessDefinitionDeployInfo> searchProcessDeploymentInfosCanBeStartedByUsersManagedBy(long managerUserId, QueryOptions searchOptions) throws SBonitaReadException
managerUserId - identifier of managersearchOptions - a QueryOptions object containing query criteriaSBonitaReadExceptionlong getNumberOfProcessDeploymentInfosCanBeStartedByUsersManagedBy(long managerUserId,
QueryOptions countOptions)
throws SBonitaReadException
managerUserId - identifier of managercountOptions - a QueryOptions object containing query criteriaSBonitaReadExceptionjava.util.List<SProcessDefinitionDeployInfo> searchProcessDeploymentInfos(long userId, QueryOptions searchOptions, java.lang.String querySuffix) throws SBonitaReadException
userId - identifier of usersearchOptions - a QueryOptions object containing query criteriaquerySuffix - query suffix to specify the thing the user can do, it can be "UserSupervised" or "UserCanStart"SBonitaReadExceptionlong getNumberOfProcessDeploymentInfos(long userId,
QueryOptions countOptions,
java.lang.String querySuffix)
throws SBonitaReadException
userId - identifier of usercountOptions - a QueryOptions object containing query criteriaquerySuffix - query suffix to specify the thing the user can do, it can be "UserSupervised" or "UserCanStart"SBonitaReadExceptionjava.util.List<SProcessDefinitionDeployInfo> searchUncategorizedProcessDeploymentInfosCanBeStartedBy(long userId, QueryOptions searchOptions) throws SBonitaReadException
userId - identifier of usersearchOptions - a QueryOptions object containing query criteriaSBonitaReadExceptionlong getNumberOfUncategorizedProcessDeploymentInfosCanBeStartedBy(long userId,
QueryOptions countOptions)
throws SBonitaReadException
userId - identifier of usercountOptions - a QueryOptions object containing query criteriaSBonitaReadExceptionjava.util.Map<java.lang.Long,SProcessDefinitionDeployInfo> getProcessDeploymentInfosFromProcessInstanceIds(java.util.List<java.lang.Long> processInstanceIds) throws SBonitaReadException
processInstanceIds - identifier of process instancesSBonitaReadExceptionjava.util.Map<java.lang.Long,SProcessDefinitionDeployInfo> getProcessDeploymentInfosFromArchivedProcessInstanceIds(java.util.List<java.lang.Long> archivedProcessInstantsIds) throws SBonitaReadException
archivedProcessInstantsIds - identifiers of archived processInstanceSBonitaReadExceptionjava.util.List<SProcessDefinitionDeployInfo> getProcessDeploymentInfosUnrelatedToCategory(long categoryId, int pageIndex, int numberPerPage, org.bonitasoft.engine.bpm.process.ProcessDeploymentInfoCriterion pagingCriterion) throws SBonitaReadException
categoryId - pagingCriterion - numberPerPage - pageIndex - SBonitaReadExceptionjava.lang.Long getNumberOfProcessDeploymentInfosUnrelatedToCategory(long categoryId)
throws SBonitaReadException
categoryId - SBonitaReadExceptionjava.util.List<SProcessDefinitionDeployInfo> getProcessDeploymentInfos(QueryOptions queryOptions) throws SBonitaReadException
queryOptions - object containing query criteriaSBonitaReadExceptionjava.util.List<SProcessDefinitionDeployInfo> getProcessDeploymentInfosWithActorOnlyForGroup(long groupId, QueryOptions queryOptions) throws SBonitaReadException
groupId - the Id of the group from which to retrieve the processes with tasks only it can do.queryOptions - object containing query criteriaSProcessDefinitionDeployInfoSBonitaReadException - in case a read problem occursjava.util.List<SProcessDefinitionDeployInfo> getProcessDeploymentInfosWithActorOnlyForGroups(java.util.List<java.lang.Long> groupIds, QueryOptions queryOptions) throws SBonitaReadException
groupIds - the Ids of the groups from which to retrieve the processes with tasks only they can do.queryOptions - object containing query criteriaSProcessDefinitionDeployInfoSBonitaReadException - in case a read problem occursjava.util.List<SProcessDefinitionDeployInfo> getProcessDeploymentInfosWithActorOnlyForRole(long roleId, QueryOptions queryOptions) throws SBonitaReadException
roleId - the Id of the role from which to retrieve the processes with tasks only it can do.queryOptions - object containing query criteriaSProcessDefinitionDeployInfoSBonitaReadException - in case a read problem occursjava.util.List<SProcessDefinitionDeployInfo> getProcessDeploymentInfosWithActorOnlyForRoles(java.util.List<java.lang.Long> roleIds, QueryOptions queryOptions) throws SBonitaReadException
roleIds - the Ids of the roles from which to retrieve the processes with tasks only they can do.queryOptions - object containing query criteriaSProcessDefinitionDeployInfoSBonitaReadException - in case a read problem occursjava.util.List<SProcessDefinitionDeployInfo> getProcessDeploymentInfosWithActorOnlyForUser(long userId, QueryOptions queryOptions) throws SBonitaReadException
userId - the Id of the user from which to retrieve the processes with tasks only he / she can do.queryOptions - object containing query criteriaSProcessDefinitionDeployInfoSBonitaReadException - in case a read problem occursjava.util.List<SProcessDefinitionDeployInfo> getProcessDeploymentInfosWithActorOnlyForUsers(java.util.List<java.lang.Long> userIds, QueryOptions queryOptions) throws SBonitaReadException
userIds - the Ids of the users from which to retrieve the processes with tasks only they can do.queryOptions - object containing query criteriaSProcessDefinitionDeployInfoSBonitaReadException - in case a read problem occurslong getNumberOfUsersWhoCanStartProcessDeploymentInfo(long processDefinitionId,
QueryOptions queryOptions)
throws SBonitaReadException
processDefinitionId - Identifier of the process definitionqueryOptions - The QueryOptions object containing some query conditionsSBonitaReadExceptionjava.util.List<SUser> searchUsersWhoCanStartProcessDeploymentInfo(long processDefinitionId, QueryOptions queryOptions) throws SBonitaReadException
processDefinitionId - Identifier of the process definitionsearchOptions - The QueryOptions object containing some query conditionsSBonitaReadExceptionlong getNumberOfProcessDeploymentInfosWithAssignedOrPendingHumanTasksFor(long userId,
QueryOptions queryOptions)
throws SBonitaReadException
userId - The identifier of the user.queryOptions - The QueryOptions object containing some query conditionsSBonitaReadExceptionjava.util.List<SProcessDefinitionDeployInfo> searchProcessDeploymentInfosWithAssignedOrPendingHumanTasksFor(long userId, QueryOptions queryOptions) throws SBonitaReadException
userId - The identifier of the user.queryOptions - The QueryOptions object containing some query conditionsSBonitaReadExceptionlong getNumberOfProcessDeploymentInfosWithAssignedOrPendingHumanTasksSupervisedBy(long userId,
QueryOptions queryOptions)
throws SBonitaReadException
userId - The identifier of the user.queryOptions - The QueryOptions object containing some query conditionsSBonitaReadException - if an exception occurs when getting the process deployment information.java.util.List<SProcessDefinitionDeployInfo> searchProcessDeploymentInfosWithAssignedOrPendingHumanTasksSupervisedBy(long userId, QueryOptions queryOptions) throws SBonitaReadException
userId - The identifier of the user.queryOptions - The QueryOptions object containing some query conditionsSBonitaReadException - if an exception occurs when getting the process deployment information.long getNumberOfProcessDeploymentInfosWithAssignedOrPendingHumanTasks(QueryOptions queryOptions) throws SBonitaReadException
queryOptions - The QueryOptions object containing some query conditionsSBonitaReadException - if an exception occurs when getting the process deployment information.java.util.List<SProcessDefinitionDeployInfo> searchProcessDeploymentInfosWithAssignedOrPendingHumanTasks(QueryOptions queryOptions) throws SBonitaReadException
queryOptions - The QueryOptions object containing some query conditionsSBonitaReadException - if an exception occurs when getting the process deployment information.void updateExpressionContent(long processDefinitionId,
long expressionDefinitionId,
java.lang.String content)
throws SProcessDefinitionNotFoundException,
SObjectModificationException
processDefinitionId - the ID of the process definition on which the Expression content will be updated.expressionDefinitionId - the ID of the expression definition to updatecontent - the new String content of the expressionSProcessDefinitionNotFoundException - if the referenced process definition does not exist.SObjectModificationException - if the update cannot be performed successfully.org.bonitasoft.engine.bpm.process.DesignProcessDefinition getDesignProcessDefinition(long processDefinitionId)
throws SProcessDefinitionNotFoundException,
SBonitaReadException
processDefinitionId - Identifier of process definitionSProcessDefinitionNotFoundException - If the process definition doesn't exist.SBonitaReadException - If the process definition design cannot be read