Filter

Filter

The Filter can filter a message using a filter strategy. A filter strategy returns a boolean value. Based on this value and the value of the inverse attribute, either the message is passed along, or is sent to the discard flow.

The filter can be used as a simple router service.

The filter strategy will have to be defined in a Bean.

In the table below, you will find an explanation of 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.

Filter Strategy*

Reference to an implementation of a filter-strategy. Bean must implement MyESBFilterStrategy. Script must return true or false. You can define your own filters. However, ConnectPlaza supplies you with three default implementations:
- com.opdion.myesb.connect.filter.MyESBConnectMessagePartNameExistsFilterStrategy
- com.opdion.myesb.connect.filter.MyESBConnectMessageXPathFilterStrategy
- com.opdion.myesb.connect.filter.PropertyFilterStrategy

Discard Flow

Reference to a flow for messages, for which the strategy filter returns false.

Inverse

Switch to invert strategy result.

Description

Description of the specific service. This is for documentation purposes.