public interface ProcessDefinitionService
| Modifier and Type | Field and Description |
|---|---|
static String |
GROUP_ID |
static String |
PROCESS_CACHE_NAME |
static String |
PROCESS_DEFINITION_ID |
static String |
PROCESSDEFINITION |
static String |
PROCESSDEFINITION_DEPLOY_INFO |
static String |
PROCESSDEFINITION_IS_DISABLED |
static String |
PROCESSDEFINITION_IS_ENABLED |
static String |
PROCESSDEFINITION_IS_RESOLVED |
static String |
PROCESSDEFINITION_IS_UNRESOLVED |
static String |
ROLE_ID |
static String |
STARTED_BY_SUFFIX |
static String |
UNCATEGORIZED_SUFFIX |
static String |
UNCATEGORIZED_SUPERVISED_BY_SUFFIX |
static String |
UNCATEGORIZED_USERCANSTART_SUFFIX |
static String |
USER_ID |
static 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 |
disableProcessDeploymentInfo(long processId)
set the process as RESOLVED when it's in ENABLED state
|
void |
enableProcessDeploymentInfo(long processId)
Enable the specific process definition, set the process as ENABLED when it's in RESOLVED state
|
long |
getLatestProcessDefinitionId(String processName)
Get the processDefinitionId of the most recent version of the process
|
SFlowNodeDefinition |
getNextFlowNode(SProcessDefinition definition,
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,
org.bonitasoft.engine.persistence.QueryOptions countOptions,
String querySuffix)
Get total number of process definitions for the specific user who can perform the "querySuffix" specified action
|
long |
getNumberOfProcessDeploymentInfos(org.bonitasoft.engine.persistence.QueryOptions countOptions)
Get number of all process definition deploy infos according to the specific search criteria
|
long |
getNumberOfProcessDeploymentInfosByActivationState(ActivationState activationState)
Gets how many processes are in the given state.
|
long |
getNumberOfProcessDeploymentInfosCanBeStartedBy(long userId,
org.bonitasoft.engine.persistence.QueryOptions countOptions)
Get number of all process definitions for the specific user who can start
|
long |
getNumberOfProcessDeploymentInfosCanBeStartedByUsersManagedBy(long managerUserId,
org.bonitasoft.engine.persistence.QueryOptions countOptions)
Get number of all process definitions for the users managed by specific manager, or manager who can start
|
long |
getNumberOfProcessDeploymentInfosStartedBy(long startedBy,
org.bonitasoft.engine.persistence.QueryOptions countOptions)
Get number of all process deploy info started by the specific user
|
Long |
getNumberOfProcessDeploymentInfosUnrelatedToCategory(long categoryId)
Get number of SProcessDefinitionDeployInfos unrelated to the specific category
|
long |
getNumberOfProcessDeploymentInfosWithAssignedOrPendingHumanTasks(org.bonitasoft.engine.persistence.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,
org.bonitasoft.engine.persistence.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,
org.bonitasoft.engine.persistence.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(org.bonitasoft.engine.persistence.QueryOptions countOptions)
Get total number of uncategorized process definitions by given query criteria
|
long |
getNumberOfUncategorizedProcessDeploymentInfosCanBeStartedBy(long userId,
org.bonitasoft.engine.persistence.QueryOptions countOptions)
Get total number of uncategorized process definitions for the specific user who can start
|
long |
getNumberOfUncategorizedProcessDeploymentInfosSupervisedBy(long userId,
org.bonitasoft.engine.persistence.QueryOptions countOptions)
Get total number of uncategorized process definitions by given query criteria for specific supervisor
|
long |
getNumberOfUsersWhoCanStartProcessDeploymentInfo(long processDefinitionId,
org.bonitasoft.engine.persistence.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(String name,
String version)
Get the processDefinitionId by name and version
|
List<Long> |
getProcessDefinitionIds(ActivationState activationState,
int fromIndex,
int numberOfResult)
Get the process definition identifiers in the given state.
|
List<Long> |
getProcessDefinitionIds(int fromIndex,
int numberOfResult)
Get the process definition identifiers.
|
SProcessDefinitionDeployInfo |
getProcessDeploymentInfo(long processId)
Get deployment info of the process definition having the id given in parameter
|
List<SProcessDefinitionDeployInfo> |
getProcessDeploymentInfos(int fromIndex,
int numberPerPage,
String field,
org.bonitasoft.engine.persistence.OrderByType order)
Get process definition deploy info in a specific interval with order, this can be used for pagination
|
List<SProcessDefinitionDeployInfo> |
getProcessDeploymentInfos(List<Long> processIds) |
List<SProcessDefinitionDeployInfo> |
getProcessDeploymentInfos(List<Long> processIds,
int fromIndex,
int numberOfProcesses,
String field,
org.bonitasoft.engine.persistence.OrderByType order)
get sub set of processDefinitionDeployInfos in specific order
|
List<SProcessDefinitionDeployInfo> |
getProcessDeploymentInfos(org.bonitasoft.engine.persistence.QueryOptions queryOptions)
Get process definition deploy info in a specific interval with order, this can be used for pagination
|
Map<Long,SProcessDefinitionDeployInfo> |
getProcessDeploymentInfosFromArchivedProcessInstanceIds(List<Long> archivedProcessInstantsIds)
Get A list of SProcessDefinitionDeployInfos for the specific archived processInstances
|
Map<Long,SProcessDefinitionDeployInfo> |
getProcessDeploymentInfosFromProcessInstanceIds(List<Long> processInstanceIds)
A list of SProcessDefinitionDeployInfos for the specific processInstances
|
List<SProcessDefinitionDeployInfo> |
getProcessDeploymentInfosUnrelatedToCategory(long categoryId,
int pageIndex,
int numberPerPage,
ProcessDeploymentInfoCriterion pagingCriterion)
Get A list of SProcessDefinitionDeployInfos unrelated to the specific category
|
List<SProcessDefinitionDeployInfo> |
getProcessDeploymentInfosWithActorOnlyForGroup(long groupId,
org.bonitasoft.engine.persistence.QueryOptions queryOptions)
List all processes that contain at least one task which actor is mapped only to the specified group.
|
List<SProcessDefinitionDeployInfo> |
getProcessDeploymentInfosWithActorOnlyForGroups(List<Long> groupIds,
org.bonitasoft.engine.persistence.QueryOptions queryOptions)
List all processes that contain at least one task which actor is mapped only to the specified groups.
|
List<SProcessDefinitionDeployInfo> |
getProcessDeploymentInfosWithActorOnlyForRole(long roleId,
org.bonitasoft.engine.persistence.QueryOptions queryOptions)
List all processes that contain at least one task which actor is mapped only to the specified role.
|
List<SProcessDefinitionDeployInfo> |
getProcessDeploymentInfosWithActorOnlyForRoles(List<Long> roleIds,
org.bonitasoft.engine.persistence.QueryOptions queryOptions)
List all processes that contain at least one task which actor is mapped only to the specified roles.
|
List<SProcessDefinitionDeployInfo> |
getProcessDeploymentInfosWithActorOnlyForUser(long userId,
org.bonitasoft.engine.persistence.QueryOptions queryOptions)
List all processes that contain at least one task which actor is mapped only to the specified user.
|
List<SProcessDefinitionDeployInfo> |
getProcessDeploymentInfosWithActorOnlyForUsers(List<Long> userIds,
org.bonitasoft.engine.persistence.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's in UNRESOLVED state
|
List<SProcessDefinitionDeployInfo> |
searchProcessDeploymentInfos(long userId,
org.bonitasoft.engine.persistence.QueryOptions searchOptions,
String querySuffix)
Search all process definitions for the specific user who can perform the "querySuffix" specified action
|
List<SProcessDefinitionDeployInfo> |
searchProcessDeploymentInfos(org.bonitasoft.engine.persistence.QueryOptions searchOptions)
Search all process definition deploy infos according to the specific search criteria
|
List<SProcessDefinitionDeployInfo> |
searchProcessDeploymentInfosCanBeStartedBy(long userId,
org.bonitasoft.engine.persistence.QueryOptions searchOptions)
Search all process definitions for the specific user who can start
|
List<SProcessDefinitionDeployInfo> |
searchProcessDeploymentInfosCanBeStartedByUsersManagedBy(long managerUserId,
org.bonitasoft.engine.persistence.QueryOptions searchOptions)
Search all process definitions for the users managed by specific manager, or manager who can start
|
List<SProcessDefinitionDeployInfo> |
searchProcessDeploymentInfosOfCategory(long categoryId,
org.bonitasoft.engine.persistence.QueryOptions queryOptions)
Search all process definitions for a specific category.
|
List<SProcessDefinitionDeployInfo> |
searchProcessDeploymentInfosStartedBy(long startedBy,
org.bonitasoft.engine.persistence.QueryOptions searchOptions)
Search all process deploy info started by the specific user
|
List<SProcessDefinitionDeployInfo> |
searchProcessDeploymentInfosWithAssignedOrPendingHumanTasks(org.bonitasoft.engine.persistence.QueryOptions queryOptions)
Search all process definitions that have instances with one or more human tasks assigned/pending.
|
List<SProcessDefinitionDeployInfo> |
searchProcessDeploymentInfosWithAssignedOrPendingHumanTasksFor(long userId,
org.bonitasoft.engine.persistence.QueryOptions queryOptions)
Search all process definitions that have one or more human tasks assigned/pending for a specific user.
|
List<SProcessDefinitionDeployInfo> |
searchProcessDeploymentInfosWithAssignedOrPendingHumanTasksSupervisedBy(long userId,
org.bonitasoft.engine.persistence.QueryOptions queryOptions)
Search all process definitions supervised by a specific user, that have instances with one or more human tasks assigned/pending.
|
List<SProcessDefinitionDeployInfo> |
searchUncategorizedProcessDeploymentInfos(org.bonitasoft.engine.persistence.QueryOptions searchOptions)
Search all uncategorized process definitions according to the search criteria.
|
List<SProcessDefinitionDeployInfo> |
searchUncategorizedProcessDeploymentInfosCanBeStartedBy(long userId,
org.bonitasoft.engine.persistence.QueryOptions searchOptions)
Search all uncategorized process definitions for the specific user who can start
|
List<SProcessDefinitionDeployInfo> |
searchUncategorizedProcessDeploymentInfosSupervisedBy(long userId,
org.bonitasoft.engine.persistence.QueryOptions searchOptions)
Search all uncategorized process definitions by given query criteria for specific supervisor
|
List<org.bonitasoft.engine.identity.model.SUser> |
searchUsersWhoCanStartProcessDeploymentInfo(long processDefinitionId,
org.bonitasoft.engine.persistence.QueryOptions queryOptions)
Search users according to specific query options, and who can start the given process definition
|
SProcessDefinition |
store(SProcessDefinition definition,
String displayName,
String displayDescription)
Store the processDefinition to file system and its deploy info to DB.
|
SProcessDefinitionDeployInfo |
updateProcessDefinitionDeployInfo(long processId,
org.bonitasoft.engine.recorder.model.EntityUpdateDescriptor descriptor)
Update deployment info of the process definition having the id given in parameter
|
static final String PROCESSDEFINITION
static final String PROCESSDEFINITION_IS_ENABLED
static final String PROCESSDEFINITION_IS_DISABLED
static final String PROCESSDEFINITION_DEPLOY_INFO
static final String PROCESSDEFINITION_IS_RESOLVED
static final String PROCESSDEFINITION_IS_UNRESOLVED
static final String PROCESS_CACHE_NAME
static final String UNCATEGORIZED_SUFFIX
static final String UNCATEGORIZED_SUPERVISED_BY_SUFFIX
static final String UNCATEGORIZED_USERCANSTART_SUFFIX
static final String WHOCANSTART_PROCESS_SUFFIX
static final String STARTED_BY_SUFFIX
static final String PROCESS_DEFINITION_ID
static final String USER_ID
static final String ROLE_ID
static final String GROUP_ID
SProcessDefinition store(SProcessDefinition definition, String displayName, String displayDescription) throws SProcessDefinitionException
definition - the processDefinition will be storeddisplayName - display name of the processdisplayDescription - display description of the processSProcessDefinitionExceptionSProcessDefinition getProcessDefinition(long processDefinitionId) throws SProcessDefinitionNotFoundException, SProcessDefinitionReadException
processDefinitionId - identifier of processDefinitionSProcessDefinitionNotFoundException - error thrown if no process definition foundSProcessDefinitionReadExceptionSProcessDefinitionDeployInfo getProcessDeploymentInfo(long processId) throws SProcessDefinitionNotFoundException, SProcessDefinitionReadException
processId - id of the process definition on which we want deployment informationSProcessDefinitionNotFoundException - error thrown if no process definition foundSProcessDefinitionReadExceptionvoid delete(long processId)
throws SProcessDefinitionNotFoundException,
SProcessDeletionException,
SDeletingEnabledProcessException
processId - identifier of processDefinitionSProcessDefinitionNotFoundException - error thrown if no process definition foundSProcessDeletionExceptionSDeletingEnabledProcessException - error throw if the process still enabledList<SProcessDefinitionDeployInfo> getProcessDeploymentInfos(int fromIndex, int numberPerPage, String field, org.bonitasoft.engine.persistence.OrderByType order) throws SProcessDefinitionReadException
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 DESCSProcessDefinitionReadExceptionvoid enableProcessDeploymentInfo(long processId)
throws SProcessDefinitionNotFoundException,
SProcessEnablementException
processId - identifier of processDefinitionSProcessDefinitionNotFoundException - error thrown if no process definition found for the given processIdSProcessEnablementExceptionvoid disableProcessDeploymentInfo(long processId)
throws SProcessDefinitionNotFoundException,
SProcessDisablementException
processId - identifier of process definitionSProcessDefinitionNotFoundException - error thrown if no process definition found for the given processIdSProcessDisablementExceptionvoid resolveProcess(long processId)
throws SProcessDefinitionNotFoundException,
SProcessDisablementException
processId - identifier of process definitionSProcessDefinitionNotFoundException - error thrown if no process definition found for the given processIdSProcessDisablementExceptionlong getNumberOfProcessDeploymentInfosByActivationState(ActivationState activationState) throws SProcessDefinitionReadException
activationState - the activation stateSProcessDefinitionReadExceptionlong getNumberOfProcessDeploymentInfos()
throws SProcessDefinitionReadException
SProcessDefinitionReadException - occurs when an exception is thrown during method executionList<Long> getProcessDefinitionIds(ActivationState activationState, int fromIndex, int numberOfResult) throws SProcessDefinitionReadException
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 returnedSProcessDefinitionReadExceptionList<Long> getProcessDefinitionIds(int fromIndex, int numberOfResult) throws SProcessDefinitionReadException
numberOfResult - Number of result we want to get. Maximum number of result returnedSProcessDefinitionReadExceptionSFlowNodeDefinition getNextFlowNode(SProcessDefinition definition, String source)
definition - the process definition containing source flow nodesource - a flow node in process definitionList<SProcessDefinitionDeployInfo> getProcessDeploymentInfos(List<Long> processIds, int fromIndex, int numberOfProcesses, String field, org.bonitasoft.engine.persistence.OrderByType order) throws SProcessDefinitionNotFoundException, SProcessDefinitionReadException
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 DESCSProcessDefinitionNotFoundExceptionSProcessDefinitionReadExceptionList<SProcessDefinitionDeployInfo> getProcessDeploymentInfos(List<Long> processIds) throws SProcessDefinitionNotFoundException, SProcessDefinitionReadException
long getLatestProcessDefinitionId(String processName) throws SProcessDefinitionReadException, SProcessDefinitionNotFoundException
processName - name of process definitionSProcessDefinitionReadExceptionSProcessDefinitionNotFoundExceptionlong getProcessDefinitionId(String name, String version) throws SProcessDefinitionReadException
name - name of process definitionversion - version or process definitionSProcessDefinitionReadExceptionSProcessDefinitionDeployInfo updateProcessDefinitionDeployInfo(long processId, org.bonitasoft.engine.recorder.model.EntityUpdateDescriptor descriptor) throws SProcessDefinitionNotFoundException, SProcessDeploymentInfoUpdateException
processId - identifier of process deploy infodescriptor - update descriptionSProcessDefinitionNotFoundException - error thrown when no process deploy info found with the give processIdSProcessDeploymentInfoUpdateExceptionList<SProcessDefinitionDeployInfo> searchProcessDeploymentInfosStartedBy(long startedBy, org.bonitasoft.engine.persistence.QueryOptions searchOptions) throws org.bonitasoft.engine.persistence.SBonitaReadException
startedBy - the name of user who started the processsearchOptions - a QueryOptions object containing some query conditionsorg.bonitasoft.engine.persistence.SBonitaReadExceptionlong getNumberOfProcessDeploymentInfosStartedBy(long startedBy,
org.bonitasoft.engine.persistence.QueryOptions countOptions)
throws org.bonitasoft.engine.persistence.SBonitaReadException
startedBy - the name of user who started the processcountOptions - a QueryOptions object containing some query conditionsorg.bonitasoft.engine.persistence.SBonitaReadExceptionList<SProcessDefinitionDeployInfo> searchProcessDeploymentInfos(org.bonitasoft.engine.persistence.QueryOptions searchOptions) throws org.bonitasoft.engine.persistence.SBonitaReadException
searchOptions - a QueryOptions object containing search criteriaorg.bonitasoft.engine.persistence.SBonitaReadExceptionlong getNumberOfProcessDeploymentInfos(org.bonitasoft.engine.persistence.QueryOptions countOptions)
throws org.bonitasoft.engine.persistence.SBonitaReadException
countOptions - a QueryOptions object containing query criteriaorg.bonitasoft.engine.persistence.SBonitaReadExceptionlong getNumberOfUncategorizedProcessDeploymentInfos(org.bonitasoft.engine.persistence.QueryOptions countOptions)
throws org.bonitasoft.engine.persistence.SBonitaReadException
countOptions - a QueryOptions object containing query criteriaorg.bonitasoft.engine.persistence.SBonitaReadExceptionlong getNumberOfUncategorizedProcessDeploymentInfosSupervisedBy(long userId,
org.bonitasoft.engine.persistence.QueryOptions countOptions)
throws org.bonitasoft.engine.persistence.SBonitaReadException
userId - identifier of a supervisor usercountOptions - a QueryOptions object containing query criteriaorg.bonitasoft.engine.persistence.SBonitaReadExceptionList<SProcessDefinitionDeployInfo> searchUncategorizedProcessDeploymentInfos(org.bonitasoft.engine.persistence.QueryOptions searchOptions) throws org.bonitasoft.engine.persistence.SBonitaReadException
searchOptions - a QueryOptions object containing query criteriaorg.bonitasoft.engine.persistence.SBonitaReadExceptionList<SProcessDefinitionDeployInfo> searchProcessDeploymentInfosOfCategory(long categoryId, org.bonitasoft.engine.persistence.QueryOptions queryOptions) throws org.bonitasoft.engine.persistence.SBonitaReadException
categoryId - Identifier of the categorysearchOptions - a QueryOptions object containing query criteriaorg.bonitasoft.engine.persistence.SBonitaReadExceptionList<SProcessDefinitionDeployInfo> searchUncategorizedProcessDeploymentInfosSupervisedBy(long userId, org.bonitasoft.engine.persistence.QueryOptions searchOptions) throws org.bonitasoft.engine.persistence.SBonitaReadException
userId - identifier of a supervisor usersearchOptions - a QueryOptions object containing query criteriaorg.bonitasoft.engine.persistence.SBonitaReadExceptionList<SProcessDefinitionDeployInfo> searchProcessDeploymentInfosCanBeStartedBy(long userId, org.bonitasoft.engine.persistence.QueryOptions searchOptions) throws org.bonitasoft.engine.persistence.SBonitaReadException
userId - identifier of usersearchOptions - a QueryOptions object containing query criteriaorg.bonitasoft.engine.persistence.SBonitaReadExceptionlong getNumberOfProcessDeploymentInfosCanBeStartedBy(long userId,
org.bonitasoft.engine.persistence.QueryOptions countOptions)
throws org.bonitasoft.engine.persistence.SBonitaReadException
userId - identifier of usercountOptions - a QueryOptions object containing query criteriaorg.bonitasoft.engine.persistence.SBonitaReadExceptionList<SProcessDefinitionDeployInfo> searchProcessDeploymentInfosCanBeStartedByUsersManagedBy(long managerUserId, org.bonitasoft.engine.persistence.QueryOptions searchOptions) throws org.bonitasoft.engine.persistence.SBonitaReadException
managerUserId - identifier of managersearchOptions - a QueryOptions object containing query criteriaorg.bonitasoft.engine.persistence.SBonitaReadExceptionlong getNumberOfProcessDeploymentInfosCanBeStartedByUsersManagedBy(long managerUserId,
org.bonitasoft.engine.persistence.QueryOptions countOptions)
throws org.bonitasoft.engine.persistence.SBonitaReadException
managerUserId - identifier of managercountOptions - a QueryOptions object containing query criteriaorg.bonitasoft.engine.persistence.SBonitaReadExceptionList<SProcessDefinitionDeployInfo> searchProcessDeploymentInfos(long userId, org.bonitasoft.engine.persistence.QueryOptions searchOptions, String querySuffix) throws org.bonitasoft.engine.persistence.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"org.bonitasoft.engine.persistence.SBonitaReadExceptionlong getNumberOfProcessDeploymentInfos(long userId,
org.bonitasoft.engine.persistence.QueryOptions countOptions,
String querySuffix)
throws org.bonitasoft.engine.persistence.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"org.bonitasoft.engine.persistence.SBonitaReadExceptionList<SProcessDefinitionDeployInfo> searchUncategorizedProcessDeploymentInfosCanBeStartedBy(long userId, org.bonitasoft.engine.persistence.QueryOptions searchOptions) throws org.bonitasoft.engine.persistence.SBonitaReadException
userId - identifier of usersearchOptions - a QueryOptions object containing query criteriaorg.bonitasoft.engine.persistence.SBonitaReadExceptionlong getNumberOfUncategorizedProcessDeploymentInfosCanBeStartedBy(long userId,
org.bonitasoft.engine.persistence.QueryOptions countOptions)
throws org.bonitasoft.engine.persistence.SBonitaReadException
userId - identifier of usercountOptions - a QueryOptions object containing query criteriaorg.bonitasoft.engine.persistence.SBonitaReadExceptionMap<Long,SProcessDefinitionDeployInfo> getProcessDeploymentInfosFromProcessInstanceIds(List<Long> processInstanceIds) throws org.bonitasoft.engine.persistence.SBonitaReadException
processInstanceIds - identifier of process instancesorg.bonitasoft.engine.persistence.SBonitaReadExceptionMap<Long,SProcessDefinitionDeployInfo> getProcessDeploymentInfosFromArchivedProcessInstanceIds(List<Long> archivedProcessInstantsIds) throws SProcessDefinitionReadException
archivedProcessInstantsIds - identifiers of archived processInstanceSProcessDefinitionReadExceptionList<SProcessDefinitionDeployInfo> getProcessDeploymentInfosUnrelatedToCategory(long categoryId, int pageIndex, int numberPerPage, ProcessDeploymentInfoCriterion pagingCriterion) throws SProcessDefinitionReadException
categoryId - pagingCriterion - numberPerPage - pageIndex - SProcessDefinitionReadExceptionLong getNumberOfProcessDeploymentInfosUnrelatedToCategory(long categoryId) throws SProcessDefinitionReadException
categoryId - SProcessDefinitionReadExceptionList<SProcessDefinitionDeployInfo> getProcessDeploymentInfos(org.bonitasoft.engine.persistence.QueryOptions queryOptions) throws SProcessDefinitionReadException
queryOptions - object containing query criteriaSProcessDefinitionReadExceptionList<SProcessDefinitionDeployInfo> getProcessDeploymentInfosWithActorOnlyForGroup(long groupId, org.bonitasoft.engine.persistence.QueryOptions queryOptions) throws SProcessDefinitionReadException
userId - the Id of the group from which to retrieve the processes with tasks only it can do.queryOptions - object containing query criteriaSProcessDefinitionDeployInfoSProcessDefinitionReadException - in case a read problem occursList<SProcessDefinitionDeployInfo> getProcessDeploymentInfosWithActorOnlyForGroups(List<Long> groupIds, org.bonitasoft.engine.persistence.QueryOptions queryOptions) throws SProcessDefinitionReadException
userId - the Ids of the groups from which to retrieve the processes with tasks only they can do.queryOptions - object containing query criteriaSProcessDefinitionDeployInfoSProcessDefinitionReadException - in case a read problem occursList<SProcessDefinitionDeployInfo> getProcessDeploymentInfosWithActorOnlyForRole(long roleId, org.bonitasoft.engine.persistence.QueryOptions queryOptions) throws SProcessDefinitionReadException
userId - the Id of the role from which to retrieve the processes with tasks only it can do.queryOptions - object containing query criteriaSProcessDefinitionDeployInfoSProcessDefinitionReadException - in case a read problem occursList<SProcessDefinitionDeployInfo> getProcessDeploymentInfosWithActorOnlyForRoles(List<Long> roleIds, org.bonitasoft.engine.persistence.QueryOptions queryOptions) throws SProcessDefinitionReadException
userId - the Ids of the roles from which to retrieve the processes with tasks only they can do.queryOptions - object containing query criteriaSProcessDefinitionDeployInfoSProcessDefinitionReadException - in case a read problem occursList<SProcessDefinitionDeployInfo> getProcessDeploymentInfosWithActorOnlyForUser(long userId, org.bonitasoft.engine.persistence.QueryOptions queryOptions) throws SProcessDefinitionReadException
userId - the Id of the user from which to retrieve the processes with tasks only he / she can do.queryOptions - object containing query criteriaSProcessDefinitionDeployInfoSProcessDefinitionReadException - in case a read problem occursList<SProcessDefinitionDeployInfo> getProcessDeploymentInfosWithActorOnlyForUsers(List<Long> userIds, org.bonitasoft.engine.persistence.QueryOptions queryOptions) throws SProcessDefinitionReadException
userId - the Ids of the users from which to retrieve the processes with tasks only they can do.queryOptions - object containing query criteriaSProcessDefinitionDeployInfoSProcessDefinitionReadException - in case a read problem occurslong getNumberOfUsersWhoCanStartProcessDeploymentInfo(long processDefinitionId,
org.bonitasoft.engine.persistence.QueryOptions queryOptions)
throws org.bonitasoft.engine.persistence.SBonitaReadException
processDefinitionId - Identifier of the process definitionsearchOptions - The QueryOptions object containing some query conditionsorg.bonitasoft.engine.persistence.SBonitaReadExceptionList<org.bonitasoft.engine.identity.model.SUser> searchUsersWhoCanStartProcessDeploymentInfo(long processDefinitionId, org.bonitasoft.engine.persistence.QueryOptions queryOptions) throws org.bonitasoft.engine.persistence.SBonitaReadException
processDefinitionId - Identifier of the process definitionsearchOptions - The QueryOptions object containing some query conditionsorg.bonitasoft.engine.persistence.SBonitaReadExceptionlong getNumberOfProcessDeploymentInfosWithAssignedOrPendingHumanTasksFor(long userId,
org.bonitasoft.engine.persistence.QueryOptions queryOptions)
throws org.bonitasoft.engine.persistence.SBonitaReadException
userId - The identifier of the user.searchOptions - The QueryOptions object containing some query conditionsorg.bonitasoft.engine.persistence.SBonitaReadExceptionList<SProcessDefinitionDeployInfo> searchProcessDeploymentInfosWithAssignedOrPendingHumanTasksFor(long userId, org.bonitasoft.engine.persistence.QueryOptions queryOptions) throws org.bonitasoft.engine.persistence.SBonitaReadException
userId - The identifier of the user.queryOptions - The QueryOptions object containing some query conditionsorg.bonitasoft.engine.persistence.SBonitaReadExceptionlong getNumberOfProcessDeploymentInfosWithAssignedOrPendingHumanTasksSupervisedBy(long userId,
org.bonitasoft.engine.persistence.QueryOptions queryOptions)
throws org.bonitasoft.engine.persistence.SBonitaReadException
userId - The identifier of the user.queryOptions - The QueryOptions object containing some query conditionsorg.bonitasoft.engine.persistence.SBonitaReadException - if an exception occurs when getting the process deployment information.List<SProcessDefinitionDeployInfo> searchProcessDeploymentInfosWithAssignedOrPendingHumanTasksSupervisedBy(long userId, org.bonitasoft.engine.persistence.QueryOptions queryOptions) throws org.bonitasoft.engine.persistence.SBonitaReadException
userId - The identifier of the user.queryOptions - The QueryOptions object containing some query conditionsorg.bonitasoft.engine.persistence.SBonitaReadException - if an exception occurs when getting the process deployment information.long getNumberOfProcessDeploymentInfosWithAssignedOrPendingHumanTasks(org.bonitasoft.engine.persistence.QueryOptions queryOptions)
throws org.bonitasoft.engine.persistence.SBonitaReadException
queryOptions - The QueryOptions object containing some query conditionsorg.bonitasoft.engine.persistence.SBonitaReadException - if an exception occurs when getting the process deployment information.List<SProcessDefinitionDeployInfo> searchProcessDeploymentInfosWithAssignedOrPendingHumanTasks(org.bonitasoft.engine.persistence.QueryOptions queryOptions) throws org.bonitasoft.engine.persistence.SBonitaReadException
queryOptions - The QueryOptions object containing some query conditionsorg.bonitasoft.engine.persistence.SBonitaReadException - if an exception occurs when getting the process deployment information.Copyright © 2014 Bonitasoft S.A.. All rights reserved.