Developing Apama Applications > Developing Apama Applications in EPL > Using Correlator Plug-ins in EPL > Using the Payload Extraction plug-in > The direct-access functions
The direct-access functions
The primary direct-access functions are described in the following sections. For information about their parameters, see Parameters for primary direct-access functions.
parseString
string parseString(
string payload_string,
string field_name,
string default_value)
Access the payload specified in payload_string, locate the field called field_name, and return its contents as a string. If the field does not exist, is empty, or is invalid, return the string literal specified in default_value.
parseFloat
float parseFloat(
string payload_string,
string field_name,
float default_value)
Access the payload specified in payload_string, locate the field called field_name, and return its contents as a float. If the field does not exist, is empty, is invalid, or cannot be represented as a float, return the float value specified in default_value.
parseInteger
integer parseInteger(
string payload_string,
string field_name,
integer default_value)
Access the payload specified in payload_string, locate the field called field_name, and return its contents as an integer. If the field does not exist, is empty, is invalid, or cannot be represented as an integer, return the integer value specified in default_value>.
parseBoolean
boolean parseBoolean(
string payload_string,
string field_name,
boolean default_value)
Access the payload specified in payload_string>, locate the field called field_name, and return its contents as a boolean. If the field does not exist, is empty, is invalid, or cannot be represented as a boolean, return the boolean value specified in default_value.
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.