Predefined query tables
Predefined query tables provide access to the data in the Business Process Choreographer database. They are the query table representation of the corresponding predefined Business Process Choreographer database views, such as the TASK view or the PROCESS_INSTANCE view. These predefined query tables enhance the functionality and performance of the predefined database views because they are optimized for running process and task list queries.
The predefined query tables can be queried directly using the query table API. When you access the tables using the query table API, you are offered more options for configuration than when you use the query API.
Properties
Predefined query tables have the following properties:
Property | Description |
---|---|
Name | The query table name is the name of one of the predefined database views, in uppercase, for example, TASK. |
Attributes | Attributes of predefined query tables define
the pieces of information that are available for queries. These attributes
are the names of columns, in uppercase, that are specified by the
predefined database views. The attributes are defined with a name and a type. The type is one of the following types:
|
Authorization | Predefined query tables use either instance-based
or role-based authorization.
|
Predefined query tables with instance data
- Can be used as the primary query of a composite query table.
- Use instance-based authorization if queried directly. This is accomplished with a join (SQL-) with the view that stores authorization information, that is, the predefined WORK_ITEM view or query table.
- Contain instance data, for example data of task instances or process instances.
Instance data | Query table name |
---|---|
Information about activities of a process instance. | ACTIVITY |
Information about escalations belonging to human tasks. | ESCALATION |
Information about process instances. | PROCESS_ATTRIBUTE |
Information about human tasks. | TASK |
Information about work baskets | WORK_BASKET |
Information about business categories | BUSINESS_CATEGORY |
The WORK_ITEM query table also contains instance data, but this is not available as the primary query table or an attached query table. Work item information is available implicitly when querying query tables that use instance-based authorization. That is, attributes of the WORK_ITEM query table can be used when querying a query table with instance-based authorization, even though the attributes are not explicitly specified by the query table.
Predefined query tables with template data
Predefined query tables with template data require role-based authorization. They can be queried only by administrators using the AdminAuthorizationOptions object.
- Can be used as the primary query table of a composite query table.
- Use role-based authorization if queried directly. This means that the caller using the API query method must be in the BPESystemAdministrator Java EE role if the Business Flow Manager EJB is used, or the TaskSystemAdministrator Java EE role if the Human Task Manager EJB is used, and AdminAuthorizationOptions must be used.
- Contain template data, for example, the template data of task templates or process templates.
Template data | Query table name |
---|---|
Information about application components. | APPLICATION_COMP |
Information about escalation templates. | ESC_TEMPL |
Information about process templates. | PROCESS_TEMPLATE |
Information about task templates. | TASK_TEMPL |
Version information about process templates and task templates | PC_VERSION_TEMPLATE |