Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

In this case, the Filter condition remains the same and the succeeded messages will be mediated using the the set of mediators enclosed in the "then" element in sequence, while failed messages will be mediated using the set of mediators enclosed in the "else" element in sequence.

...

UI Configuration

Here are the configuration options related to the Filter Mediator:The parameters available for configuring the Filter mediator are as follows:

Parameter NameDescription
Specify As

This is used to specify whether you want to specify the filter criteria via an XPath expression or a regular expression.

  • XPath: If this option is selected, the Filter mediator tests the given XPath/JSONPath expression as a Boolean expression. When specifying a JSONPath, use the format json-eval(<JSON_PATH>), such as json-eval(getQuote.request.symbol). For more information on using JSON with the ESB, see JSON Support.
  • Source and Regular Expression: If this option is selected, the Filter mediator matches the evaluation result of a source XPath/JSONPath expression as a string against the given regular expression.
SourceThe expression to locate the value that matches the regular expression that you can define in the Regex parameter.
RegexThe regular expression to match the source value.

 

  • Specify As - Specifies whether you give the condition as an XPath or a Regular expression.
  • XPath - XPath or JSONPath expression if you selected "XPath" for "Specify As". When specifying a JSONPath, use the format json-eval(<JSON_PATH>), such as json-eval(getQuote.request.symbol). For more information on using JSON with the ESB, see JSON Support.
  • Source- Expression to locate the value that matches the regular expression that you can define below.

    Info
    titleTip

    Click the "Namespaces" link to add namespaces if you are providing an expression. You will be provided another panel named "Namespace Editor," where you can provide any number of namespace prefixes and URL that you have used in the XPath or JSONPath expression.

...