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
process.newWorklist("CustomerOrdersStartingWithA", "PROCESS_INSTANCE.NAME, DISTINCT PROCESS_INSTANCE.PIID", "PROCESS_INSTANCE.NAME LIKE 'A%'", "PROCESS_INSTANCE.NAME", null, null);
process.deleteWorklist("CustomerOrdersStartingWithA");