Apama 10.3 | Apama Documentation | Connecting Apama Applications to External Components | Working with Connectivity Plug-ins | Getting Started with Connectivity Plug-ins | Using codecs
Using codecs
You can add one or more codec plug-ins to each chain which is defined in a YAML configuration file.
For example, you can add or configure the Classifier codec to have rules that determine which Apama event types to use for each message that comes from the transport and is sent towards the correlator (host). Alternatively you can use the Mapper codec for more advanced cases, or for simple cases where there is only one incoming event type for which you can set a defaultEventType in the apama.eventMap.
Or you can add or configure the Mapper codec rules to have rules that customize the mapping between the fields in your Apama event definitions and the payload and metadata of the transport messages, and that set default values in case any fields are missing. In some cases, you may wish to write rules to get or set the metadata.sag.type which specifies the Apama event type, or the metadata.sag.channel which specifies the correlator (EPL) channel name.
You can add, remove or configure any other standard codecs you wish to use, such as the JSON codec. For more information, see Codec Connectivity Plug-ins.

Copyright © 2013-2018 | Software AG, Darmstadt, Germany and/or Software AG USA, Inc., Reston, VA, USA, and/or its subsidiaries and/or its affiliates and/or their licensors.