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 > Query tables in Business Process Choreographer

Internationalization for query table meta data

Internationalization is supported for query table meta data.

Display names and descriptions can be provided for composite query tables in different locales.

For example, a composite query table can define a display name for the query table in the en_US locale, the de locale, and in the default locale. This is done when the query table is developed using the Query Table Builder. To deploy query tables with localized display names and descriptions, the -deploy jarFile option must be used when the query table is deployed on the Business Process Choreographer container.

In terms of locale handling, the behavior of the query table API methods, queryEntities and queryRows, and the meta data methods of the query table API, getQueryTableMetaData and findQueryTableMetaData, is similar to that provided by Java resource bundles.

To make the display names and descriptions of the query table meta data consistent with the contents of the query table, the value of the $LOCALE system parameter depends on the locales for which display names and descriptions are specified on the query table.


Example

Consider the following scenario of a client which displays task lists or process lists and creates a request to query a query table.


Best match locale

When specifying the conditions on an attached query table, using the value $LOCALE can return unexpected results if the specified locale does not match the metadata exactly.

For example if you pass a locale en_US with a query against a query table that has metadata specifying the language as en, the result returned will be null.

To avoid such cases, you can use LOCALE=$LOCALE_BEST_MATCH, which applies a best-match algorithm to calculate the actual locale used in the query.

For example, a query with locale en_US against a query table in language en is performed using en.

You cannot specify any other logical or comparison operators in the condition LOCALE=$LOCALE_BEST_MATCH.

You can only use the best-match locale condition on attached query tables, specifying it as a condition on other queries results in an error.

Query tables in Business Process Choreographer


Related tasks:
Create query tables for Business Process Choreographer Explorer