You can use the process query interface to retrieve business-process information that is stored persistently. You use SQL-like syntax to query the following objects:
The query function is provided by the remote interface of the BusinessProcess session bean. For process templates, the query function has the following syntax:
queryProcessTemplates (java.lang.String whereClause, java.lang.String orderByClause, java.lang.Integer threshold, java.util.TimeZone timezone);For the other business-process objects, the query function has the following syntax:
QueryResultSet query (java.lang.String selectClause, java.lang.String whereClause, java.lang.String orderByClause, java.lang.Integer threshold, java.util.TimeZone timezone);
The query is made up of:
For example, a list of work items accessible to the caller of the function is retrieved by:
QueryResultSet result = process.query("WORK_ITEM.WIID", null, null, null, null);
The query function returns objects according to the caller's authorization. The query result set contains only those objects that the caller is authorized to see.
For more information, see the Javadoc.