public class SelectDescriptorBuilder extends Object
| Constructor and Description |
|---|
SelectDescriptorBuilder() |
| Modifier and Type | Method and Description |
|---|---|
static org.bonitasoft.engine.persistence.SelectOneDescriptor<org.bonitasoft.engine.core.process.instance.model.SGatewayInstance> |
getActiveGatewayInstanceOfProcess(long parentProcessInstanceId,
String name) |
static org.bonitasoft.engine.persistence.SelectListDescriptor<org.bonitasoft.engine.core.process.instance.model.SActivityInstance> |
getActivitiesFromProcessInstance(long rootContainerId,
int fromIndex,
int maxResults) |
static <T extends org.bonitasoft.engine.persistence.PersistentObject> |
getActivitiesWithStates(Class<T> clazz,
long processInstanceId,
Set<Integer> stateIds,
org.bonitasoft.engine.persistence.QueryOptions queryOptions)
Returns the list of all activities with specific state (within a Set of states), and for a specific process instance.
|
static org.bonitasoft.engine.persistence.SelectListDescriptor<org.bonitasoft.engine.core.process.instance.model.event.SBoundaryEventInstance> |
getActivityBoundaryEvents(long activityInstanceId,
int fromIndex,
int maxResults) |
static org.bonitasoft.engine.persistence.SelectListDescriptor<org.bonitasoft.engine.core.process.instance.model.archive.SAActivityInstance> |
getArchivedActivitiesFromProcessInstance(long rootContainerId,
org.bonitasoft.engine.persistence.QueryOptions queryOptions) |
static org.bonitasoft.engine.persistence.SelectOneDescriptor<org.bonitasoft.engine.core.process.instance.model.archive.SAActivityInstance> |
getArchivedActivityInstanceWithActivityIdAndStateId(long activityInstanceId,
int stateId) |
static org.bonitasoft.engine.persistence.SelectListDescriptor<org.bonitasoft.engine.core.process.instance.model.archive.SAFlowNodeInstance> |
getArchivedFlowNodesFromProcessInstance(long rootContainerId,
int fromIndex,
int maxResults) |
static org.bonitasoft.engine.persistence.SelectListDescriptor<org.bonitasoft.engine.core.process.instance.model.SHumanTaskInstance> |
getAssignedUserTasks(long userId,
int fromIndex,
int maxResults,
String sortFieldName,
org.bonitasoft.engine.persistence.OrderByType order) |
static org.bonitasoft.engine.persistence.SelectListDescriptor<org.bonitasoft.engine.core.process.instance.model.event.handling.SWaitingErrorEvent> |
getCaughtError(long relatedActivityInstanceId,
org.bonitasoft.engine.persistence.QueryOptions queryOptions) |
static org.bonitasoft.engine.persistence.SelectListDescriptor<org.bonitasoft.engine.core.process.instance.model.event.handling.SWaitingErrorEvent> |
getCaughtError(long relatedActivityInstanceId,
String errorCode,
org.bonitasoft.engine.persistence.QueryOptions queryOptions) |
static org.bonitasoft.engine.persistence.SelectListDescriptor<Long> |
getChildInstanceIdsOfProcessInstance(Class<org.bonitasoft.engine.core.process.instance.model.SProcessInstance> class1,
long processInstanceId,
org.bonitasoft.engine.persistence.QueryOptions queryOptions) |
static <T extends org.bonitasoft.engine.persistence.PersistentObject> |
getElementById(Class<T> clazz,
String elementName,
long id) |
static <T extends org.bonitasoft.engine.persistence.PersistentObject> |
getElements(Class<T> clazz,
String elementName,
int fromIndex,
int numberOfElements) |
static <T extends org.bonitasoft.engine.persistence.PersistentObject> |
getElements(Class<T> clazz,
String elementName,
org.bonitasoft.engine.persistence.QueryOptions queryOptions) |
static org.bonitasoft.engine.persistence.SelectListDescriptor<org.bonitasoft.engine.core.process.instance.model.event.SEventInstance> |
getEventsFromRootContainer(long rootContainerId,
int fromIndex,
int maxResults,
String field,
org.bonitasoft.engine.persistence.OrderByType orderByType) |
static org.bonitasoft.engine.persistence.SelectListDescriptor<org.bonitasoft.engine.core.process.instance.model.event.trigger.SEventTriggerInstance> |
getEventTriggers(long eventInstanceId,
org.bonitasoft.engine.persistence.QueryOptions queryOptions) |
static org.bonitasoft.engine.persistence.SelectListDescriptor<org.bonitasoft.engine.core.process.instance.model.SFlowNodeInstance> |
getFlowNodesFromProcessInstance(long rootContainerId,
int fromIndex,
int maxResults) |
static org.bonitasoft.engine.persistence.SelectListDescriptor<org.bonitasoft.engine.core.process.instance.model.event.handling.SWaitingSignalEvent> |
getListeningSignals(String signalName,
int fromIndex,
int maxResults) |
static org.bonitasoft.engine.persistence.SelectListDescriptor<org.bonitasoft.engine.core.process.instance.model.event.handling.SMessageEventCouple> |
getMessageEventCouples(int fromIndex,
int maxResults) |
static org.bonitasoft.engine.persistence.SelectOneDescriptor<org.bonitasoft.engine.core.process.instance.model.archive.SAActivityInstance> |
getMostRecentArchivedActivityInstance(long activityInstanceId) |
static org.bonitasoft.engine.persistence.SelectOneDescriptor<Long> |
getNumberOfActivitiesFromProcessInstance(long rootContainerId) |
static org.bonitasoft.engine.persistence.SelectOneDescriptor<Long> |
getNumberOfArchivedProcessInstances() |
static org.bonitasoft.engine.persistence.SelectOneDescriptor<Long> |
getNumberOfArchivedTasksSupervisedBy(long supervisorId) |
static org.bonitasoft.engine.persistence.SelectOneDescriptor<Long> |
getNumberOfAssignedHumanTaskInstances(long userId) |
static org.bonitasoft.engine.persistence.SelectOneDescriptor<Long> |
getNumberOfChildInstancesOfProcessInstance(long processInstanceId) |
static org.bonitasoft.engine.persistence.SelectOneDescriptor<Long> |
getNumberOfOpenActivities(long rootContainerId) |
static org.bonitasoft.engine.persistence.SelectOneDescriptor<Long> |
getNumberOfPendingOverdueOpenTasksForUser(Long userId) |
static org.bonitasoft.engine.persistence.SelectOneDescriptor<Long> |
getNumberOfProcessInstances() |
static org.bonitasoft.engine.persistence.SelectOneDescriptor<Long> |
getNumberOfToken(long processInstanceId,
long refId) |
static org.bonitasoft.engine.persistence.SelectOneDescriptor<Long> |
getNumberOfTokensOfProcessInstance(long processInstanceId) |
static org.bonitasoft.engine.persistence.SelectListDescriptor<Map<String,Long>> |
getNumbersOfAssignedOpenTasks(List<Long> userIds) |
static org.bonitasoft.engine.persistence.SelectListDescriptor<Map<Long,Long>> |
getNumbersOfAssignedOverdueOpenTasks(List<Long> userIds) |
static org.bonitasoft.engine.persistence.SelectListDescriptor<org.bonitasoft.engine.core.process.instance.model.SHumanTaskInstance> |
getPendingUserTasks(long userId,
int fromIndex,
int maxResults,
String sortFieldName,
org.bonitasoft.engine.persistence.OrderByType order) |
static org.bonitasoft.engine.persistence.SelectListDescriptor<org.bonitasoft.engine.core.process.instance.model.SHumanTaskInstance> |
getPendingUserTasks(long userId,
Set<Long> actorIds,
int fromIndex,
int maxResults,
String sortFieldName,
org.bonitasoft.engine.persistence.OrderByType order) |
static org.bonitasoft.engine.persistence.SelectOneDescriptor<org.bonitasoft.engine.core.process.instance.model.SHiddenTaskInstance> |
getSHiddenTask(long userId,
long activityInstanceId) |
static org.bonitasoft.engine.persistence.SelectListDescriptor<org.bonitasoft.engine.core.process.instance.model.SHiddenTaskInstance> |
getSHiddenTasksForActivity(long activityInstanceId,
int fromIndex,
int maxResults) |
static org.bonitasoft.engine.persistence.SelectListDescriptor<Long> |
getSourceProcesInstanceIdsOfArchProcessInstancesFromDefinition(long processDefinitionId,
org.bonitasoft.engine.persistence.QueryOptions queryOptions) |
static <T extends org.bonitasoft.engine.persistence.PersistentObject> |
getSpecificQueryWithParameters(Class<T> clazz,
String queryName,
Map<String,Object> parameters,
org.bonitasoft.engine.persistence.QueryOptions queryOptions) |
static org.bonitasoft.engine.persistence.SelectListDescriptor<org.bonitasoft.engine.core.process.instance.model.event.handling.SWaitingEvent> |
getStartWaitingEvents(long processDefinitionId,
org.bonitasoft.engine.persistence.QueryOptions queryOptions) |
static org.bonitasoft.engine.persistence.SelectListDescriptor<org.bonitasoft.engine.core.process.instance.model.SToken> |
getToken(long processInstanceId,
long refId) |
static org.bonitasoft.engine.persistence.SelectListDescriptor<org.bonitasoft.engine.core.process.instance.model.SToken> |
getTokens(org.bonitasoft.engine.persistence.QueryOptions queryOptions) |
static org.bonitasoft.engine.persistence.SelectListDescriptor<org.bonitasoft.engine.core.process.instance.model.SToken> |
getTokensOfProcessInstance(long processInstanceId,
org.bonitasoft.engine.persistence.QueryOptions queryOptions) |
static org.bonitasoft.engine.persistence.SelectListDescriptor<org.bonitasoft.engine.core.process.instance.model.SHumanTaskInstance> |
searchArchivedTasksSupervisedBy(long supervisorId,
int fromIndex,
int maxResults) |
static org.bonitasoft.engine.persistence.SelectListDescriptor<org.bonitasoft.engine.core.process.instance.model.SHumanTaskInstance> |
searchAssignedTasksSupervisedBy(long supervisorId,
int fromIndex,
int maxResults) |
public static <T extends org.bonitasoft.engine.persistence.PersistentObject> org.bonitasoft.engine.persistence.SelectByIdDescriptor<T> getElementById(Class<T> clazz, String elementName, long id)
public static org.bonitasoft.engine.persistence.SelectOneDescriptor<org.bonitasoft.engine.core.process.instance.model.SHiddenTaskInstance> getSHiddenTask(long userId,
long activityInstanceId)
public static org.bonitasoft.engine.persistence.SelectListDescriptor<org.bonitasoft.engine.core.process.instance.model.SHiddenTaskInstance> getSHiddenTasksForActivity(long activityInstanceId,
int fromIndex,
int maxResults)
public static org.bonitasoft.engine.persistence.SelectListDescriptor<org.bonitasoft.engine.core.process.instance.model.SFlowNodeInstance> getFlowNodesFromProcessInstance(long rootContainerId,
int fromIndex,
int maxResults)
public static org.bonitasoft.engine.persistence.SelectListDescriptor<org.bonitasoft.engine.core.process.instance.model.archive.SAFlowNodeInstance> getArchivedFlowNodesFromProcessInstance(long rootContainerId,
int fromIndex,
int maxResults)
public static org.bonitasoft.engine.persistence.SelectListDescriptor<org.bonitasoft.engine.core.process.instance.model.archive.SAActivityInstance> getArchivedActivitiesFromProcessInstance(long rootContainerId,
org.bonitasoft.engine.persistence.QueryOptions queryOptions)
public static org.bonitasoft.engine.persistence.SelectListDescriptor<Long> getSourceProcesInstanceIdsOfArchProcessInstancesFromDefinition(long processDefinitionId, org.bonitasoft.engine.persistence.QueryOptions queryOptions)
public static <T extends org.bonitasoft.engine.persistence.PersistentObject> org.bonitasoft.engine.persistence.SelectListDescriptor<T> getElements(Class<T> clazz, String elementName, org.bonitasoft.engine.persistence.QueryOptions queryOptions)
public static <T extends org.bonitasoft.engine.persistence.PersistentObject> org.bonitasoft.engine.persistence.SelectListDescriptor<T> getElements(Class<T> clazz, String elementName, int fromIndex, int numberOfElements)
public static <T extends org.bonitasoft.engine.persistence.PersistentObject> org.bonitasoft.engine.persistence.SelectListDescriptor<T> getActivitiesWithStates(Class<T> clazz, long processInstanceId, Set<Integer> stateIds, org.bonitasoft.engine.persistence.QueryOptions queryOptions)
clazz - the Class of the persistent object.processInstanceId - the processstateIds - queryOptions - public static <T extends org.bonitasoft.engine.persistence.PersistentObject> org.bonitasoft.engine.persistence.SelectListDescriptor<T> getSpecificQueryWithParameters(Class<T> clazz, String queryName, Map<String,Object> parameters, org.bonitasoft.engine.persistence.QueryOptions queryOptions)
public static org.bonitasoft.engine.persistence.SelectListDescriptor<org.bonitasoft.engine.core.process.instance.model.SHumanTaskInstance> getAssignedUserTasks(long userId,
int fromIndex,
int maxResults,
String sortFieldName,
org.bonitasoft.engine.persistence.OrderByType order)
public static org.bonitasoft.engine.persistence.SelectListDescriptor<org.bonitasoft.engine.core.process.instance.model.SHumanTaskInstance> getPendingUserTasks(long userId,
Set<Long> actorIds,
int fromIndex,
int maxResults,
String sortFieldName,
org.bonitasoft.engine.persistence.OrderByType order)
public static org.bonitasoft.engine.persistence.SelectListDescriptor<org.bonitasoft.engine.core.process.instance.model.SHumanTaskInstance> getPendingUserTasks(long userId,
int fromIndex,
int maxResults,
String sortFieldName,
org.bonitasoft.engine.persistence.OrderByType order)
public static org.bonitasoft.engine.persistence.SelectOneDescriptor<Long> getNumberOfProcessInstances()
public static org.bonitasoft.engine.persistence.SelectOneDescriptor<Long> getNumberOfArchivedProcessInstances()
public static org.bonitasoft.engine.persistence.SelectOneDescriptor<Long> getNumberOfOpenActivities(long rootContainerId)
public static org.bonitasoft.engine.persistence.SelectOneDescriptor<Long> getNumberOfAssignedHumanTaskInstances(long userId)
public static org.bonitasoft.engine.persistence.SelectOneDescriptor<org.bonitasoft.engine.core.process.instance.model.SGatewayInstance> getActiveGatewayInstanceOfProcess(long parentProcessInstanceId,
String name)
public static org.bonitasoft.engine.persistence.SelectListDescriptor<org.bonitasoft.engine.core.process.instance.model.SActivityInstance> getActivitiesFromProcessInstance(long rootContainerId,
int fromIndex,
int maxResults)
public static org.bonitasoft.engine.persistence.SelectOneDescriptor<Long> getNumberOfActivitiesFromProcessInstance(long rootContainerId)
public static org.bonitasoft.engine.persistence.SelectListDescriptor<org.bonitasoft.engine.core.process.instance.model.event.SEventInstance> getEventsFromRootContainer(long rootContainerId,
int fromIndex,
int maxResults,
String field,
org.bonitasoft.engine.persistence.OrderByType orderByType)
public static org.bonitasoft.engine.persistence.SelectListDescriptor<org.bonitasoft.engine.core.process.instance.model.event.SBoundaryEventInstance> getActivityBoundaryEvents(long activityInstanceId,
int fromIndex,
int maxResults)
public static org.bonitasoft.engine.persistence.SelectListDescriptor<org.bonitasoft.engine.core.process.instance.model.event.trigger.SEventTriggerInstance> getEventTriggers(long eventInstanceId,
org.bonitasoft.engine.persistence.QueryOptions queryOptions)
public static org.bonitasoft.engine.persistence.SelectListDescriptor<Long> getChildInstanceIdsOfProcessInstance(Class<org.bonitasoft.engine.core.process.instance.model.SProcessInstance> class1, long processInstanceId, org.bonitasoft.engine.persistence.QueryOptions queryOptions)
public static org.bonitasoft.engine.persistence.SelectOneDescriptor<Long> getNumberOfChildInstancesOfProcessInstance(long processInstanceId)
public static org.bonitasoft.engine.persistence.SelectListDescriptor<org.bonitasoft.engine.core.process.instance.model.event.handling.SWaitingErrorEvent> getCaughtError(long relatedActivityInstanceId,
org.bonitasoft.engine.persistence.QueryOptions queryOptions)
public static org.bonitasoft.engine.persistence.SelectListDescriptor<org.bonitasoft.engine.core.process.instance.model.event.handling.SWaitingErrorEvent> getCaughtError(long relatedActivityInstanceId,
String errorCode,
org.bonitasoft.engine.persistence.QueryOptions queryOptions)
public static org.bonitasoft.engine.persistence.SelectListDescriptor<org.bonitasoft.engine.core.process.instance.model.event.handling.SWaitingSignalEvent> getListeningSignals(String signalName, int fromIndex, int maxResults)
public static org.bonitasoft.engine.persistence.SelectListDescriptor<org.bonitasoft.engine.core.process.instance.model.event.handling.SWaitingEvent> getStartWaitingEvents(long processDefinitionId,
org.bonitasoft.engine.persistence.QueryOptions queryOptions)
public static org.bonitasoft.engine.persistence.SelectListDescriptor<org.bonitasoft.engine.core.process.instance.model.event.handling.SMessageEventCouple> getMessageEventCouples(int fromIndex,
int maxResults)
public static org.bonitasoft.engine.persistence.SelectOneDescriptor<org.bonitasoft.engine.core.process.instance.model.archive.SAActivityInstance> getArchivedActivityInstanceWithActivityIdAndStateId(long activityInstanceId,
int stateId)
public static org.bonitasoft.engine.persistence.SelectOneDescriptor<org.bonitasoft.engine.core.process.instance.model.archive.SAActivityInstance> getMostRecentArchivedActivityInstance(long activityInstanceId)
public static org.bonitasoft.engine.persistence.SelectOneDescriptor<Long> getNumberOfArchivedTasksSupervisedBy(long supervisorId)
public static org.bonitasoft.engine.persistence.SelectListDescriptor<org.bonitasoft.engine.core.process.instance.model.SHumanTaskInstance> searchAssignedTasksSupervisedBy(long supervisorId,
int fromIndex,
int maxResults)
public static org.bonitasoft.engine.persistence.SelectListDescriptor<org.bonitasoft.engine.core.process.instance.model.SHumanTaskInstance> searchArchivedTasksSupervisedBy(long supervisorId,
int fromIndex,
int maxResults)
public static org.bonitasoft.engine.persistence.SelectListDescriptor<Map<String,Long>> getNumbersOfAssignedOpenTasks(List<Long> userIds)
public static org.bonitasoft.engine.persistence.SelectListDescriptor<Map<Long,Long>> getNumbersOfAssignedOverdueOpenTasks(List<Long> userIds)
public static org.bonitasoft.engine.persistence.SelectOneDescriptor<Long> getNumberOfPendingOverdueOpenTasksForUser(Long userId)
public static org.bonitasoft.engine.persistence.SelectOneDescriptor<Long> getNumberOfTokensOfProcessInstance(long processInstanceId)
public static org.bonitasoft.engine.persistence.SelectListDescriptor<org.bonitasoft.engine.core.process.instance.model.SToken> getTokensOfProcessInstance(long processInstanceId,
org.bonitasoft.engine.persistence.QueryOptions queryOptions)
public static org.bonitasoft.engine.persistence.SelectListDescriptor<org.bonitasoft.engine.core.process.instance.model.SToken> getTokens(org.bonitasoft.engine.persistence.QueryOptions queryOptions)
public static org.bonitasoft.engine.persistence.SelectListDescriptor<org.bonitasoft.engine.core.process.instance.model.SToken> getToken(long processInstanceId,
long refId)
public static org.bonitasoft.engine.persistence.SelectOneDescriptor<Long> getNumberOfToken(long processInstanceId, long refId)
Copyright © 2014 Bonitasoft S.A.. All rights reserved.