Message 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
Defines whether the message is mediated by the Message Filter mediation primitive. By default the mediate action of the Message Filter mediation primitive is enabled. You can suspend the mediate action by clearing the check box. If you suspend the mediation, the message goes to the default terminal.
Required | Yes |
Valid values | Boolean Note:
|
Default | true |
Distribution mode distributionMode
Determines the behavior of the mediation primitive when an inbound message matches multiple expressions.
Required | Yes |
Valid values |
Note:
If there is no matching output terminal, the default terminal is invoked. |
Default | First |
Filters filters
A list of expressions, and associated terminal names, that define the filtering performed by the mediation primitive.
Field detail | Value and notes |
---|---|
|
Considerations
If there is a syntax error in the XPath expression of a Pattern it can cause an exception at run time.
Sample XML code
<node name="MessageFilter1" type="MessageFilter">
<table name="filters">
<row>
<property name="pattern" value="/body/myRequestMsg/person/name="Bob""/>
<property name="terminalName" value="match1"/>
</row>
</table>
<inputTerminal/>
<outputTerminal name="default">
<wire targetNode="MessageElementSetter1"/>
</outputTerminal>
<outputTerminal name="match1"/>
<failTerminal/>
</node>