XPath Filter

XPath Filter

XPath filter

The XPath Filter service can filter a message using a XPath expression. The XPath expression returns a boolean value. Based on this value and the Inverse value, the message is either let through or sent to the discard flow.

In the table below, you will find an explanation about these properties. All attributes with a ‘*’ are mandatory.

Attribute

Description

Name*

By default, we fill this out with the technical ‘tag’, followed by a serial number. Changing the name is optional.

Enabled

Set this value to true, if you want this service to be enabled.

XPath Expression*

Here you enter the XPath Expression you want to run on the messages you want to have filtered.

Discard Flow

Here, you can choose the Flow the message is routed to if the result of XPath Expression  is ‘false’. By default these messages are deleted.

Inverse

Here, you can choose (‘true’ or ’false’) whether the result of the XPath Expression has to be inverted. By default this is set to ‘false’.

MessagePart

Here, you can specify the name of the MessagePart, which will be used as input. The default value is msgprt0. Only use this when you are in fact using different names and/or MessageParts.

 

When you select the  behind the field XPath Expression, you will enter an XPath Tester program.

 You can enter an XPATH expressen en an XML example. When you press the  button the expression will be performed on the given XMl File. The result will be returned in the result field.