This site contains the documentation that is relevant to older WSO2 product versions and offerings.
For the latest WSO2 documentation, visit https://wso2.com/documentation/.

Executing a Query

A custom query stored in the registry can be executed by giving the path of the stored query and giving a Map of the required parameters. The following code illustrates:

registry.executeQuery("/path/to/storedQuery", parameter_map); // parameter map contains key value pairs required by the query

See also Custom Query to learn more information about custom query.