Class SelectDescriptorBuilder
java.lang.Object
org.bonitasoft.engine.core.process.instance.recorder.SelectDescriptorBuilder
- Author:
- Elias Ricken de Medeiros, Matthieu Chaffotte, Hongwen Zang, Celine Souchet
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic SelectListDescriptor<Long>deleteMessageInstanceByIds(List<Long> ids, int fromIndex, int maxResults) static SelectOneDescriptor<SGatewayInstance>getActiveGatewayInstanceOfProcess(long parentProcessInstanceId, String name) getActivitiesFromProcessInstance(long rootContainerId, int fromIndex, int maxResults) getActivityBoundaryEvents(long activityInstanceId, int fromIndex, int maxResults) getArchivedActivitiesFromProcessInstance(long rootContainerId, QueryOptions queryOptions) getArchivedActivityInstanceWithActivityIdAndStateId(long activityInstanceId, int stateId) getArchivedFlowNodesFromProcessInstance(long rootContainerId, int fromIndex, int maxResults) getAssignedUserTasks(long userId, int fromIndex, int maxResults, String sortFieldName, OrderByType order) getCaughtError(long relatedActivityInstanceId, String errorCode, QueryOptions queryOptions) getCaughtError(long relatedActivityInstanceId, QueryOptions queryOptions) static SelectListDescriptor<Long>getChildInstanceIdsOfProcessInstance(Class<SProcessInstance> class1, long processInstanceId, QueryOptions queryOptions) static <T extends PersistentObject>
SelectByIdDescriptor<T>getElementById(Class<T> clazz, String elementName, long id) static SelectListDescriptor<SEventInstance>getEventsFromRootContainer(long rootContainerId, int fromIndex, int maxResults, String field, OrderByType orderByType) getEventTriggers(long eventInstanceId, QueryOptions queryOptions) getListeningSignals(String signalName, int fromIndex, int maxResults) getMessageEventCouples(int fromIndex, int maxResults) static SelectListDescriptor<Long>getMessageInstanceIdOlderThanCreationDate(long creationDate, QueryOptions queryOptions) getMostRecentArchivedActivityInstance(long activityInstanceId) static SelectOneDescriptor<Long>getNumberOfActivitiesFromProcessInstance(long rootContainerId) static SelectOneDescriptor<Long>static SelectOneDescriptor<Long>getNumberOfAssignedHumanTaskInstances(long userId) static SelectOneDescriptor<Long>getNumberOfChildInstancesOfProcessInstance(long processInstanceId) static SelectOneDescriptor<Long>getNumberOfFlowNode(long parentProcessInstanceId) static SelectOneDescriptor<Long>getNumberOfOpenActivities(long rootContainerId) static SelectOneDescriptor<Long>static SelectOneDescriptor<Long>static SelectListDescriptor<Map<String,Long>> getNumbersOfAssignedOpenTasks(List<Long> userIds) static SelectListDescriptor<Map<Long,Long>> getNumbersOfAssignedOverdueOpenTasks(List<Long> userIds) getPendingUserTasks(long userId, int fromIndex, int maxResults, String sortFieldName, OrderByType order) getPendingUserTasks(long userId, Set<Long> actorIds, int fromIndex, int maxResults, String sortFieldName, OrderByType order) static SelectListDescriptor<Long>getSourceProcesInstanceIdsOfArchProcessInstancesFromDefinition(long processDefinitionId, QueryOptions queryOptions) static <T extends PersistentObject>
SelectListDescriptor<T>getSpecificQueryWithParameters(Class<T> clazz, String queryName, Map<String, Object> parameters, QueryOptions queryOptions) searchAssignedTasksSupervisedBy(long supervisorId, int fromIndex, int maxResults)
-
Constructor Details
-
SelectDescriptorBuilder
public SelectDescriptorBuilder()
-
-
Method Details
-
getElementById
public static <T extends PersistentObject> SelectByIdDescriptor<T> getElementById(Class<T> clazz, String elementName, long id) -
getArchivedFlowNodesFromProcessInstance
public static SelectListDescriptor<SAFlowNodeInstance> getArchivedFlowNodesFromProcessInstance(long rootContainerId, int fromIndex, int maxResults) -
getArchivedActivitiesFromProcessInstance
public static SelectListDescriptor<SAActivityInstance> getArchivedActivitiesFromProcessInstance(long rootContainerId, QueryOptions queryOptions) -
getSourceProcesInstanceIdsOfArchProcessInstancesFromDefinition
public static SelectListDescriptor<Long> getSourceProcesInstanceIdsOfArchProcessInstancesFromDefinition(long processDefinitionId, QueryOptions queryOptions) -
getSpecificQueryWithParameters
public static <T extends PersistentObject> SelectListDescriptor<T> getSpecificQueryWithParameters(Class<T> clazz, String queryName, Map<String, Object> parameters, QueryOptions queryOptions) -
getAssignedUserTasks
public static SelectListDescriptor<SHumanTaskInstance> getAssignedUserTasks(long userId, int fromIndex, int maxResults, String sortFieldName, OrderByType order) -
getPendingUserTasks
public static SelectListDescriptor<SHumanTaskInstance> getPendingUserTasks(long userId, Set<Long> actorIds, int fromIndex, int maxResults, String sortFieldName, OrderByType order) -
getPendingUserTasks
public static SelectListDescriptor<SHumanTaskInstance> getPendingUserTasks(long userId, int fromIndex, int maxResults, String sortFieldName, OrderByType order) -
getNumberOfProcessInstances
-
getNumberOfArchivedProcessInstances
-
getNumberOfOpenActivities
-
getNumberOfAssignedHumanTaskInstances
-
getActiveGatewayInstanceOfProcess
public static SelectOneDescriptor<SGatewayInstance> getActiveGatewayInstanceOfProcess(long parentProcessInstanceId, String name) -
getActivitiesFromProcessInstance
public static SelectListDescriptor<SActivityInstance> getActivitiesFromProcessInstance(long rootContainerId, int fromIndex, int maxResults) -
getNumberOfActivitiesFromProcessInstance
public static SelectOneDescriptor<Long> getNumberOfActivitiesFromProcessInstance(long rootContainerId) -
getNumberOfFlowNode
-
getEventsFromRootContainer
public static SelectListDescriptor<SEventInstance> getEventsFromRootContainer(long rootContainerId, int fromIndex, int maxResults, String field, OrderByType orderByType) -
getActivityBoundaryEvents
public static SelectListDescriptor<SBoundaryEventInstance> getActivityBoundaryEvents(long activityInstanceId, int fromIndex, int maxResults) -
getEventTriggers
public static SelectListDescriptor<STimerEventTriggerInstance> getEventTriggers(long eventInstanceId, QueryOptions queryOptions) -
getChildInstanceIdsOfProcessInstance
public static SelectListDescriptor<Long> getChildInstanceIdsOfProcessInstance(Class<SProcessInstance> class1, long processInstanceId, QueryOptions queryOptions) -
getNumberOfChildInstancesOfProcessInstance
public static SelectOneDescriptor<Long> getNumberOfChildInstancesOfProcessInstance(long processInstanceId) -
getCaughtError
public static SelectListDescriptor<SWaitingErrorEvent> getCaughtError(long relatedActivityInstanceId, QueryOptions queryOptions) -
getCaughtError
public static SelectListDescriptor<SWaitingErrorEvent> getCaughtError(long relatedActivityInstanceId, String errorCode, QueryOptions queryOptions) -
getListeningSignals
public static SelectListDescriptor<SWaitingSignalEvent> getListeningSignals(String signalName, int fromIndex, int maxResults) -
getMessageEventCouples
public static SelectListDescriptor<SMessageEventCouple> getMessageEventCouples(int fromIndex, int maxResults) -
getArchivedActivityInstanceWithActivityIdAndStateId
public static SelectOneDescriptor<SAActivityInstance> getArchivedActivityInstanceWithActivityIdAndStateId(long activityInstanceId, int stateId) -
getMostRecentArchivedActivityInstance
public static SelectOneDescriptor<SAActivityInstance> getMostRecentArchivedActivityInstance(long activityInstanceId) -
searchAssignedTasksSupervisedBy
public static SelectListDescriptor<SHumanTaskInstance> searchAssignedTasksSupervisedBy(long supervisorId, int fromIndex, int maxResults) -
getNumbersOfAssignedOpenTasks
-
getNumbersOfAssignedOverdueOpenTasks
-
getNumberOfPendingOverdueOpenTasksForUser
-
deleteMessageInstanceByIds
public static SelectListDescriptor<Long> deleteMessageInstanceByIds(List<Long> ids, int fromIndex, int maxResults) -
getMessageInstanceIdOlderThanCreationDate
public static SelectListDescriptor<Long> getMessageInstanceIdOlderThanCreationDate(long creationDate, QueryOptions queryOptions)
-