Managing worklists

Why and when to perform this task

A worklist is a query that is stored persistently 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. Create a worklist
    To create a worklist, save a query with a specific name:
    process.newWorklist("CustomerOrdersStartingWithA",
                 "PROCESS_INSTANCE.NAME, DISTINCT PROCESS_INSTANCE.PIID",
                 "PROCESS_INSTANCE.NAME LIKE 'A%'",
                 "PROCESS_INSTANCE.NAME",
                 null,
                 null); 
    
    This query returns a sorted list of all the process-instance names that begin with the letter A and their associated process instance IDs (PIID).
  2. Delete a worklist.
    process.deleteWorklist("CustomerOrdersStartingWithA");

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



Searchable topic ID:   t6admpwe
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/t6admpwe.html

Library | Support | Terms of Use | Feedback