Class ActivityInstanceServiceImpl
- java.lang.Object
-
- org.bonitasoft.engine.core.process.instance.impl.FlowNodeInstancesServiceImpl
-
- org.bonitasoft.engine.core.process.instance.impl.ActivityInstanceServiceImpl
-
- All Implemented Interfaces:
ActivityInstanceService,FlowNodeInstanceService
public class ActivityInstanceServiceImpl extends FlowNodeInstancesServiceImpl implements ActivityInstanceService
- Author:
- Elias Ricken de Medeiros, Matthieu Chaffotte, Hongwen Zang, Emmanuel Duchastenier, Yanyan Liu, Baptiste Mesta, Celine Souchet
-
-
Field Summary
-
Fields inherited from interface org.bonitasoft.engine.core.process.instance.api.ActivityInstanceService
ACTIVITYINSTANCE, PENDINGACTIVITYMAPPING
-
Fields inherited from interface org.bonitasoft.engine.core.process.instance.api.FlowNodeInstanceService
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
-
-
Constructor Summary
Constructors Constructor Description ActivityInstanceServiceImpl(Recorder recorder, PersistenceService persistenceService, ArchiveService archiveService, EventService eventService)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddMultiInstanceNumberOfActiveActivities(SMultiInstanceActivityInstance flowNodeInstance, int number)Add number of activeInstances for the specific SMultiInstanceActivityInstance objectvoidaddMultiInstanceNumberOfCompletedActivities(SMultiInstanceActivityInstance flowNodeInstance, int number)Add number of completed activeInstances for the specific SMultiInstanceActivityInstance objectvoidaddMultiInstanceNumberOfTerminatedActivities(SMultiInstanceActivityInstance flowNodeInstance, int number)Add number of terminated activeInstances for the specific SMultiInstanceActivityInstance objectvoidaddPendingActivityMappings(SPendingActivityMapping mapping)Create a new pending activity mapping in DBvoidassignHumanTask(long userTaskId, long userId)Assign the specific human task to the uservoidassignHumanTaskIfNotAssigned(long userTaskId, long userId)Assign the specific human task to the user if it is not currently assignedvoidcreateActivityInstance(SActivityInstance activityInstance)Create activityInstance in DB according to the given activityInstance objectvoiddeleteAllPendingMappings()Delete all pending mappings for the connected tenantvoiddeletePendingMappings(long humanTaskInstanceId)deletePendingMappingsjava.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 paginationSActivityInstancegetActivityInstance(long activityInstanceId)Get activityInstance by its idjava.util.List<SActivityInstance>getActivityInstances(long rootContainerId, int fromIndex, int numberOfResults)Get all activity instances for the specific process instanceSAActivityInstancegetArchivedActivityInstance(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 assigneeId, 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.SHumanTaskInstancegetHumanTaskInstance(long activityInstanceId)Get humanTaskInstance by its idSAActivityInstancegetMostRecentArchivedActivityInstance(long activityInstanceId)Get the most recent archived version of a specified activity instancelonggetNumberOfActivityInstances(java.lang.Class<? extends PersistentObject> entityClass, QueryOptions searchOptions)Get total number of activity instances for the specific entity classlonggetNumberOfArchivedActivityInstances(java.lang.Class<? extends PersistentObject> entityClass, QueryOptions searchOptions)Get total number of archived activity instances for the specific entity classlonggetNumberOfArchivedHumanTasksSupervisedBy(long supervisorId, QueryOptions queryOptions)Search AUserTask instances archived for a specific supervisorlonggetNumberOfArchivedTasks(QueryOptions searchOptions)Get total number of archived tasks according to specific search criterialonggetNumberOfArchivedTasksManagedBy(long managerUserId, QueryOptions searchOptions)get the total number of archived tasks assigned to subordinates of specified manager.longgetNumberOfAssignedAndPendingHumanTasks(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.longgetNumberOfAssignedAndPendingHumanTasks(QueryOptions queryOptions)Get the total number of the assigned and pending human tasks for any user corresponding to the options.longgetNumberOfAssignedAndPendingHumanTasksFor(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.longgetNumberOfAssignedHumanTaskInstances(long userId)Get the number of UserTask instances assigned to a specific userlonggetNumberOfAssignedTasksManagedBy(long managerUserId, QueryOptions searchOptions)Get total number of assigned tasks managed by the specific managerlonggetNumberOfAssignedTasksSupervisedBy(long supervisorId, QueryOptions queryOptions)Search UserTask instances assigned for a specific supervisorlonggetNumberOfHumanTasks(QueryOptions queryOptions)Get number of human task instances according to the criteriaintgetNumberOfOpenActivityInstances(long rootContainerId)Get total number of open activity instances for the specific process instancejava.util.Map<java.lang.Long,java.lang.Long>getNumberOfOpenTasksForUsers(java.util.List<java.lang.Long> userIds)Get number of open tasks for each userjava.util.Map<java.lang.Long,java.lang.Long>getNumberOfOverdueOpenTasksForUsers(java.util.List<java.lang.Long> userIds)Get number of overdue open tasks for each userlonggetNumberOfPendingOrAssignedOrAssignedToOthersTasks(long userId, QueryOptions searchOptions)longgetNumberOfPendingOrAssignedTasks(long userId, QueryOptions searchOptions)longgetNumberOfPendingTasksAssignedTo(long userId, QueryOptions searchOptions)longgetNumberOfPendingTasksForUser(long userId, QueryOptions searchOptions)longgetNumberOfPendingTasksSupervisedBy(long supervisorId, QueryOptions queryOptions)Get total number of pending human task instances for the specific supervisorlonggetNumberOfUsersWhoCanExecutePendingHumanTaskDeploymentInfo(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 definitionjava.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)voidincrementLoopCounter(SLoopActivityInstance loopInstance)Increase loopCounter(loopCount+1) for the specific loop instancebooleanisTaskPendingForUser(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 classjava.util.List<SAActivityInstance>searchArchivedActivityInstances(java.lang.Class<? extends PersistentObject> entityClass, QueryOptions searchOptions)Search all archived activity instances for the specific entity classjava.util.List<SAHumanTaskInstance>searchArchivedHumanTasksSupervisedBy(long supervisorId, QueryOptions queryOptions)Search AUserTask instances archived for a specific supervisorjava.util.List<SAHumanTaskInstance>searchArchivedTasks(QueryOptions searchOptions)Search archived human tasks according to specific search criteriajava.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 QueryOptionsjava.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 managerjava.util.List<SHumanTaskInstance>searchAssignedTasksSupervisedBy(long supervisorId, QueryOptions queryOptions)Search UserTask instances assigned for a specific supervisorjava.util.List<SHumanTaskInstance>searchHumanTasks(QueryOptions queryOptions)Search all human task instances according to the criterialongsearchNumberOfPendingTasksManagedBy(long managerUserId, QueryOptions searchOptions)Search total number of pending tasks for the specific managerjava.util.List<SHumanTaskInstance>searchPendingOrAssignedOrAssignedToOthersTasks(long userId, QueryOptions searchOptions)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 managerjava.util.List<SHumanTaskInstance>searchPendingTasksSupervisedBy(long supervisorId, QueryOptions queryOptions)Search all pending human task instances for the specific supervisorjava.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 definitionvoidsetAbortedByBoundaryEvent(SActivityInstance activityInstance, long boundaryEventId)voidsetLoopCardinality(SFlowNodeInstance flowNodeInstance, int intLoopCardinality)Set LoopCardinality for the specific loopActvityvoidsetLoopMax(SLoopActivityInstance loopActivity, java.lang.Integer loopMap)Set max loop for the specific loopActvityvoidsetTokenCount(SActivityInstance activityInstance, int tokenCount)Set tokenCount for the specific activity instance-
Methods inherited from class org.bonitasoft.engine.core.process.instance.impl.FlowNodeInstancesServiceImpl
deleteArchivedFlowNodeInstances, deleteFlowNodeInstance, getAllChildrenOfProcessInstance, getArchivedFlowNodeInstance, getArchivedFlowNodeInstances, getArchiveService, getDirectChildrenOfActivityInstance, getDirectChildrenOfProcessInstance, getFlowNodeInstance, getFlowNodeInstanceIdsToRecover, getFlowNodeInstancesByIds, getFlowNodeInstancesByNameAndParentContainerId, getGatewayInstanceIdsToRecover, getLastArchivedFlowNodeInstance, getNumberOfArchivedFlowNodeInstances, getNumberOfArchivedFlowNodeInstancesSupervisedBy, getNumberOfArchivedFlownodesInAllStates, getNumberOfFlowNodeInstances, getNumberOfFlowNodeInstancesSupervisedBy, getNumberOfFlowNodes, getNumberOfFlownodesInAllStates, getNumberOfFlownodesOfProcessDefinitionInAllStates, getPersistenceService, getRecorder, getSourceObjectIdsOfArchivedFlowNodeInstances, getUnmodifiableList, searchArchivedFlowNodeInstances, searchArchivedFlowNodeInstancesSupervisedBy, searchFlowNodeInstances, searchFlowNodeInstancesSupervisedBy, setExecutedBy, setExecutedBySubstitute, setExecuting, setExpectedEndDate, setState, setStateCategory, setTaskPriority, updateDisplayDescription, updateDisplayName, updateFlowNode
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.bonitasoft.engine.core.process.instance.api.FlowNodeInstanceService
deleteArchivedFlowNodeInstances, deleteFlowNodeInstance, getAllChildrenOfProcessInstance, getArchivedFlowNodeInstance, getArchivedFlowNodeInstances, getDirectChildrenOfActivityInstance, getDirectChildrenOfProcessInstance, getFlowNodeInstance, getFlowNodeInstanceIdsToRecover, getFlowNodeInstancesByIds, getFlowNodeInstancesByNameAndParentContainerId, getGatewayInstanceIdsToRecover, getLastArchivedFlowNodeInstance, getNumberOfArchivedFlowNodeInstances, getNumberOfArchivedFlowNodeInstancesSupervisedBy, getNumberOfArchivedFlownodesInAllStates, getNumberOfFlowNodeInstances, getNumberOfFlowNodeInstancesSupervisedBy, getNumberOfFlowNodes, getNumberOfFlownodesInAllStates, getNumberOfFlownodesOfProcessDefinitionInAllStates, getSourceObjectIdsOfArchivedFlowNodeInstances, searchArchivedFlowNodeInstances, searchArchivedFlowNodeInstancesSupervisedBy, searchFlowNodeInstances, searchFlowNodeInstancesSupervisedBy, setExecutedBy, setExecutedBySubstitute, setExecuting, setExpectedEndDate, setState, setStateCategory, setTaskPriority, updateDisplayDescription, updateDisplayName
-
-
-
-
Constructor Detail
-
ActivityInstanceServiceImpl
public ActivityInstanceServiceImpl(Recorder recorder, PersistenceService persistenceService, ArchiveService archiveService, EventService eventService)
-
-
Method Detail
-
createActivityInstance
public void createActivityInstance(SActivityInstance activityInstance) throws SActivityCreationException
Description copied from interface:ActivityInstanceServiceCreate activityInstance in DB according to the given activityInstance object- Specified by:
createActivityInstancein interfaceActivityInstanceService- Parameters:
activityInstance- an SActivityInstance object- Throws:
SActivityCreationException
-
addPendingActivityMappings
public void addPendingActivityMappings(SPendingActivityMapping mapping) throws SActivityCreationException
Description copied from interface:ActivityInstanceServiceCreate a new pending activity mapping in DB- Specified by:
addPendingActivityMappingsin interfaceActivityInstanceService- Parameters:
mapping- pending activity mapping object- Throws:
SActivityCreationException
-
deletePendingMappings
public void deletePendingMappings(long humanTaskInstanceId) throws SActivityModificationExceptionDescription copied from interface:ActivityInstanceServicedeletePendingMappings- Specified by:
deletePendingMappingsin interfaceActivityInstanceService- Throws:
SActivityModificationException
-
deleteAllPendingMappings
public void deleteAllPendingMappings() throws SActivityModificationExceptionDescription copied from interface:ActivityInstanceServiceDelete all pending mappings for the connected tenant- Specified by:
deleteAllPendingMappingsin interfaceActivityInstanceService- Throws:
SActivityModificationException
-
getPendingMappings
public java.util.List<SPendingActivityMapping> getPendingMappings(long humanTaskInstanceId, QueryOptions queryOptions) throws SBonitaReadException
- Specified by:
getPendingMappingsin interfaceActivityInstanceService- Parameters:
humanTaskInstanceId-queryOptions-- Returns:
- Throws:
SBonitaReadException
-
getActivityInstance
public SActivityInstance getActivityInstance(long activityInstanceId) throws SActivityInstanceNotFoundException, SActivityReadException
Description copied from interface:ActivityInstanceServiceGet activityInstance by its id- Specified by:
getActivityInstancein interfaceActivityInstanceService- Parameters:
activityInstanceId- identifier of activityInstance- Returns:
- an SActivityInstance object with id corresponding to the parameter
- Throws:
SActivityInstanceNotFoundException- if no activityInstance foundSActivityReadException
-
getHumanTaskInstance
public SHumanTaskInstance getHumanTaskInstance(long activityInstanceId) throws SActivityInstanceNotFoundException, SActivityReadException
Description copied from interface:ActivityInstanceServiceGet humanTaskInstance by its id- Specified by:
getHumanTaskInstancein interfaceActivityInstanceService- Parameters:
activityInstanceId- identifier of humanTaskInstance- Returns:
- an SHumanTaskInstance object with id corresponding to the parameter
- Throws:
SActivityInstanceNotFoundExceptionSActivityReadException
-
getActivitiesWithStates
public java.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
Description copied from interface:ActivityInstanceServiceGet activities with specific states in the root container in specific order, this is used for pagination- Specified by:
getActivitiesWithStatesin interfaceActivityInstanceService- Parameters:
rootContainerId- identifier of root container, it always is process definition idstateIds- Identifiers of statesfromIndex- 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 DESC- Returns:
- a list of SActivityInstance objects
- Throws:
SActivityReadException
-
getOpenActivityInstances
public java.util.List<SActivityInstance> getOpenActivityInstances(long rootContainerId, int pageIndex, int maxResults, java.lang.String sortingField, OrderByType orderbyType) throws SActivityReadException
Description copied from interface:ActivityInstanceServiceGet all open activity instances in the specific process instance. This is used for pagination- Specified by:
getOpenActivityInstancesin interfaceActivityInstanceService- Parameters:
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 DESC- Returns:
- a list of SActivityInstance objects
- Throws:
SActivityReadException
-
getMostRecentArchivedActivityInstance
public SAActivityInstance getMostRecentArchivedActivityInstance(long activityInstanceId) throws SActivityReadException, SActivityInstanceNotFoundException
Description copied from interface:ActivityInstanceServiceGet the most recent archived version of a specified activity instance- Specified by:
getMostRecentArchivedActivityInstancein interfaceActivityInstanceService- Parameters:
activityInstanceId- identifier of activity instance- Returns:
- an SAActivityInstance object
- Throws:
SActivityReadException- if a Read error occursSActivityInstanceNotFoundException- it the provided activityInstanceId does not refer to an existing Activity Instance
-
getArchivedActivityInstances
public java.util.List<SAActivityInstance> getArchivedActivityInstances(long rootContainerId, QueryOptions queryOptions) throws SActivityReadException
Description copied from interface:ActivityInstanceServiceGet archived activity instances in the specific root container.- Specified by:
getArchivedActivityInstancesin interfaceActivityInstanceService- Parameters:
rootContainerId- identifier of root container, the root container can be process instancequeryOptions- a map of specific parameters of a query- Returns:
- a list of SAActivityInstance objects
- Throws:
SActivityReadException
-
getPendingTasks
public java.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
Description copied from interface:ActivityInstanceServiceGet pending tasks for the user in specific actors. This is used for pagination- Specified by:
getPendingTasksin interfaceActivityInstanceService- Parameters:
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 DESC- Returns:
- a list of SActivityInstance objects
- Throws:
SActivityReadException
-
getAssignedUserTasks
public java.util.List<SHumanTaskInstance> getAssignedUserTasks(long assigneeId, int fromIndex, int maxResults, java.lang.String sortFieldName, OrderByType order) throws SActivityReadException
Description copied from interface:ActivityInstanceServiceGet tasks assigned to the user. This is used for pagination- Specified by:
getAssignedUserTasksin interfaceActivityInstanceService- Parameters:
assigneeId- 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 DESC- Returns:
- a list of SHumanTaskInstance objects
- Throws:
SActivityReadException
-
getNumberOfOpenActivityInstances
public int getNumberOfOpenActivityInstances(long rootContainerId) throws SActivityReadExceptionDescription copied from interface:ActivityInstanceServiceGet total number of open activity instances for the specific process instance- Specified by:
getNumberOfOpenActivityInstancesin interfaceActivityInstanceService- Parameters:
rootContainerId- identifier of process instance- Returns:
- the number of opened activity instances in the specific process instance
- Throws:
SActivityReadException
-
getActivityInstances
public java.util.List<SActivityInstance> getActivityInstances(long rootContainerId, int fromIndex, int numberOfResults) throws SActivityReadException
Description copied from interface:ActivityInstanceServiceGet all activity instances for the specific process instance- Specified by:
getActivityInstancesin interfaceActivityInstanceService- Parameters:
rootContainerId- identifier of root container, the root container can be process instance- Returns:
- a list of SActivityInstance objects
- Throws:
SActivityReadException
-
assignHumanTask
public void assignHumanTask(long userTaskId, long userId) throws SFlowNodeNotFoundException, SFlowNodeReadException, SActivityModificationExceptionDescription copied from interface:ActivityInstanceServiceAssign the specific human task to the user- Specified by:
assignHumanTaskin interfaceActivityInstanceService- Parameters:
userTaskId- identifier of human task instanceuserId- identifier of user- Throws:
SFlowNodeNotFoundExceptionSFlowNodeReadExceptionSActivityModificationException
-
assignHumanTaskIfNotAssigned
public void assignHumanTaskIfNotAssigned(long userTaskId, long userId) throws SFlowNodeNotFoundException, SFlowNodeReadException, SActivityModificationException, SHumanTaskAlreadyAssignedExceptionDescription copied from interface:ActivityInstanceServiceAssign the specific human task to the user if it is not currently assignedUse a more restrictive mechanism than assignHumanTask method to assign human task:
- exception when task is already assign to a different user
- only update claimed date when assign to same user
- remove claimed date when assign to user with id 0 (un-assign)
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
- Specified by:
assignHumanTaskIfNotAssignedin interfaceActivityInstanceService- Parameters:
userTaskId- identifier of human task instanceuserId- identifier of user- Throws:
SFlowNodeNotFoundExceptionSFlowNodeReadExceptionSActivityModificationExceptionSHumanTaskAlreadyAssignedException
-
getNumberOfAssignedHumanTaskInstances
public long getNumberOfAssignedHumanTaskInstances(long userId) throws SActivityReadExceptionDescription copied from interface:ActivityInstanceServiceGet the number of UserTask instances assigned to a specific user- Specified by:
getNumberOfAssignedHumanTaskInstancesin interfaceActivityInstanceService- Parameters:
userId- the id of the user concerned- Returns:
- the number of UserTask instances assigned to this specific user
- Throws:
SActivityReadException- if a Read exception occurs
-
getArchivedActivityInstance
public SAActivityInstance getArchivedActivityInstance(long activityInstanceId, int stateId) throws SActivityReadException, SActivityInstanceNotFoundException
Description copied from interface:ActivityInstanceServiceGets the archive instance of the activity according to its identifier at a given state.- Specified by:
getArchivedActivityInstancein interfaceActivityInstanceServicestateId- the state identifier- Returns:
- Throws:
SActivityReadException- if a Read exception occursSActivityInstanceNotFoundException
-
getNumberOfArchivedTasksManagedBy
public long getNumberOfArchivedTasksManagedBy(long managerUserId, QueryOptions searchOptions) throws SBonitaReadExceptionDescription copied from interface:ActivityInstanceServiceget the total number of archived tasks assigned to subordinates of specified manager.- Specified by:
getNumberOfArchivedTasksManagedByin interfaceActivityInstanceService- Parameters:
managerUserId- the userId of the managersearchOptions- the search options to paginate, filter, ...- Returns:
- the number of elements encountered
- Throws:
SBonitaReadException- in case a search error occurs
-
searchArchivedTasksManagedBy
public java.util.List<SAHumanTaskInstance> searchArchivedTasksManagedBy(long managerUserId, QueryOptions searchOptions) throws SBonitaReadException
Description copied from interface:ActivityInstanceServiceget the archived tasks assigned to subordinates of specified manager, limited to, sorted, paginated with the specifies QueryOptions- Specified by:
searchArchivedTasksManagedByin interfaceActivityInstanceService- Parameters:
managerUserId- the userId of the managersearchOptions- the search options to paginate, filter, sort ...- Returns:
- the elements encountered matching the specified options
- Throws:
SBonitaReadException- in case a search error occurs
-
getNumberOfArchivedHumanTasksSupervisedBy
public long getNumberOfArchivedHumanTasksSupervisedBy(long supervisorId, QueryOptions queryOptions) throws SBonitaReadExceptionDescription copied from interface:ActivityInstanceServiceSearch AUserTask instances archived for a specific supervisor- Specified by:
getNumberOfArchivedHumanTasksSupervisedByin interfaceActivityInstanceServicequeryOptions- the object used to manage all the search parameters of a query- Returns:
- the number of UserTask archived to this specific supervisor
- Throws:
SBonitaReadException
-
getNumberOfAssignedTasksSupervisedBy
public long getNumberOfAssignedTasksSupervisedBy(long supervisorId, QueryOptions queryOptions) throws SBonitaReadExceptionDescription copied from interface:ActivityInstanceServiceSearch UserTask instances assigned for a specific supervisor- Specified by:
getNumberOfAssignedTasksSupervisedByin interfaceActivityInstanceService- Returns:
- the number of UserTask assigned to this specific supervisor
- Throws:
SBonitaReadException
-
searchAssignedTasksSupervisedBy
public java.util.List<SHumanTaskInstance> searchAssignedTasksSupervisedBy(long supervisorId, QueryOptions queryOptions) throws SBonitaReadException
Description copied from interface:ActivityInstanceServiceSearch UserTask instances assigned for a specific supervisor- Specified by:
searchAssignedTasksSupervisedByin interfaceActivityInstanceServicequeryOptions- the object used to manage all the search parameters of a query- Returns:
- the UserTask instances list assigned to this specific supervisor
- Throws:
SBonitaReadException
-
getNumberOfHumanTasks
public long getNumberOfHumanTasks(QueryOptions queryOptions) throws SBonitaReadException
Description copied from interface:ActivityInstanceServiceGet number of human task instances according to the criteria- Specified by:
getNumberOfHumanTasksin interfaceActivityInstanceService- Parameters:
queryOptions- the search options to paginate, filter, sort ...- Returns:
- number of human task instances satisfied to the criteria
- Throws:
SBonitaReadException
-
searchHumanTasks
public java.util.List<SHumanTaskInstance> searchHumanTasks(QueryOptions queryOptions) throws SBonitaReadException
Description copied from interface:ActivityInstanceServiceSearch all human task instances according to the criteria- Specified by:
searchHumanTasksin interfaceActivityInstanceService- Parameters:
queryOptions- the search options to paginate, filter, sort ...- Returns:
- a list of SHumanTaskInstance objects
- Throws:
SBonitaReadException
-
searchArchivedHumanTasksSupervisedBy
public java.util.List<SAHumanTaskInstance> searchArchivedHumanTasksSupervisedBy(long supervisorId, QueryOptions queryOptions) throws SBonitaReadException
Description copied from interface:ActivityInstanceServiceSearch AUserTask instances archived for a specific supervisor- Specified by:
searchArchivedHumanTasksSupervisedByin interfaceActivityInstanceServicequeryOptions- the object used to manage all the search parameters of a query- Returns:
- the UserTask instances list archived to this specific supervisor
- Throws:
SBonitaReadException
-
searchArchivedTasks
public java.util.List<SAHumanTaskInstance> searchArchivedTasks(QueryOptions searchOptions) throws SBonitaReadException
Description copied from interface:ActivityInstanceServiceSearch archived human tasks according to specific search criteria- Specified by:
searchArchivedTasksin interfaceActivityInstanceService- Parameters:
searchOptions- the object used to manage all the search parameters of a query- Returns:
- a list of SAHumanTaskInstance objects
- Throws:
SBonitaReadException
-
getNumberOfArchivedTasks
public long getNumberOfArchivedTasks(QueryOptions searchOptions) throws SBonitaReadException
Description copied from interface:ActivityInstanceServiceGet total number of archived tasks according to specific search criteria- Specified by:
getNumberOfArchivedTasksin interfaceActivityInstanceService- Parameters:
searchOptions- the object used to manage all the search parameters of a query- Returns:
- Throws:
SBonitaReadException
-
getNumberOfAssignedTasksManagedBy
public long getNumberOfAssignedTasksManagedBy(long managerUserId, QueryOptions searchOptions) throws SBonitaReadExceptionDescription copied from interface:ActivityInstanceServiceGet total number of assigned tasks managed by the specific manager- Specified by:
getNumberOfAssignedTasksManagedByin interfaceActivityInstanceService- Parameters:
managerUserId- identifier of manager usersearchOptions- the object used to manage all the search parameters of a query- Returns:
- number of assigned tasks managed by the specific manager
- Throws:
SBonitaReadException
-
searchAssignedTasksManagedBy
public java.util.List<SHumanTaskInstance> searchAssignedTasksManagedBy(long managerUserId, QueryOptions searchOptions) throws SBonitaReadException
Description copied from interface:ActivityInstanceServiceGet all assigned tasks managed by the specific manager- Specified by:
searchAssignedTasksManagedByin interfaceActivityInstanceService- Parameters:
managerUserId- identifier of manager usersearchOptions- the object used to manage all the search parameters of a query- Returns:
- a list of SHumanTaskInstance objects
- Throws:
SBonitaReadException
-
searchPendingTasksSupervisedBy
public java.util.List<SHumanTaskInstance> searchPendingTasksSupervisedBy(long supervisorId, QueryOptions queryOptions) throws SBonitaReadException
Description copied from interface:ActivityInstanceServiceSearch all pending human task instances for the specific supervisor- Specified by:
searchPendingTasksSupervisedByin interfaceActivityInstanceService- Parameters:
supervisorId- identifier of supervisor userqueryOptions- the search options to paginate, filter, sort ...- Returns:
- a list of SHumanTaskInstance objects
- Throws:
SBonitaReadException
-
getNumberOfPendingTasksSupervisedBy
public long getNumberOfPendingTasksSupervisedBy(long supervisorId, QueryOptions queryOptions) throws SBonitaReadExceptionDescription copied from interface:ActivityInstanceServiceGet total number of pending human task instances for the specific supervisor- Specified by:
getNumberOfPendingTasksSupervisedByin interfaceActivityInstanceService- Parameters:
supervisorId- identifier of supervisor userqueryOptions- the search options to paginate, filter, sort ...- Returns:
- number of pending human task instances for the specific supervisor
- Throws:
SBonitaReadException
-
getNumberOfOpenTasksForUsers
public java.util.Map<java.lang.Long,java.lang.Long> getNumberOfOpenTasksForUsers(java.util.List<java.lang.Long> userIds) throws SBonitaReadExceptionDescription copied from interface:ActivityInstanceServiceGet number of open tasks for each user- Specified by:
getNumberOfOpenTasksForUsersin interfaceActivityInstanceService- Parameters:
userIds- identifiers of users- Returns:
- a map containing user id and corresponding task number
- Throws:
SBonitaReadException
-
searchNumberOfPendingTasksManagedBy
public long searchNumberOfPendingTasksManagedBy(long managerUserId, QueryOptions searchOptions) throws SBonitaReadExceptionDescription copied from interface:ActivityInstanceServiceSearch total number of pending tasks for the specific manager- Specified by:
searchNumberOfPendingTasksManagedByin interfaceActivityInstanceService- Parameters:
managerUserId- identifier of manager usersearchOptions- the search options to paginate, filter, sort ...- Returns:
- number of pending tasks
- Throws:
SBonitaReadException
-
searchPendingTasksManagedBy
public java.util.List<SHumanTaskInstance> searchPendingTasksManagedBy(long managerUserId, QueryOptions searchOptions) throws SBonitaReadException
Description copied from interface:ActivityInstanceServiceSearch all pending tasks for the specific manager- Specified by:
searchPendingTasksManagedByin interfaceActivityInstanceService- Parameters:
managerUserId- identifier of manager usersearchOptions- the search options to paginate, filter, sort ...- Returns:
- a list of SHumanTaskInstance objects
- Throws:
SBonitaReadException
-
incrementLoopCounter
public void incrementLoopCounter(SLoopActivityInstance loopInstance) throws SActivityModificationException
Description copied from interface:ActivityInstanceServiceIncrease loopCounter(loopCount+1) for the specific loop instance- Specified by:
incrementLoopCounterin interfaceActivityInstanceService- Parameters:
loopInstance- the loopCounter in which will be increased- Throws:
SActivityModificationException
-
getNumberOfOverdueOpenTasksForUsers
public java.util.Map<java.lang.Long,java.lang.Long> getNumberOfOverdueOpenTasksForUsers(java.util.List<java.lang.Long> userIds) throws SBonitaReadExceptionDescription copied from interface:ActivityInstanceServiceGet number of overdue open tasks for each user- Specified by:
getNumberOfOverdueOpenTasksForUsersin interfaceActivityInstanceService- Parameters:
userIds- identifiers of users- Returns:
- a map containing userId and corresponding number of tasks
- Throws:
SBonitaReadException
-
getChildrenOfAnActivity
public java.util.List<SActivityInstance> getChildrenOfAnActivity(long parentActivityInstanceId, int fromIndex, int numberOfResults) throws SActivityReadException
Description copied from interface:ActivityInstanceServiceGet all child instances for the specific parent activity instance, order by id ascending.- Specified by:
getChildrenOfAnActivityin interfaceActivityInstanceService- Parameters:
parentActivityInstanceId- identifier of parent activity instancefromIndex- Index of the record to be retrieved from. First record has index 0numberOfResults- TODO- Returns:
- a list of SActivityInstance objects
- Throws:
SActivityReadException
-
setLoopMax
public void setLoopMax(SLoopActivityInstance loopActivity, java.lang.Integer loopMap) throws SActivityModificationException
Description copied from interface:ActivityInstanceServiceSet max loop for the specific loopActvity- Specified by:
setLoopMaxin interfaceActivityInstanceService- Parameters:
loopActivity- the loopActivityloopMap- value for max loop- Throws:
SActivityModificationException
-
setLoopCardinality
public void setLoopCardinality(SFlowNodeInstance flowNodeInstance, int intLoopCardinality) throws SActivityModificationException
Description copied from interface:ActivityInstanceServiceSet LoopCardinality for the specific loopActvity- Specified by:
setLoopCardinalityin interfaceActivityInstanceService- Parameters:
flowNodeInstance- the loopActvityintLoopCardinality- value of loop cardinality- Throws:
SActivityModificationException
-
addMultiInstanceNumberOfActiveActivities
public void addMultiInstanceNumberOfActiveActivities(SMultiInstanceActivityInstance flowNodeInstance, int number) throws SActivityModificationException
Description copied from interface:ActivityInstanceServiceAdd number of activeInstances for the specific SMultiInstanceActivityInstance object- Specified by:
addMultiInstanceNumberOfActiveActivitiesin interfaceActivityInstanceService- Parameters:
flowNodeInstance- an SMultiInstanceActivityInstance objectnumber- the number will be added- Throws:
SActivityModificationException
-
addMultiInstanceNumberOfTerminatedActivities
public void addMultiInstanceNumberOfTerminatedActivities(SMultiInstanceActivityInstance flowNodeInstance, int number) throws SActivityModificationException
Description copied from interface:ActivityInstanceServiceAdd number of terminated activeInstances for the specific SMultiInstanceActivityInstance object- Specified by:
addMultiInstanceNumberOfTerminatedActivitiesin interfaceActivityInstanceService- Parameters:
flowNodeInstance- an SMultiInstanceActivityInstance objectnumber- will be added to terminated instances of flowNodeInstance the number will be added- Throws:
SActivityModificationException
-
addMultiInstanceNumberOfCompletedActivities
public void addMultiInstanceNumberOfCompletedActivities(SMultiInstanceActivityInstance flowNodeInstance, int number) throws SActivityModificationException
Description copied from interface:ActivityInstanceServiceAdd number of completed activeInstances for the specific SMultiInstanceActivityInstance object- Specified by:
addMultiInstanceNumberOfCompletedActivitiesin interfaceActivityInstanceService- Parameters:
flowNodeInstance- an SMultiInstanceActivityInstance object whose completed activity number will be updatednumber- the number will be added- Throws:
SActivityModificationException
-
getNumberOfActivityInstances
public long getNumberOfActivityInstances(java.lang.Class<? extends PersistentObject> entityClass, QueryOptions searchOptions) throws SBonitaReadException
Description copied from interface:ActivityInstanceServiceGet total number of activity instances for the specific entity class- Specified by:
getNumberOfActivityInstancesin interfaceActivityInstanceService- Parameters:
entityClass- to indicate which type of class will be retrievedsearchOptions- the search options to paginate, filter, sort ...- Returns:
- number of activity instances for the specific entity class
- Throws:
SBonitaReadException
-
searchActivityInstances
public java.util.List<SActivityInstance> searchActivityInstances(java.lang.Class<? extends PersistentObject> entityClass, QueryOptions searchOptions) throws SBonitaReadException
Description copied from interface:ActivityInstanceServiceSearch all activity instances for the specific entity class- Specified by:
searchActivityInstancesin interfaceActivityInstanceService- Parameters:
entityClass- to indicate which type of class will be retrievedsearchOptions- the search options to paginate, filter, sort ...- Returns:
- a list of SActivityInstance objects
- Throws:
SBonitaReadException
-
getNumberOfArchivedActivityInstances
public long getNumberOfArchivedActivityInstances(java.lang.Class<? extends PersistentObject> entityClass, QueryOptions searchOptions) throws SBonitaReadException
Description copied from interface:ActivityInstanceServiceGet total number of archived activity instances for the specific entity class- Specified by:
getNumberOfArchivedActivityInstancesin interfaceActivityInstanceService- Parameters:
entityClass- to indicate which type of class will be retrievedsearchOptions- the search options to paginate, filter, sort ...- Returns:
- number of archived activity instances for the specific entity class
- Throws:
SBonitaReadException
-
searchArchivedActivityInstances
public java.util.List<SAActivityInstance> searchArchivedActivityInstances(java.lang.Class<? extends PersistentObject> entityClass, QueryOptions searchOptions) throws SBonitaReadException
Description copied from interface:ActivityInstanceServiceSearch all archived activity instances for the specific entity class- Specified by:
searchArchivedActivityInstancesin interfaceActivityInstanceService- Parameters:
entityClass- to indicate which type of class will be retrievedsearchOptions- the search options to paginate, filter, sort ...- Returns:
- a list of SAActivityInstance objects
- Throws:
SBonitaReadException
-
setTokenCount
public void setTokenCount(SActivityInstance activityInstance, int tokenCount) throws SFlowNodeModificationException
Description copied from interface:ActivityInstanceServiceSet tokenCount for the specific activity instance- Specified by:
setTokenCountin interfaceActivityInstanceService- Parameters:
activityInstance- the activityInstance will be updatedtokenCount- value of tokenCount will be set to the activity- Throws:
SFlowNodeModificationException
-
getNumberOfPendingTasksForUser
public long getNumberOfPendingTasksForUser(long userId, QueryOptions searchOptions) throws SBonitaReadException- Specified by:
getNumberOfPendingTasksForUserin interfaceActivityInstanceService- Returns:
- Throws:
SBonitaReadException
-
searchPendingTasksForUser
public java.util.List<SHumanTaskInstance> searchPendingTasksForUser(long userId, QueryOptions searchOptions) throws SBonitaReadException
- Specified by:
searchPendingTasksForUserin interfaceActivityInstanceService- Returns:
- Throws:
SBonitaReadException
-
searchPendingTasksAssignedTo
public java.util.List<SHumanTaskInstance> searchPendingTasksAssignedTo(long userId, QueryOptions searchOptions) throws SBonitaReadException
- Specified by:
searchPendingTasksAssignedToin interfaceActivityInstanceService- Throws:
SBonitaReadException
-
getNumberOfPendingOrAssignedTasks
public long getNumberOfPendingOrAssignedTasks(long userId, QueryOptions searchOptions) throws SBonitaReadException- Specified by:
getNumberOfPendingOrAssignedTasksin interfaceActivityInstanceService- Returns:
- Throws:
SBonitaReadException
-
getNumberOfPendingOrAssignedOrAssignedToOthersTasks
public long getNumberOfPendingOrAssignedOrAssignedToOthersTasks(long userId, QueryOptions searchOptions) throws SBonitaReadException- Specified by:
getNumberOfPendingOrAssignedOrAssignedToOthersTasksin interfaceActivityInstanceService- Returns:
- Throws:
SBonitaReadException
-
getNumberOfPendingTasksAssignedTo
public long getNumberOfPendingTasksAssignedTo(long userId, QueryOptions searchOptions) throws SBonitaReadException- Specified by:
getNumberOfPendingTasksAssignedToin interfaceActivityInstanceService- Throws:
SBonitaReadException
-
searchPendingOrAssignedTasks
public java.util.List<SHumanTaskInstance> searchPendingOrAssignedTasks(long userId, QueryOptions searchOptions) throws SBonitaReadException
- Specified by:
searchPendingOrAssignedTasksin interfaceActivityInstanceService- Returns:
- Throws:
SBonitaReadException
-
searchPendingOrAssignedOrAssignedToOthersTasks
public java.util.List<SHumanTaskInstance> searchPendingOrAssignedOrAssignedToOthersTasks(long userId, QueryOptions searchOptions) throws SBonitaReadException
- Specified by:
searchPendingOrAssignedOrAssignedToOthersTasksin interfaceActivityInstanceService- Returns:
- Throws:
SBonitaReadException
-
setAbortedByBoundaryEvent
public void setAbortedByBoundaryEvent(SActivityInstance activityInstance, long boundaryEventId) throws SActivityModificationException
- Specified by:
setAbortedByBoundaryEventin interfaceActivityInstanceService- Throws:
SActivityModificationException
-
getPossibleUserIdsOfPendingTasks
public java.util.List<java.lang.Long> getPossibleUserIdsOfPendingTasks(long humanTaskInstanceId, int startIndex, int maxResults) throws SActivityReadException- Specified by:
getPossibleUserIdsOfPendingTasksin interfaceActivityInstanceService- Throws:
SActivityReadException
-
isTaskPendingForUser
public boolean isTaskPendingForUser(long humanTaskInstanceId, long userId) throws SBonitaReadException- Specified by:
isTaskPendingForUserin interfaceActivityInstanceService- Throws:
SBonitaReadException
-
getNumberOfUsersWhoCanExecutePendingHumanTaskDeploymentInfo
public long getNumberOfUsersWhoCanExecutePendingHumanTaskDeploymentInfo(long humanTaskInstanceId, QueryOptions searchOptions) throws SBonitaReadExceptionDescription copied from interface:ActivityInstanceServiceGet 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- Specified by:
getNumberOfUsersWhoCanExecutePendingHumanTaskDeploymentInfoin interfaceActivityInstanceServicesearchOptions- The QueryOptions object containing some query conditions- Returns:
- Throws:
SBonitaReadException
-
searchUsersWhoCanExecutePendingHumanTaskDeploymentInfo
public java.util.List<SUser> searchUsersWhoCanExecutePendingHumanTaskDeploymentInfo(long humanTaskInstanceId, QueryOptions searchOptions) throws SBonitaReadException
Description copied from interface:ActivityInstanceServiceSearch the users according to specific query options, and who can start the task filtered with the search option of the given process definition- Specified by:
searchUsersWhoCanExecutePendingHumanTaskDeploymentInfoin interfaceActivityInstanceServicesearchOptions- The QueryOptions object containing some query conditions- Returns:
- Throws:
SBonitaReadException
-
getNumberOfAssignedAndPendingHumanTasksFor
public long getNumberOfAssignedAndPendingHumanTasksFor(long rootProcessDefinitionId, long userId, QueryOptions queryOptions) throws SBonitaReadExceptionDescription copied from interface:ActivityInstanceServiceGet the total number of the assigned and pending human tasks for the specified user, on the specified root process definition, corresponding to the options.- Specified by:
getNumberOfAssignedAndPendingHumanTasksForin interfaceActivityInstanceService- Parameters:
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.- Returns:
- The assigned and pending human tasks
- Throws:
SBonitaReadException
-
searchAssignedAndPendingHumanTasksFor
public java.util.List<SHumanTaskInstance> searchAssignedAndPendingHumanTasksFor(long rootProcessDefinitionId, long userId, QueryOptions queryOptions) throws SBonitaReadException
Description copied from interface:ActivityInstanceServiceSearch the assigned and pending human tasks for the specified user, on the specified root process definition, corresponding to the options.- Specified by:
searchAssignedAndPendingHumanTasksForin interfaceActivityInstanceService- Parameters:
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.- Returns:
- The assigned and pending human tasks
- Throws:
SBonitaReadException
-
getNumberOfAssignedAndPendingHumanTasks
public long getNumberOfAssignedAndPendingHumanTasks(long rootProcessDefinitionId, QueryOptions queryOptions) throws SBonitaReadExceptionDescription copied from interface:ActivityInstanceServiceGet the total number of the assigned and pending human tasks for any user, on the specified root process definition, corresponding to the options.- Specified by:
getNumberOfAssignedAndPendingHumanTasksin interfaceActivityInstanceService- Parameters:
rootProcessDefinitionId- The identifier of the root process definitionqueryOptions- The search conditions and the options for sorting and paging the results.- Returns:
- The assigned and pending human tasks
- Throws:
SBonitaReadException
-
searchAssignedAndPendingHumanTasks
public java.util.List<SHumanTaskInstance> searchAssignedAndPendingHumanTasks(long rootProcessDefinitionId, QueryOptions queryOptions) throws SBonitaReadException
Description copied from interface:ActivityInstanceServiceSearch the assigned and pending human tasks for any user, on the specified root process definition, corresponding to the options.- Specified by:
searchAssignedAndPendingHumanTasksin interfaceActivityInstanceService- Parameters:
rootProcessDefinitionId- The identifier of the root process definitionqueryOptions- The search conditions and the options for sorting and paging the results.- Returns:
- The assigned and pending human tasks
- Throws:
SBonitaReadException
-
getNumberOfAssignedAndPendingHumanTasks
public long getNumberOfAssignedAndPendingHumanTasks(QueryOptions queryOptions) throws SBonitaReadException
Description copied from interface:ActivityInstanceServiceGet the total number of the assigned and pending human tasks for any user corresponding to the options.- Specified by:
getNumberOfAssignedAndPendingHumanTasksin interfaceActivityInstanceService- Parameters:
queryOptions- The search conditions and the options for sorting and paging the results.- Returns:
- The assigned and pending human tasks
- Throws:
SBonitaReadException
-
searchAssignedAndPendingHumanTasks
public java.util.List<SHumanTaskInstance> searchAssignedAndPendingHumanTasks(QueryOptions queryOptions) throws SBonitaReadException
Description copied from interface:ActivityInstanceServiceSearch the assigned and pending human tasks for any user corresponding to the options.- Specified by:
searchAssignedAndPendingHumanTasksin interfaceActivityInstanceService- Parameters:
queryOptions- The search conditions and the options for sorting and paging the results.- Returns:
- The assigned and pending human tasks
- Throws:
SBonitaReadException
-
-