Using User-Defined Attributes

The attributeMap element (used by the queryProcessInstances and queryProcessInstancesAlt operations) should be used to specify the type of the user attributes for both the SELECT and ORDER BY clause.

For a queryProcessInstanceCount operation (where the attributeMap element cannot be provided) you can specify a type casting as an in-place alternative. For example:

   SELECT MODULE.NAME, INSTANCE.ID, LONG(BALANCE), DOUBLE(PAYMENT)