public class ProcessDefinitionServiceImpl extends Object implements ProcessDefinitionService
GROUP_ID, PROCESS_CACHE_NAME, PROCESS_DEFINITION_ID, PROCESSDEFINITION, PROCESSDEFINITION_DEPLOY_INFO, PROCESSDEFINITION_IS_DISABLED, PROCESSDEFINITION_IS_ENABLED, PROCESSDEFINITION_IS_RESOLVED, PROCESSDEFINITION_IS_UNRESOLVED, ROLE_ID, STARTED_BY_SUFFIX, UNCATEGORIZED_SUFFIX, UNCATEGORIZED_SUPERVISED_BY_SUFFIX, UNCATEGORIZED_USERCANSTART_SUFFIX, USER_ID, WHOCANSTART_PROCESS_SUFFIX| Constructor and Description |
|---|
ProcessDefinitionServiceImpl(org.bonitasoft.engine.cache.CacheService cacheService,
org.bonitasoft.engine.recorder.Recorder recorder,
org.bonitasoft.engine.persistence.ReadPersistenceService persistenceService,
org.bonitasoft.engine.events.EventService eventService,
SessionService sessionService,
org.bonitasoft.engine.sessionaccessor.ReadSessionAccessor sessionAccessor,
ParserFactory parserFactory,
XMLWriter xmlWriter,
org.bonitasoft.engine.services.QueriableLoggerService queriableLoggerService,
org.bonitasoft.engine.dependency.DependencyService dependencyService) |
| 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
|
protected long |
generateId() |
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 processId)
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 numberOfResults)
Get the process definition identifiers in the given state.
|
List<Long> |
getProcessDefinitionIds(int fromIndex,
int numberOfResults)
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
|
public ProcessDefinitionServiceImpl(org.bonitasoft.engine.cache.CacheService cacheService,
org.bonitasoft.engine.recorder.Recorder recorder,
org.bonitasoft.engine.persistence.ReadPersistenceService persistenceService,
org.bonitasoft.engine.events.EventService eventService,
SessionService sessionService,
org.bonitasoft.engine.sessionaccessor.ReadSessionAccessor sessionAccessor,
ParserFactory parserFactory,
XMLWriter xmlWriter,
org.bonitasoft.engine.services.QueriableLoggerService queriableLoggerService,
org.bonitasoft.engine.dependency.DependencyService dependencyService)
public void delete(long processId)
throws SProcessDefinitionNotFoundException,
SProcessDeletionException,
SDeletingEnabledProcessException
ProcessDefinitionServicedelete in interface ProcessDefinitionServiceprocessId - identifier of processDefinitionSProcessDefinitionNotFoundException - error thrown if no process definition foundSProcessDeletionExceptionSDeletingEnabledProcessException - error throw if the process still enabledpublic void disableProcessDeploymentInfo(long processId)
throws SProcessDefinitionNotFoundException,
SProcessDisablementException
ProcessDefinitionServicedisableProcessDeploymentInfo in interface ProcessDefinitionServiceprocessId - identifier of process definitionSProcessDefinitionNotFoundException - error thrown if no process definition found for the given processIdSProcessDisablementExceptionpublic void enableProcessDeploymentInfo(long processId)
throws SProcessDefinitionNotFoundException,
SProcessEnablementException
ProcessDefinitionServiceenableProcessDeploymentInfo in interface ProcessDefinitionServiceprocessId - identifier of processDefinitionSProcessDefinitionNotFoundException - error thrown if no process definition found for the given processIdSProcessEnablementExceptionpublic List<SProcessDefinitionDeployInfo> getProcessDeploymentInfos(int fromIndex, int numberPerPage, String field, org.bonitasoft.engine.persistence.OrderByType order) throws SProcessDefinitionReadException
ProcessDefinitionServicegetProcessDeploymentInfos in interface ProcessDefinitionServicefromIndex - 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 DESCSProcessDefinitionReadExceptionpublic long getNumberOfProcessDeploymentInfos()
throws SProcessDefinitionReadException
ProcessDefinitionServicegetNumberOfProcessDeploymentInfos in interface ProcessDefinitionServiceSProcessDefinitionReadException - occurs when an exception is thrown during method executionpublic SProcessDefinition getProcessDefinition(long processId) throws SProcessDefinitionNotFoundException, SProcessDefinitionReadException
ProcessDefinitionServicegetProcessDefinition in interface ProcessDefinitionServiceprocessId - identifier of processDefinitionSProcessDefinitionNotFoundException - error thrown if no process definition foundSProcessDefinitionReadExceptionprotected long generateId()
public SProcessDefinitionDeployInfo getProcessDeploymentInfo(long processId) throws SProcessDefinitionNotFoundException, SProcessDefinitionReadException
ProcessDefinitionServicegetProcessDeploymentInfo in interface ProcessDefinitionServiceprocessId - id of the process definition on which we want deployment informationSProcessDefinitionNotFoundException - error thrown if no process definition foundSProcessDefinitionReadExceptionpublic SProcessDefinition store(SProcessDefinition definition, String displayName, String displayDescription) throws SProcessDefinitionException
ProcessDefinitionServicestore in interface ProcessDefinitionServicedefinition - the processDefinition will be storeddisplayName - display name of the processdisplayDescription - display description of the processSProcessDefinitionExceptionpublic void resolveProcess(long processId)
throws SProcessDefinitionNotFoundException,
SProcessDisablementException
ProcessDefinitionServiceresolveProcess in interface ProcessDefinitionServiceprocessId - identifier of process definitionSProcessDefinitionNotFoundException - error thrown if no process definition found for the given processIdSProcessDisablementExceptionpublic long getNumberOfProcessDeploymentInfosByActivationState(ActivationState activationState) throws SProcessDefinitionReadException
ProcessDefinitionServicegetNumberOfProcessDeploymentInfosByActivationState in interface ProcessDefinitionServiceactivationState - the activation stateSProcessDefinitionReadExceptionpublic List<Long> getProcessDefinitionIds(ActivationState activationState, int fromIndex, int numberOfResults) throws SProcessDefinitionReadException
ProcessDefinitionServicegetProcessDefinitionIds in interface ProcessDefinitionServiceactivationState - the activation statefromIndex - Index of the record to be retrieved from. First record has index 0numberOfResults - Number of result we want to get. Maximum number of result returnedSProcessDefinitionReadExceptionpublic List<Long> getProcessDefinitionIds(int fromIndex, int numberOfResults) throws SProcessDefinitionReadException
ProcessDefinitionServicegetProcessDefinitionIds in interface ProcessDefinitionServicenumberOfResults - Number of result we want to get. Maximum number of result returnedSProcessDefinitionReadExceptionpublic SFlowNodeDefinition getNextFlowNode(SProcessDefinition definition, String source)
ProcessDefinitionServicegetNextFlowNode in interface ProcessDefinitionServicedefinition - the process definition containing source flow nodesource - a flow node in process definitionpublic List<SProcessDefinitionDeployInfo> getProcessDeploymentInfos(List<Long> processIds, int fromIndex, int numberOfProcesses, String field, org.bonitasoft.engine.persistence.OrderByType order) throws SProcessDefinitionReadException
ProcessDefinitionServicegetProcessDeploymentInfos in interface ProcessDefinitionServiceprocessIds - 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 DESCSProcessDefinitionReadExceptionpublic List<SProcessDefinitionDeployInfo> getProcessDeploymentInfos(List<Long> processIds) throws SProcessDefinitionReadException
getProcessDeploymentInfos in interface ProcessDefinitionServiceSProcessDefinitionReadExceptionpublic long getLatestProcessDefinitionId(String processName) throws SProcessDefinitionReadException, SProcessDefinitionNotFoundException
ProcessDefinitionServicegetLatestProcessDefinitionId in interface ProcessDefinitionServiceprocessName - name of process definitionSProcessDefinitionReadExceptionSProcessDefinitionNotFoundExceptionpublic long getProcessDefinitionId(String name, String version) throws SProcessDefinitionReadException
ProcessDefinitionServicegetProcessDefinitionId in interface ProcessDefinitionServicename - name of process definitionversion - version or process definitionSProcessDefinitionReadExceptionpublic SProcessDefinitionDeployInfo updateProcessDefinitionDeployInfo(long processId, org.bonitasoft.engine.recorder.model.EntityUpdateDescriptor descriptor) throws SProcessDefinitionNotFoundException, SProcessDeploymentInfoUpdateException
ProcessDefinitionServiceupdateProcessDefinitionDeployInfo in interface ProcessDefinitionServiceprocessId - identifier of process deploy infodescriptor - update descriptionSProcessDefinitionNotFoundException - error thrown when no process deploy info found with the give processIdSProcessDeploymentInfoUpdateExceptionpublic List<SProcessDefinitionDeployInfo> searchProcessDeploymentInfosStartedBy(long startedBy, org.bonitasoft.engine.persistence.QueryOptions searchOptions) throws org.bonitasoft.engine.persistence.SBonitaReadException
ProcessDefinitionServicesearchProcessDeploymentInfosStartedBy in interface ProcessDefinitionServicestartedBy - the name of user who started the processsearchOptions - a QueryOptions object containing some query conditionsorg.bonitasoft.engine.persistence.SBonitaReadExceptionpublic long getNumberOfProcessDeploymentInfosStartedBy(long startedBy,
org.bonitasoft.engine.persistence.QueryOptions countOptions)
throws org.bonitasoft.engine.persistence.SBonitaReadException
ProcessDefinitionServicegetNumberOfProcessDeploymentInfosStartedBy in interface ProcessDefinitionServicestartedBy - the name of user who started the processcountOptions - a QueryOptions object containing some query conditionsorg.bonitasoft.engine.persistence.SBonitaReadExceptionpublic List<SProcessDefinitionDeployInfo> searchProcessDeploymentInfos(org.bonitasoft.engine.persistence.QueryOptions searchOptions) throws org.bonitasoft.engine.persistence.SBonitaReadException
ProcessDefinitionServicesearchProcessDeploymentInfos in interface ProcessDefinitionServicesearchOptions - a QueryOptions object containing search criteriaorg.bonitasoft.engine.persistence.SBonitaReadExceptionpublic long getNumberOfProcessDeploymentInfos(org.bonitasoft.engine.persistence.QueryOptions countOptions)
throws org.bonitasoft.engine.persistence.SBonitaReadException
ProcessDefinitionServicegetNumberOfProcessDeploymentInfos in interface ProcessDefinitionServicecountOptions - a QueryOptions object containing query criteriaorg.bonitasoft.engine.persistence.SBonitaReadExceptionpublic List<SProcessDefinitionDeployInfo> searchProcessDeploymentInfosCanBeStartedBy(long userId, org.bonitasoft.engine.persistence.QueryOptions searchOptions) throws org.bonitasoft.engine.persistence.SBonitaReadException
ProcessDefinitionServicesearchProcessDeploymentInfosCanBeStartedBy in interface ProcessDefinitionServiceuserId - identifier of usersearchOptions - a QueryOptions object containing query criteriaorg.bonitasoft.engine.persistence.SBonitaReadExceptionpublic long getNumberOfProcessDeploymentInfosCanBeStartedBy(long userId,
org.bonitasoft.engine.persistence.QueryOptions countOptions)
throws org.bonitasoft.engine.persistence.SBonitaReadException
ProcessDefinitionServicegetNumberOfProcessDeploymentInfosCanBeStartedBy in interface ProcessDefinitionServiceuserId - identifier of usercountOptions - a QueryOptions object containing query criteriaorg.bonitasoft.engine.persistence.SBonitaReadExceptionpublic List<SProcessDefinitionDeployInfo> searchProcessDeploymentInfosCanBeStartedByUsersManagedBy(long managerUserId, org.bonitasoft.engine.persistence.QueryOptions searchOptions) throws org.bonitasoft.engine.persistence.SBonitaReadException
ProcessDefinitionServicesearchProcessDeploymentInfosCanBeStartedByUsersManagedBy in interface ProcessDefinitionServicemanagerUserId - identifier of managersearchOptions - a QueryOptions object containing query criteriaorg.bonitasoft.engine.persistence.SBonitaReadExceptionpublic long getNumberOfProcessDeploymentInfosCanBeStartedByUsersManagedBy(long managerUserId,
org.bonitasoft.engine.persistence.QueryOptions countOptions)
throws org.bonitasoft.engine.persistence.SBonitaReadException
ProcessDefinitionServicegetNumberOfProcessDeploymentInfosCanBeStartedByUsersManagedBy in interface ProcessDefinitionServicemanagerUserId - identifier of managercountOptions - a QueryOptions object containing query criteriaorg.bonitasoft.engine.persistence.SBonitaReadExceptionpublic List<SProcessDefinitionDeployInfo> searchProcessDeploymentInfos(long userId, org.bonitasoft.engine.persistence.QueryOptions searchOptions, String querySuffix) throws org.bonitasoft.engine.persistence.SBonitaReadException
ProcessDefinitionServicesearchProcessDeploymentInfos in interface ProcessDefinitionServiceuserId - 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.SBonitaReadExceptionpublic long getNumberOfProcessDeploymentInfos(long userId,
org.bonitasoft.engine.persistence.QueryOptions countOptions,
String querySuffix)
throws org.bonitasoft.engine.persistence.SBonitaReadException
ProcessDefinitionServicegetNumberOfProcessDeploymentInfos in interface ProcessDefinitionServiceuserId - 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.SBonitaReadExceptionpublic long getNumberOfUncategorizedProcessDeploymentInfos(org.bonitasoft.engine.persistence.QueryOptions countOptions)
throws org.bonitasoft.engine.persistence.SBonitaReadException
ProcessDefinitionServicegetNumberOfUncategorizedProcessDeploymentInfos in interface ProcessDefinitionServicecountOptions - a QueryOptions object containing query criteriaorg.bonitasoft.engine.persistence.SBonitaReadExceptionpublic List<SProcessDefinitionDeployInfo> searchUncategorizedProcessDeploymentInfos(org.bonitasoft.engine.persistence.QueryOptions searchOptions) throws org.bonitasoft.engine.persistence.SBonitaReadException
ProcessDefinitionServicesearchUncategorizedProcessDeploymentInfos in interface ProcessDefinitionServicesearchOptions - a QueryOptions object containing query criteriaorg.bonitasoft.engine.persistence.SBonitaReadExceptionpublic long getNumberOfUncategorizedProcessDeploymentInfosSupervisedBy(long userId,
org.bonitasoft.engine.persistence.QueryOptions countOptions)
throws org.bonitasoft.engine.persistence.SBonitaReadException
ProcessDefinitionServicegetNumberOfUncategorizedProcessDeploymentInfosSupervisedBy in interface ProcessDefinitionServiceuserId - identifier of a supervisor usercountOptions - a QueryOptions object containing query criteriaorg.bonitasoft.engine.persistence.SBonitaReadExceptionpublic List<SProcessDefinitionDeployInfo> searchUncategorizedProcessDeploymentInfosSupervisedBy(long userId, org.bonitasoft.engine.persistence.QueryOptions searchOptions) throws org.bonitasoft.engine.persistence.SBonitaReadException
ProcessDefinitionServicesearchUncategorizedProcessDeploymentInfosSupervisedBy in interface ProcessDefinitionServiceuserId - identifier of a supervisor usersearchOptions - a QueryOptions object containing query criteriaorg.bonitasoft.engine.persistence.SBonitaReadExceptionpublic List<SProcessDefinitionDeployInfo> searchUncategorizedProcessDeploymentInfosCanBeStartedBy(long userId, org.bonitasoft.engine.persistence.QueryOptions searchOptions) throws org.bonitasoft.engine.persistence.SBonitaReadException
ProcessDefinitionServicesearchUncategorizedProcessDeploymentInfosCanBeStartedBy in interface ProcessDefinitionServiceuserId - identifier of usersearchOptions - a QueryOptions object containing query criteriaorg.bonitasoft.engine.persistence.SBonitaReadExceptionpublic long getNumberOfUncategorizedProcessDeploymentInfosCanBeStartedBy(long userId,
org.bonitasoft.engine.persistence.QueryOptions countOptions)
throws org.bonitasoft.engine.persistence.SBonitaReadException
ProcessDefinitionServicegetNumberOfUncategorizedProcessDeploymentInfosCanBeStartedBy in interface ProcessDefinitionServiceuserId - identifier of usercountOptions - a QueryOptions object containing query criteriaorg.bonitasoft.engine.persistence.SBonitaReadExceptionpublic Map<Long,SProcessDefinitionDeployInfo> getProcessDeploymentInfosFromProcessInstanceIds(List<Long> processInstanceIds) throws org.bonitasoft.engine.persistence.SBonitaReadException
ProcessDefinitionServicegetProcessDeploymentInfosFromProcessInstanceIds in interface ProcessDefinitionServiceprocessInstanceIds - identifier of process instancesorg.bonitasoft.engine.persistence.SBonitaReadExceptionpublic Map<Long,SProcessDefinitionDeployInfo> getProcessDeploymentInfosFromArchivedProcessInstanceIds(List<Long> archivedProcessInstantsIds) throws SProcessDefinitionReadException
ProcessDefinitionServicegetProcessDeploymentInfosFromArchivedProcessInstanceIds in interface ProcessDefinitionServicearchivedProcessInstantsIds - identifiers of archived processInstanceSProcessDefinitionReadExceptionpublic List<SProcessDefinitionDeployInfo> getProcessDeploymentInfosUnrelatedToCategory(long categoryId, int pageIndex, int numberPerPage, ProcessDeploymentInfoCriterion pagingCriterion) throws SProcessDefinitionReadException
ProcessDefinitionServicegetProcessDeploymentInfosUnrelatedToCategory in interface ProcessDefinitionServiceSProcessDefinitionReadExceptionpublic Long getNumberOfProcessDeploymentInfosUnrelatedToCategory(long categoryId) throws SProcessDefinitionReadException
ProcessDefinitionServicegetNumberOfProcessDeploymentInfosUnrelatedToCategory in interface ProcessDefinitionServiceSProcessDefinitionReadExceptionpublic List<SProcessDefinitionDeployInfo> searchProcessDeploymentInfosOfCategory(long categoryId, org.bonitasoft.engine.persistence.QueryOptions queryOptions) throws org.bonitasoft.engine.persistence.SBonitaReadException
ProcessDefinitionServicesearchProcessDeploymentInfosOfCategory in interface ProcessDefinitionServicecategoryId - Identifier of the categoryorg.bonitasoft.engine.persistence.SBonitaReadExceptionpublic List<SProcessDefinitionDeployInfo> getProcessDeploymentInfos(org.bonitasoft.engine.persistence.QueryOptions queryOptions) throws SProcessDefinitionReadException
ProcessDefinitionServicegetProcessDeploymentInfos in interface ProcessDefinitionServicequeryOptions - object containing query criteriaSProcessDefinitionReadExceptionpublic List<SProcessDefinitionDeployInfo> getProcessDeploymentInfosWithActorOnlyForGroup(long groupId, org.bonitasoft.engine.persistence.QueryOptions queryOptions) throws SProcessDefinitionReadException
ProcessDefinitionServicegetProcessDeploymentInfosWithActorOnlyForGroup in interface ProcessDefinitionServicequeryOptions - object containing query criteriaSProcessDefinitionDeployInfoSProcessDefinitionReadException - in case a read problem occurspublic List<SProcessDefinitionDeployInfo> getProcessDeploymentInfosWithActorOnlyForGroups(List<Long> groupIds, org.bonitasoft.engine.persistence.QueryOptions queryOptions) throws SProcessDefinitionReadException
ProcessDefinitionServicegetProcessDeploymentInfosWithActorOnlyForGroups in interface ProcessDefinitionServicequeryOptions - object containing query criteriaSProcessDefinitionDeployInfoSProcessDefinitionReadException - in case a read problem occurspublic List<SProcessDefinitionDeployInfo> getProcessDeploymentInfosWithActorOnlyForRole(long roleId, org.bonitasoft.engine.persistence.QueryOptions queryOptions) throws SProcessDefinitionReadException
ProcessDefinitionServicegetProcessDeploymentInfosWithActorOnlyForRole in interface ProcessDefinitionServicequeryOptions - object containing query criteriaSProcessDefinitionDeployInfoSProcessDefinitionReadException - in case a read problem occurspublic List<SProcessDefinitionDeployInfo> getProcessDeploymentInfosWithActorOnlyForRoles(List<Long> roleIds, org.bonitasoft.engine.persistence.QueryOptions queryOptions) throws SProcessDefinitionReadException
ProcessDefinitionServicegetProcessDeploymentInfosWithActorOnlyForRoles in interface ProcessDefinitionServicequeryOptions - object containing query criteriaSProcessDefinitionDeployInfoSProcessDefinitionReadException - in case a read problem occurspublic List<SProcessDefinitionDeployInfo> getProcessDeploymentInfosWithActorOnlyForUser(long userId, org.bonitasoft.engine.persistence.QueryOptions queryOptions) throws SProcessDefinitionReadException
ProcessDefinitionServicegetProcessDeploymentInfosWithActorOnlyForUser in interface ProcessDefinitionServiceuserId - 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 occurspublic List<SProcessDefinitionDeployInfo> getProcessDeploymentInfosWithActorOnlyForUsers(List<Long> userIds, org.bonitasoft.engine.persistence.QueryOptions queryOptions) throws SProcessDefinitionReadException
ProcessDefinitionServicegetProcessDeploymentInfosWithActorOnlyForUsers in interface ProcessDefinitionServicequeryOptions - object containing query criteriaSProcessDefinitionDeployInfoSProcessDefinitionReadException - in case a read problem occurspublic long getNumberOfUsersWhoCanStartProcessDeploymentInfo(long processDefinitionId,
org.bonitasoft.engine.persistence.QueryOptions queryOptions)
throws org.bonitasoft.engine.persistence.SBonitaReadException
ProcessDefinitionServicegetNumberOfUsersWhoCanStartProcessDeploymentInfo in interface ProcessDefinitionServiceprocessDefinitionId - Identifier of the process definitionorg.bonitasoft.engine.persistence.SBonitaReadExceptionpublic List<org.bonitasoft.engine.identity.model.SUser> searchUsersWhoCanStartProcessDeploymentInfo(long processDefinitionId, org.bonitasoft.engine.persistence.QueryOptions queryOptions) throws org.bonitasoft.engine.persistence.SBonitaReadException
ProcessDefinitionServicesearchUsersWhoCanStartProcessDeploymentInfo in interface ProcessDefinitionServiceprocessDefinitionId - Identifier of the process definitionorg.bonitasoft.engine.persistence.SBonitaReadExceptionpublic long getNumberOfProcessDeploymentInfosWithAssignedOrPendingHumanTasksFor(long userId,
org.bonitasoft.engine.persistence.QueryOptions queryOptions)
throws org.bonitasoft.engine.persistence.SBonitaReadException
ProcessDefinitionServicegetNumberOfProcessDeploymentInfosWithAssignedOrPendingHumanTasksFor in interface ProcessDefinitionServiceuserId - The identifier of the user.org.bonitasoft.engine.persistence.SBonitaReadExceptionpublic List<SProcessDefinitionDeployInfo> searchProcessDeploymentInfosWithAssignedOrPendingHumanTasksFor(long userId, org.bonitasoft.engine.persistence.QueryOptions queryOptions) throws org.bonitasoft.engine.persistence.SBonitaReadException
ProcessDefinitionServicesearchProcessDeploymentInfosWithAssignedOrPendingHumanTasksFor in interface ProcessDefinitionServiceuserId - The identifier of the user.queryOptions - The QueryOptions object containing some query conditionsorg.bonitasoft.engine.persistence.SBonitaReadExceptionpublic long getNumberOfProcessDeploymentInfosWithAssignedOrPendingHumanTasksSupervisedBy(long userId,
org.bonitasoft.engine.persistence.QueryOptions queryOptions)
throws org.bonitasoft.engine.persistence.SBonitaReadException
ProcessDefinitionServicegetNumberOfProcessDeploymentInfosWithAssignedOrPendingHumanTasksSupervisedBy in interface ProcessDefinitionServiceuserId - 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.public List<SProcessDefinitionDeployInfo> searchProcessDeploymentInfosWithAssignedOrPendingHumanTasksSupervisedBy(long userId, org.bonitasoft.engine.persistence.QueryOptions queryOptions) throws org.bonitasoft.engine.persistence.SBonitaReadException
ProcessDefinitionServicesearchProcessDeploymentInfosWithAssignedOrPendingHumanTasksSupervisedBy in interface ProcessDefinitionServiceuserId - 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.public long getNumberOfProcessDeploymentInfosWithAssignedOrPendingHumanTasks(org.bonitasoft.engine.persistence.QueryOptions queryOptions)
throws org.bonitasoft.engine.persistence.SBonitaReadException
ProcessDefinitionServicegetNumberOfProcessDeploymentInfosWithAssignedOrPendingHumanTasks in interface ProcessDefinitionServicequeryOptions - The QueryOptions object containing some query conditionsorg.bonitasoft.engine.persistence.SBonitaReadException - if an exception occurs when getting the process deployment information.public List<SProcessDefinitionDeployInfo> searchProcessDeploymentInfosWithAssignedOrPendingHumanTasks(org.bonitasoft.engine.persistence.QueryOptions queryOptions) throws org.bonitasoft.engine.persistence.SBonitaReadException
ProcessDefinitionServicesearchProcessDeploymentInfosWithAssignedOrPendingHumanTasks in interface ProcessDefinitionServicequeryOptions - 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.