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
String[] worklists = process.getWorklistNames();
WorkListData worklist = process.getWorklist("CustomerOrdersStartingWithA"); String selectClause = worklist.getSelectClause(); String whereClause = worklist.getWhereClause(); String orderByClause = worklist.getOrderByClause(); Integer threshold = worklist.getThreshold();