Declaring a query property for a variable
A query property determines which parts of a global variable
are accessible in the runtime environment with the query() API function.
About this task
You can define query properties on your global variables. Query properties can be included in runtime queries using the query API function. The query property may be either a built-in XML schema simple type, or a user-defined simple type based on a built-in XML schema type using restrictions. Complex types, list, and union types (neither built-in nor user-defined) are not supported for query properties.
There are two kinds of query properties:
To
declare a query property in the process editor, proceed as follows:- A local query property is created
from a query
and can be used for getting and filtering data from a single process. - A global query property that is created
from a property
is used when you would like to filter data from multiple processes. There are two conditions that must be met in order to define a global query property:- you must have an interface typed variable,
- a correlation property must be defined for the underlying WSDL message.
from a property
in the corresponding interface typed variable for each process.
Note: Custom properties are different than query properties. Where query properties are
declared on variables, custom properties are configured for a BPEL process and all of its basic
activities, as well as for inline human task activities, and Java™ snippets. For more information on this, see Using custom properties for human tasks.
Procedure
Results
| Column heading | Description | Notes |
|---|---|---|
| Query Property | The name of the query property. | Taken from the correlation property for global query properties. |
| Type | The data type that the query returns, must be of a simple type. | Taken from the correlation property for global query properties. |
| Part | The part of the WSDL message to which the query refers. |
|
| Query | The expression that defines the query, this
entry can be modified by clicking ![]() |
|
or Queries on BPEL process and task data if you have IBM® Workflow
Server installed.For more information on using query tables see Query tables in Business Process Choreographer if you have IBM Workflow Server installed.

This topic only applies to BAW, and is located in the BAW repository. Last updated on 2025-03-13 12:15