Using worklists to query information

Why and when to perform this task

A worklist is a query that is persistently stored in the database. This worklist represents a set of items that have the same characteristics. Although worklist definitions are stored persistently, items contained in the worklist are assembled dynamically when they are queried. All worklists are publicly accessible.

Steps for this task

  1. (Optional)   List the available worklists:
    String[] worklists = process.getWorklistNames();
  2. (Optional)   Check the query defined by a specific worklist:
    WorkListData worklist = process.getWorklist("CustomerOrdersStartingWithA");
    String selectClause = worklist.getSelectClause();
    String whereClause = worklist.getWhereClause();
    String orderByClause = worklist.getOrderByClause();
    Integer threshold = worklist.getThreshold();
  3. Run the query defined by the worklist:
    QueryResultSet result = process.executeWorklist("CustomerOrdersStartingWithA");

Related concepts
Queries on business-process objects in V5.0-style processes



Searchable topic ID:   t6macwle
Last updated: Jun 21, 2007 8:07:48 PM CDT    WebSphere Business Integration Server Foundation, Version 5.0.2
http://publib.boulder.ibm.com/infocenter/wasinfo/index.jsp?topic=/com.ibm.wasee.doc/info/ee/wfapi/tasks/t6macwle.html

Library | Support | Terms of Use | Feedback