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 begin
About this task
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.
IBM® App Connect Enterprise supports XPath 1.0. For XPath reference information, including information about XPath functions, see W3C XPath 1.0 Specification.
pp:getValue()
function is included,
in addition to the functions in the XPath 1.0 Specification. The pp:getValue()
function
takes the parameter ID of a pattern parameter and returns the value
of that pattern parameter. To see the parameter ID for a pattern parameter:- 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.
Procedure
To define an XPath expression to control whether a pattern parameter can be edited: