See information about the latest product version
Enabling pattern parameters
You can control whether pattern parameters can be edited by pattern users based on the values of other pattern parameters.
Before you start:
Complete the following tasks:By using XPath expressions you can control whether pattern users can edit pattern parameters in the Pattern Instance editor . If an expression evaluates to Boolean true, the pattern user can configure the parameter in the Configure Pattern Parameters page; if an expression evaluates to Boolean false, the parameter is read-only, and the pattern user cannot configure it. When the pattern user configures pattern parameters, expressions are evaluated whenever any of the pattern parameters used in an expression change.
WebSphere® Message Broker supports XPath 1.0. For XPath reference information, including information about XPath functions, see W3C XPath 1.0 Specification.
- In the Pattern Configuration tab of the Pattern Authoring editor, double-click a parameter, or select a parameter and click Edit. The Edit Parameter window opens.
- Click the Enable tab. The parameter IDs for pattern parameters are shown in the Parameter ID column of the Pattern Parameters table.
To define an XPath expression to control whether a pattern parameter can be edited: