Type Filter mediation primitive properties
You can specify values for mediation primitive properties either by using the property fields in the IBM® Integration Designer user interface or by using an XML format. The property field names displayed in IBM Integration Designer are generally different from the property names used when building a mediation flow using XML code. In the following information, icons are used to identify each property name used in IBM Integration Designer and the corresponding XML name. (Where applicable, XML names that are required, but not shown in IBM Integration Designer, are also described.)
Enabled enabled
Field detail | Value and notes |
---|---|
Required | Yes |
Valid values | Boolean Note:
|
Default | true |
Filters filters
A list of XPaths, types, and associated terminal names, that define the filtering performed by the mediation primitive.
Note: Order is significant
in the list of expressions. Expressions are evaluated in the order
they appear in the table.
Field detail | Value and notes |
---|---|
|
Considerations
- If there is a syntax error in an XPath it can cause an exception at run time.
- If the XPath resolves to more than one element the Type Filter mediation primitive will not recognize a match.
- The Type Filter primitive matches on either the exact type of an element or its derived types. For example, if you try to match against xsd:int but the actual element is of type xsd:short, it will still match.
Sample XML code
<node name="TypeFilter1" type="TypeFilter">
<table name="filters">
<row>
<property name="xpath" value="/body/myRequestMsg/person"/>
<property name="type" value="boolean"/>
<property name="terminalName" value="match1"/>
</row>
</table>
<inputTerminal/>
<outputTerminal name="default"/>
<outputTerminal name="match1" type="XMLSchema:anyType">
<refinement path="/body/myRequestMsg/person" type="boolean"/>
<wire targetNode="MessageValidator1"/>
</outputTerminal>
<failTerminal/>
</node>