public interface ActivityInstanceService extends FlowNodeInstanceService
| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
ACTIVITYINSTANCE |
static java.lang.String |
PENDINGACTIVITYMAPPING |
ACTIVITY_INSTANCE_TOKEN_COUNT, ACTIVITYINSTANCE_DISPLAY_DESCRIPTION, ACTIVITYINSTANCE_DISPLAY_NAME, ACTIVITYINSTANCE_STATE, EXECUTED_BY_MODIFIED, EXECUTED_BY_SUBSTITUTE_MODIFIED, EXPECTED_END_DATE_MODIFIED, FLOWNODE_INSTANCE, LOOPINSTANCE_LOOPMAX_MODIFIED, MULTIINSTANCE_LOOPCARDINALITY_MODIFIED, MULTIINSTANCE_NUMBEROFINSTANCE_MODIFIED, STATE_CATEGORY| Modifier and Type | Method and Description |
|---|---|
void |
addMultiInstanceNumberOfActiveActivities(SMultiInstanceActivityInstance flowNodeInstance,
int number)
Add number of activeInstances for the specific SMultiInstanceActivityInstance object
|
void |
addMultiInstanceNumberOfCompletedActivities(SMultiInstanceActivityInstance flowNodeInstance,
int number)
Add number of completed activeInstances for the specific SMultiInstanceActivityInstance object
|
void |
addMultiInstanceNumberOfTerminatedActivities(SMultiInstanceActivityInstance flowNodeInstance,
int number)
Add number of terminated activeInstances for the specific SMultiInstanceActivityInstance object
|
void |
addPendingActivityMappings(SPendingActivityMapping mapping)
Create a new pending activity mapping in DB
|
void |
assignHumanTask(long userTaskId,
long userId)
Assign the specific human task to the user
|
void |
assignHumanTaskIfNotAssigned(long userTaskId,
long userId)
Assign the specific human task to the user if it is not currently assigned
|
void |
createActivityInstance(SActivityInstance activityInstance)
Create activityInstance in DB according to the given activityInstance object
|
void |
deleteAllPendingMappings()
Delete all pending mappings for the connected tenant
|
void |
deletePendingMappings(long humanTaskInstanceId)
deletePendingMappings
|
java.util.List<SActivityInstance> |
getActivitiesWithStates(long rootContainerId,
java.util.Set<java.lang.Integer> stateIds,
int fromIndex,
int maxResults,
java.lang.String sortingField,
OrderByType sortingOrder)
Get activities with specific states in the root container in specific order, this is used for pagination
|
SActivityInstance |
getActivityInstance(long activityInstanceId)
Get activityInstance by its id
|
java.util.List<SActivityInstance> |
getActivityInstances(long rootContainerId,
int fromIndex,
int numberOfResults)
Get all activity instances for the specific process instance
|
SAActivityInstance |
getArchivedActivityInstance(long activityInstanceId,
int stateId)
Gets the archive instance of the activity according to its identifier at a given state.
|
java.util.List<SAActivityInstance> |
getArchivedActivityInstances(long rootContainerId,
QueryOptions queryOptions)
Get archived activity instances in the specific root container.
|
java.util.List<SHumanTaskInstance> |
getAssignedUserTasks(long userId,
int fromIndex,
int maxResults,
java.lang.String sortFieldName,
OrderByType order)
Get tasks assigned to the user.
|
java.util.List<SActivityInstance> |
getChildrenOfAnActivity(long parentActivityInstanceId,
int fromIndex,
int numberOfResults)
Get all child instances for the specific parent activity instance, order by id ascending.
|
SHumanTaskInstance |
getHumanTaskInstance(long activityInstanceId)
Get humanTaskInstance by its id
|
SAActivityInstance |
getMostRecentArchivedActivityInstance(long activityInstanceId)
Get the most recent archived version of a specified activity instance
|
long |
getNumberOfActivityInstances(java.lang.Class<? extends PersistentObject> entityClass,
QueryOptions searchOptions)
Get total number of activity instances for the specific entity class
|
long |
getNumberOfArchivedActivityInstances(java.lang.Class<? extends PersistentObject> entityClass,
QueryOptions searchOptions)
Get total number of archived activity instances for the specific entity class
|
long |
getNumberOfArchivedHumanTasksSupervisedBy(long supervisorId,
QueryOptions queryOptions)
Search AUserTask instances archived for a specific supervisor
|
long |
getNumberOfArchivedTasks(QueryOptions searchOptions)
Get total number of archived tasks according to specific search criteria
|
long |
getNumberOfArchivedTasksManagedBy(long managerUserId,
QueryOptions searchOptions)
get the total number of archived tasks assigned to subordinates of specified manager.
|
long |
getNumberOfAssignedAndPendingHumanTasks(long rootProcessDefinitionId,
QueryOptions queryOptions)
Get the total number of the assigned and pending human tasks for any user, on the specified root process definition, corresponding to the
options.
|
long |
getNumberOfAssignedAndPendingHumanTasks(QueryOptions queryOptions)
Get the total number of the assigned and pending human tasks for any user corresponding to the
options.
|
long |
getNumberOfAssignedAndPendingHumanTasksFor(long rootProcessDefinitionId,
long userId,
QueryOptions queryOptions)
Get the total number of the assigned and pending human tasks for the specified user, on the specified root process definition, corresponding to the
options.
|
long |
getNumberOfAssignedHumanTaskInstances(long userId)
Get the number of UserTask instances assigned to a specific user
|
long |
getNumberOfAssignedTasksManagedBy(long managerUserId,
QueryOptions searchOptions)
Get total number of assigned tasks managed by the specific manager
|
long |
getNumberOfAssignedTasksSupervisedBy(long supervisorId,
QueryOptions queryOptions)
Search UserTask instances assigned for a specific supervisor
|
long |
getNumberOfHumanTasks(QueryOptions queryOptions)
Get number of human task instances according to the criteria
|
int |
getNumberOfOpenActivityInstances(long processInstanceId)
Get total number of open activity instances for the specific process instance
|
java.util.Map<java.lang.Long,java.lang.Long> |
getNumberOfOpenTasksForUsers(java.util.List<java.lang.Long> userIds)
Get number of open tasks for each user
|
java.util.Map<java.lang.Long,java.lang.Long> |
getNumberOfOverdueOpenTasksForUsers(java.util.List<java.lang.Long> userIds)
Get number of overdue open tasks for each user
|
long |
getNumberOfPendingOrAssignedTasks(long userId,
QueryOptions searchOptions) |
long |
getNumberOfPendingTasksAssignedTo(long userId,
QueryOptions searchOptions) |
long |
getNumberOfPendingTasksForUser(long userId,
QueryOptions searchOptions) |
long |
getNumberOfPendingTasksSupervisedBy(long userId,
QueryOptions queryOptions)
Get total number of pending human task instances for the specific supervisor
|
long |
getNumberOfUsersWhoCanExecutePendingHumanTaskDeploymentInfo(long humanTaskInstanceId,
QueryOptions searchOptions)
Get total number of users according to specific query options, and who can start the task filtered with the search option
of the given process definition
|
java.util.List<SActivityInstance> |
getOpenActivityInstances(long rootContainerId,
int pageIndex,
int maxResults,
java.lang.String sortingField,
OrderByType orderbyType)
Get all open activity instances in the specific process instance.
|
java.util.List<SPendingActivityMapping> |
getPendingMappings(long humanTaskInstanceId,
QueryOptions queryOptions) |
java.util.List<SHumanTaskInstance> |
getPendingTasks(long userId,
java.util.Set<java.lang.Long> actorIds,
int fromIndex,
int maxResults,
java.lang.String sortFieldName,
OrderByType order)
Get pending tasks for the user in specific actors.
|
java.util.List<java.lang.Long> |
getPossibleUserIdsOfPendingTasks(long humanTaskInstanceId,
int startIndex,
int maxResults) |
void |
incrementLoopCounter(SLoopActivityInstance loopInstance)
Increase loopCounter(loopCount+1) for the specific loop instance
|
boolean |
isTaskPendingForUser(long humanTaskInstanceId,
long userId) |
java.util.List<SActivityInstance> |
searchActivityInstances(java.lang.Class<? extends PersistentObject> entityClass,
QueryOptions searchOptions)
Search all activity instances for the specific entity class
|
java.util.List<SAActivityInstance> |
searchArchivedActivityInstances(java.lang.Class<? extends PersistentObject> entityClass,
QueryOptions searchOptions)
Search all archived activity instances for the specific entity class
|
java.util.List<SAHumanTaskInstance> |
searchArchivedHumanTasksSupervisedBy(long supervisorId,
QueryOptions queryOptions)
Search AUserTask instances archived for a specific supervisor
|
java.util.List<SAHumanTaskInstance> |
searchArchivedTasks(QueryOptions searchOptions)
Search archived human tasks according to specific search criteria
|
java.util.List<SAHumanTaskInstance> |
searchArchivedTasksManagedBy(long managerUserId,
QueryOptions searchOptions)
get the archived tasks assigned to subordinates of specified manager, limited to, sorted, paginated with the specifies QueryOptions
|
java.util.List<SHumanTaskInstance> |
searchAssignedAndPendingHumanTasks(long rootProcessDefinitionId,
QueryOptions queryOptions)
Search the assigned and pending human tasks for any user, on the specified root process definition, corresponding to the options.
|
java.util.List<SHumanTaskInstance> |
searchAssignedAndPendingHumanTasks(QueryOptions queryOptions)
Search the assigned and pending human tasks for any user corresponding to the options.
|
java.util.List<SHumanTaskInstance> |
searchAssignedAndPendingHumanTasksFor(long rootProcessDefinitionId,
long userId,
QueryOptions queryOptions)
Search the assigned and pending human tasks for the specified user, on the specified root process definition, corresponding to the options.
|
java.util.List<SHumanTaskInstance> |
searchAssignedTasksManagedBy(long managerUserId,
QueryOptions searchOptions)
Get all assigned tasks managed by the specific manager
|
java.util.List<SHumanTaskInstance> |
searchAssignedTasksSupervisedBy(long supervisorId,
QueryOptions queryOptions)
Search UserTask instances assigned for a specific supervisor
|
java.util.List<SHumanTaskInstance> |
searchHumanTasks(QueryOptions queryOptions)
Search all human task instances according to the criteria
|
long |
searchNumberOfPendingTasksManagedBy(long managerUserId,
QueryOptions searchOptions)
Search total number of pending tasks for the specific manager
|
java.util.List<SHumanTaskInstance> |
searchPendingOrAssignedTasks(long userId,
QueryOptions searchOptions) |
java.util.List<SHumanTaskInstance> |
searchPendingTasksAssignedTo(long userId,
QueryOptions searchOptions) |
java.util.List<SHumanTaskInstance> |
searchPendingTasksForUser(long userId,
QueryOptions searchOptions) |
java.util.List<SHumanTaskInstance> |
searchPendingTasksManagedBy(long managerUserId,
QueryOptions searchOptions)
Search all pending tasks for the specific manager
|
java.util.List<SHumanTaskInstance> |
searchPendingTasksSupervisedBy(long userId,
QueryOptions searchOptions)
Search all pending human task instances for the specific supervisor
|
java.util.List<SUser> |
searchUsersWhoCanExecutePendingHumanTaskDeploymentInfo(long humanTaskInstanceId,
QueryOptions searchOptions)
Search the users according to specific query options, and who can start the task filtered with the search option
of the given process definition
|
void |
setAbortedByBoundaryEvent(SActivityInstance activityInstance,
long boundaryEventId) |
void |
setLoopCardinality(SFlowNodeInstance flowNodeInstance,
int intLoopCardinality)
Set LoopCardinality for the specific loopActvity
|
void |
setLoopMax(SLoopActivityInstance loopActivity,
java.lang.Integer result)
Set max loop for the specific loopActvity
|
void |
setTokenCount(SActivityInstance activityInstance,
int tokenCount)
Set tokenCount for the specific activity instance
|
deleteArchivedFlowNodeInstances, deleteFlowNodeInstance, getArchivedFlowNodeInstance, getArchivedFlowNodeInstances, getFlowNodeInstance, getFlowNodeInstanceIdsToRestart, getFlowNodeInstancesOfActivity, getFlowNodeInstancesOfProcess, getLastArchivedFlowNodeInstance, getNumberOfArchivedFlowNodeInstances, getNumberOfArchivedFlowNodeInstancesSupervisedBy, getNumberOfArchivedFlownodesInAllStates, getNumberOfFlowNodeInstances, getNumberOfFlowNodeInstancesSupervisedBy, getNumberOfFlowNodes, getNumberOfFlownodesInAllStates, getSourceObjectIdsOfArchivedFlowNodeInstances, searchArchivedFlowNodeInstances, searchArchivedFlowNodeInstancesSupervisedBy, searchFlowNodeInstances, searchFlowNodeInstancesSupervisedBy, setExecutedBy, setExecutedBySubstitute, setExecuting, setExpectedEndDate, setState, setStateCategory, setTaskPriority, updateDisplayDescription, updateDisplayNamestatic final java.lang.String ACTIVITYINSTANCE
static final java.lang.String PENDINGACTIVITYMAPPING
void createActivityInstance(SActivityInstance activityInstance) throws SActivityCreationException
activityInstance - an SActivityInstance objectSActivityCreationExceptionvoid addPendingActivityMappings(SPendingActivityMapping mapping) throws SActivityCreationException
mapping - pending activity mapping objectSActivityCreationExceptionvoid deletePendingMappings(long humanTaskInstanceId)
throws SActivityModificationException
mapping - pending activity mapping objectSActivityModificationExceptionvoid deleteAllPendingMappings()
throws SActivityModificationException
SActivityModificationExceptionSActivityInstance getActivityInstance(long activityInstanceId) throws SActivityInstanceNotFoundException, SActivityReadException
activityInstanceId - identifier of activityInstanceSActivityInstanceNotFoundException - if no activityInstance foundSActivityReadExceptionSHumanTaskInstance getHumanTaskInstance(long activityInstanceId) throws SActivityInstanceNotFoundException, SActivityReadException
activityInstanceId - identifier of humanTaskInstanceSActivityInstanceNotFoundExceptionSActivityReadExceptionjava.util.List<SActivityInstance> getActivitiesWithStates(long rootContainerId, java.util.Set<java.lang.Integer> stateIds, int fromIndex, int maxResults, java.lang.String sortingField, OrderByType sortingOrder) throws SActivityReadException
rootContainerId - identifier of root container, it always is process definition idfromIndex - Index of the record to be retrieved from. First record has index 0maxResults - Number of result we want to get. Maximum number of result returnedsortingField - the field used to do ordersortingOrder - ASC or DESCstateIds - Identifiers of statesSActivityReadExceptionSAActivityInstance getMostRecentArchivedActivityInstance(long activityInstanceId) throws SActivityReadException, SActivityInstanceNotFoundException
activityInstanceId - identifier of activity instanceSActivityReadException - if a Read error occursSActivityInstanceNotFoundException - it the provided activityInstanceId does not refer to an existing Activity Instancejava.util.List<SHumanTaskInstance> getPendingTasks(long userId, java.util.Set<java.lang.Long> actorIds, int fromIndex, int maxResults, java.lang.String sortFieldName, OrderByType order) throws SActivityReadException
userId - identifier of useractorIds - identifiers of actorfromIndex - Index of the record to be retrieved from. First record has index 0maxResults - Number of result we want to get. Maximum number of result returnedsortFieldName - the field used to do orderorder - ASC or DESCSActivityReadExceptionjava.util.List<SHumanTaskInstance> getAssignedUserTasks(long userId, int fromIndex, int maxResults, java.lang.String sortFieldName, OrderByType order) throws SActivityReadException
userId - identifier of userfromIndex - Index of the record to be retrieved from. First record has index 0maxResults - Number of result we want to get. Maximum number of result returnedsortFieldName - the field used to do orderorder - ASC or DESCSActivityReadExceptionjava.util.List<SAActivityInstance> getArchivedActivityInstances(long rootContainerId, QueryOptions queryOptions) throws SActivityReadException
rootContainerId - identifier of root container, the root container can be process instancequeryOptions - a map of specific parameters of a querySActivityReadExceptionint getNumberOfOpenActivityInstances(long processInstanceId)
throws SActivityReadException
processInstanceId - identifier of process instanceSActivityReadExceptionjava.util.List<SActivityInstance> getOpenActivityInstances(long rootContainerId, int pageIndex, int maxResults, java.lang.String sortingField, OrderByType orderbyType) throws SActivityReadException
rootContainerId - identifier of root container, the root container can be process instancepageIndex - the page index to indicate which page will be retrieved. First page has index 0maxResults - Number of result we want to get. Maximum number of result returnedsortingField - the field used to do orderorderbyType - ASC or DESCSActivityReadExceptionjava.util.List<SActivityInstance> getActivityInstances(long rootContainerId, int fromIndex, int numberOfResults) throws SActivityReadException
rootContainerId - identifier of root container, the root container can be process instanceSActivityReadExceptionjava.util.List<SActivityInstance> getChildrenOfAnActivity(long parentActivityInstanceId, int fromIndex, int numberOfResults) throws SActivityReadException
parentActivityInstanceId - identifier of parent activity instancefromIndex - Index of the record to be retrieved from. First record has index 0numberOfResults - TODOSActivityReadExceptionvoid assignHumanTask(long userTaskId,
long userId)
throws SFlowNodeNotFoundException,
SFlowNodeReadException,
SActivityModificationException
userTaskId - identifier of human task instanceuserId - identifier of userSFlowNodeNotFoundExceptionSFlowNodeReadExceptionSActivityModificationExceptionvoid assignHumanTaskIfNotAssigned(long userTaskId,
long userId)
throws SFlowNodeNotFoundException,
SFlowNodeReadException,
SActivityModificationException,
SHumanTaskAlreadyAssignedException
Use a more restrictive mechanism than assignHumanTask method to assign human task:
under high load, getting pending tasks could return tasks that are being assign in a previous transaction in a separate thread, and thus assignee is override
userTaskId - identifier of human task instanceuserId - identifier of userSFlowNodeNotFoundExceptionSFlowNodeReadExceptionSActivityModificationExceptionSHumanTaskAlreadyAssignedExceptionlong getNumberOfAssignedHumanTaskInstances(long userId)
throws SActivityReadException
userId - the id of the user concernedSActivityReadException - if a Read exception occurslong getNumberOfAssignedTasksSupervisedBy(long supervisorId,
QueryOptions queryOptions)
throws SBonitaReadException
parameters - a map of specific parameters of a queryparameters - a map of specific parameters of a querySActivityReadException - if a Read exception occursSBonitaReadExceptionlong getNumberOfArchivedHumanTasksSupervisedBy(long supervisorId,
QueryOptions queryOptions)
throws SBonitaReadException
queryOptions - the object used to manage all the search parameters of a queryparameters - a map of specific parameters of a querySActivityReadException - if a Read exception occursSBonitaReadExceptionjava.util.List<SHumanTaskInstance> searchAssignedTasksSupervisedBy(long supervisorId, QueryOptions queryOptions) throws SBonitaReadException
queryOptions - the object used to manage all the search parameters of a queryparameters - a map of specific parameters of a querySActivityReadException - if a Read exception occursSBonitaReadExceptionjava.util.List<SAHumanTaskInstance> searchArchivedHumanTasksSupervisedBy(long supervisorId, QueryOptions queryOptions) throws SBonitaReadException
queryOptions - the object used to manage all the search parameters of a queryparameters - a map of specific parameters of a querySActivityReadException - if a Read exception occursSBonitaReadExceptionSAActivityInstance getArchivedActivityInstance(long activityInstanceId, int stateId) throws SActivityReadException, SActivityInstanceNotFoundException
activityId - the activity identifierstateId - the state identifierpersistenceService - SActivityReadException - if a Read exception occursSActivityInstanceNotFoundExceptionjava.util.List<SAHumanTaskInstance> searchArchivedTasks(QueryOptions searchOptions) throws SBonitaReadException
searchOptions - the object used to manage all the search parameters of a querypersistenceService - used to retrieve the archived tasksSBonitaReadExceptionlong getNumberOfArchivedTasks(QueryOptions searchOptions) throws SBonitaReadException
searchOptions - the object used to manage all the search parameters of a querypersistenceService - used to retrieve the archived tasksSBonitaReadExceptionlong getNumberOfAssignedTasksManagedBy(long managerUserId,
QueryOptions searchOptions)
throws SBonitaReadException
managerUserId - identifier of manager usersearchOptions - the object used to manage all the search parameters of a querySBonitaReadExceptionjava.util.List<SHumanTaskInstance> searchAssignedTasksManagedBy(long managerUserId, QueryOptions searchOptions) throws SBonitaReadException
managerUserId - identifier of manager usersearchOptions - the object used to manage all the search parameters of a querySBonitaReadExceptionlong getNumberOfArchivedTasksManagedBy(long managerUserId,
QueryOptions searchOptions)
throws SBonitaReadException
managerUserId - the userId of the managersearchOptions - the search options to paginate, filter, ...SBonitaReadException - in case a search error occursjava.util.List<SAHumanTaskInstance> searchArchivedTasksManagedBy(long managerUserId, QueryOptions searchOptions) throws SBonitaReadException
managerUserId - the userId of the managersearchOptions - the search options to paginate, filter, sort ...SBonitaReadException - in case a search error occursjava.util.List<SHumanTaskInstance> searchPendingTasksSupervisedBy(long userId, QueryOptions searchOptions) throws SBonitaReadException
userId - identifier of supervisor usersearchOptions - the search options to paginate, filter, sort ...SBonitaReadExceptionlong getNumberOfPendingTasksSupervisedBy(long userId,
QueryOptions queryOptions)
throws SBonitaReadException
userId - identifier of supervisor userqueryOptions - the search options to paginate, filter, sort ...SBonitaReadExceptionlong getNumberOfHumanTasks(QueryOptions queryOptions) throws SBonitaReadException
queryOptions - the search options to paginate, filter, sort ...SBonitaReadExceptionjava.util.List<SHumanTaskInstance> searchHumanTasks(QueryOptions queryOptions) throws SBonitaReadException
queryOptions - the search options to paginate, filter, sort ...SBonitaReadExceptionjava.util.Map<java.lang.Long,java.lang.Long> getNumberOfOpenTasksForUsers(java.util.List<java.lang.Long> userIds)
throws SBonitaReadException
userIds - identifiers of usersSBonitaReadExceptionlong searchNumberOfPendingTasksManagedBy(long managerUserId,
QueryOptions searchOptions)
throws SBonitaReadException
managerUserId - identifier of manager usersearchOptions - the search options to paginate, filter, sort ...SBonitaReadExceptionjava.util.List<SHumanTaskInstance> searchPendingTasksManagedBy(long managerUserId, QueryOptions searchOptions) throws SBonitaReadException
managerUserId - identifier of manager usersearchOptions - the search options to paginate, filter, sort ...SBonitaReadExceptionvoid incrementLoopCounter(SLoopActivityInstance loopInstance) throws SActivityModificationException
loopInstance - the loopCounter in which will be increasedSActivityModificationExceptionjava.util.Map<java.lang.Long,java.lang.Long> getNumberOfOverdueOpenTasksForUsers(java.util.List<java.lang.Long> userIds)
throws SBonitaReadException
userIds - identifiers of usersSBonitaReadExceptionvoid setLoopMax(SLoopActivityInstance loopActivity, java.lang.Integer result) throws SActivityModificationException
loopActivity - the loopActivityresult - value for max loopSActivityModificationExceptionvoid setLoopCardinality(SFlowNodeInstance flowNodeInstance, int intLoopCardinality) throws SActivityModificationException
flowNodeInstance - the loopActvityintLoopCardinality - value of loop cardinalitySActivityModificationExceptionvoid addMultiInstanceNumberOfActiveActivities(SMultiInstanceActivityInstance flowNodeInstance, int number) throws SActivityModificationException
flowNodeInstance - an SMultiInstanceActivityInstance objectnumber - the number will be addedSActivityModificationExceptionvoid addMultiInstanceNumberOfTerminatedActivities(SMultiInstanceActivityInstance flowNodeInstance, int number) throws SActivityModificationException
flowNodeInstance - an SMultiInstanceActivityInstance objectnumber - will be added to terminated instances of flowNodeInstance
the number will be addedSActivityModificationExceptionvoid addMultiInstanceNumberOfCompletedActivities(SMultiInstanceActivityInstance flowNodeInstance, int number) throws SActivityModificationException
flowNodeInstance - an SMultiInstanceActivityInstance object whose completed activity number will be updatednumber - the number will be addedSActivityModificationExceptionlong getNumberOfActivityInstances(java.lang.Class<? extends PersistentObject> entityClass, QueryOptions searchOptions) throws SBonitaReadException
entityClass - to indicate which type of class will be retrievedsearchOptions - the search options to paginate, filter, sort ...SBonitaReadExceptionjava.util.List<SActivityInstance> searchActivityInstances(java.lang.Class<? extends PersistentObject> entityClass, QueryOptions searchOptions) throws SBonitaReadException
entityClass - to indicate which type of class will be retrievedsearchOptions - the search options to paginate, filter, sort ...SBonitaReadExceptionlong getNumberOfArchivedActivityInstances(java.lang.Class<? extends PersistentObject> entityClass, QueryOptions searchOptions) throws SBonitaReadException
entityClass - to indicate which type of class will be retrievedsearchOptions - the search options to paginate, filter, sort ...SBonitaReadExceptionjava.util.List<SAActivityInstance> searchArchivedActivityInstances(java.lang.Class<? extends PersistentObject> entityClass, QueryOptions searchOptions) throws SBonitaReadException
entityClass - to indicate which type of class will be retrievedsearchOptions - the search options to paginate, filter, sort ...SBonitaReadExceptionvoid setTokenCount(SActivityInstance activityInstance, int tokenCount) throws SFlowNodeModificationException
activityInstance - the activityInstance will be updatedtokenCount - value of tokenCount will be set to the activitySFlowNodeModificationExceptionlong getNumberOfPendingTasksForUser(long userId,
QueryOptions searchOptions)
throws SBonitaReadException
userId - searchOptions - SBonitaReadExceptionjava.util.List<SHumanTaskInstance> searchPendingTasksForUser(long userId, QueryOptions searchOptions) throws SBonitaReadException
userId - searchOptions - SBonitaReadExceptionlong getNumberOfPendingTasksAssignedTo(long userId,
QueryOptions searchOptions)
throws SBonitaReadException
SBonitaReadExceptionjava.util.List<SHumanTaskInstance> searchPendingTasksAssignedTo(long userId, QueryOptions searchOptions) throws SBonitaReadException
SBonitaReadExceptionjava.util.List<SPendingActivityMapping> getPendingMappings(long humanTaskInstanceId, QueryOptions queryOptions) throws SBonitaReadException
humanTaskInstanceId - queryOptions - SBonitaReadExceptionjava.util.List<SHumanTaskInstance> searchPendingOrAssignedTasks(long userId, QueryOptions searchOptions) throws SBonitaReadException
userId - searchOptions - SBonitaReadExceptionlong getNumberOfPendingOrAssignedTasks(long userId,
QueryOptions searchOptions)
throws SBonitaReadException
userId - searchOptions - SBonitaReadExceptionvoid setAbortedByBoundaryEvent(SActivityInstance activityInstance, long boundaryEventId) throws SActivityModificationException
activityInstance - boundaryEventId - SActivityModificationExceptionjava.util.List<java.lang.Long> getPossibleUserIdsOfPendingTasks(long humanTaskInstanceId,
int startIndex,
int maxResults)
throws SActivityReadException
SActivityReadExceptionboolean isTaskPendingForUser(long humanTaskInstanceId,
long userId)
throws SBonitaReadException
SBonitaReadExceptionlong getNumberOfUsersWhoCanExecutePendingHumanTaskDeploymentInfo(long humanTaskInstanceId,
QueryOptions searchOptions)
throws SBonitaReadException
searchOptions - The QueryOptions object containing some query conditionsSBonitaReadExceptionjava.util.List<SUser> searchUsersWhoCanExecutePendingHumanTaskDeploymentInfo(long humanTaskInstanceId, QueryOptions searchOptions) throws SBonitaReadException
searchOptions - The QueryOptions object containing some query conditionsSBonitaReadExceptionlong getNumberOfAssignedAndPendingHumanTasksFor(long rootProcessDefinitionId,
long userId,
QueryOptions queryOptions)
throws SBonitaReadException
rootProcessDefinitionId - The identifier of the root process definitionuserId - The identifier of the userqueryOptions - The search conditions and the options for sorting and paging the results.SBonitaReadExceptionjava.util.List<SHumanTaskInstance> searchAssignedAndPendingHumanTasksFor(long rootProcessDefinitionId, long userId, QueryOptions queryOptions) throws SBonitaReadException
rootProcessDefinitionId - The identifier of the root process definitionuserId - The identifier of the userqueryOptions - The search conditions and the options for sorting and paging the results.SBonitaReadExceptionlong getNumberOfAssignedAndPendingHumanTasks(long rootProcessDefinitionId,
QueryOptions queryOptions)
throws SBonitaReadException
rootProcessDefinitionId - The identifier of the root process definitionqueryOptions - The search conditions and the options for sorting and paging the results.SBonitaReadExceptionjava.util.List<SHumanTaskInstance> searchAssignedAndPendingHumanTasks(long rootProcessDefinitionId, QueryOptions queryOptions) throws SBonitaReadException
rootProcessDefinitionId - The identifier of the root process definitionqueryOptions - The search conditions and the options for sorting and paging the results.SBonitaReadExceptionlong getNumberOfAssignedAndPendingHumanTasks(QueryOptions queryOptions) throws SBonitaReadException
queryOptions - The search conditions and the options for sorting and paging the results.SBonitaReadExceptionjava.util.List<SHumanTaskInstance> searchAssignedAndPendingHumanTasks(QueryOptions queryOptions) throws SBonitaReadException
queryOptions - The search conditions and the options for sorting and paging the results.SBonitaReadException