Apama FIX Adapter Documentation 10.0 : Filter Codec
Filter Codec
The filter codec provides a flexible way of removing fields from events upon certain conditions. This is particularly useful in FIX where they may be certain rules pertaining to event structure in some situations. For example, when sending a market order to a trading system it may be a requirement that no price field is set. With the filter codec is possible to say remove the price field if it is zero.
Each property to the filter codec that begins with filter. defines a new filter and takes the form:
<property name="filter.<direction>.<field>" value="<value>"/>
If no <field> is specified then the filter will be applied globally to all fields and likewise for <direction>. The <value> is what the fields value must be to invoke the filter.
For example, the following configuration removes any field with an empty value in both directions and removes field 44 if its value is “0” in the upstream direction.
<codec name="FilterCodec" library="FilterCodec">
<property name="removeTransportField" value="false"/>
<property name="TransportFieldName" value="transportName"/>
<property name="filter" value=""/>
  <property name="filter.upstream.44" value="0"/>
</codec>
Copyright © 2013-2017 Software AG, Darmstadt, Germany. (Innovation Release)

Product LogoContact Support   |   Community   |   Feedback