IBM BPM, V8.0.1, All platforms > Programming IBM BPM > Developing client applications for BPEL processes and tasks > Queries on BPEL process and task data > Business Process Choreographer EJB query API

Syntax of the API query method

The syntax of the Business Process Choreographer API queries is similar to SQL queries. A query can include a select clause, a where clause, an order-by clause, a skip-tuples parameter, a threshold parameter and a time-zone parameter.

The syntax of the query depends on the object type. The following table shows the syntax for each of the different object types.

Query syntax for different object types
Object Syntax
Process template
ProcessTemplateData[] queryProcessTemplates 
                       (java.lang.String whereClause,                         java.lang.String orderByClause,                         java.lang.Integer threshold,                         java.util.TimeZone timezone);
Task template
TaskTemplate[]        queryTaskTemplates 
                       (java.lang.String whereClause,                         java.lang.String orderByClause,                         java.lang.Integer threshold,                         java.util.TimeZone timezone);
Business-process and task-related data
QueryResultSet query (java.lang.String selectClause,                       java.lang.String whereClause,                       java.lang.String orderByClause,                       java.lang.Integer skipTuples
                      java.lang.Integer threshold,                       java.util.TimeZone timezone);

Business Process Choreographer EJB query API