Developing Apama Applications > Developing Apama Applications in EPL > Using Correlator Plug-ins in EPL > Using the Payload Extraction plug-in > Accessing the payload in the correlator
Accessing the payload in the correlator
The contents of the payload field are structured as a list of field name and value pairs. Although this may be directly accessed as a string within EPL, Apama provides the Payload Extraction plug-in to make extraction and manipulation of specific fields more straightforward.
The Payload Extraction plug-in is available as libPayloadPlugin.so in the lib directory on UNIX. On Microsoft Windows it is available as PayloadPlugin.dll in the bin directory.
The following EPL, which should be located within the monitor that requires the plug-in’s functions, loads the Payload Extraction plug-in and assigns it the alias payloadMgr:
import "PayloadPlugin" as payloadMgr;
The plug-in provides a suite of methods that allow extraction of named fields from the payload field.
There are two groups of these functions, the direct access functions, and the indirect access functions.
Copyright © 2013 Software AG, Darmstadt, Germany and/or Software AG USA Inc., Reston, VA, USA, and/or Terracotta Inc., San Francisco, CA, USA, and/or Software AG (Canada) Inc., Cambridge, Ontario, Canada, and/or, Software AG (UK) Ltd., Derby, United Kingdom, and/or Software A.G. (Israel) Ltd., Or-Yehuda, Israel and/or their licensors.