A stored query is a query that is persistently stored in the database.
String[] storedquery = task.getStoredQueryNames();
StoredQueryData storedquery = task.getStoredQuery("CustomerOrdersStartingWithA"); String selectClause = storedquery.getSelectClause(); String whereClause = storedquery.getWhereClause(); String orderByClause = storedquery.getOrderByClause(); Integer threshold = storedquery.getThreshold();
QueryResultSet result = task.query("CustomerOrdersStartingWithA", 0);This action returns the objects that fulfill the query criteria. In this case, all of the customer orders that begin with A.
Related concepts
Queries on business-process and task-related objects