Go to main content
1/8
Contents
Title and Copyright Information
Preface
Audience
Documentation Accessibility
1
Node Programming Language
Overview
Interface with CDK components
Expose clauses
Expose clause for Routing
NPL compilation
Data Dictionary
Language components
Comments
Data types
Implicit conversions between numeric types
Literals
Variables
Local variables
Obfuscatory Local Variable Information
Input record variables
Obfuscatory input record information
Output record variables
Obfuscatory output record information
Expose clause
Configuration clause
Operators
Arithmetic operators
Relational operators
Logical operators
String concatenation operator
Explicit cast operator
Built-in functions
void for (Integer i1, Integer i2)
Parameters
Return Value
Error Conditions
Example
write(OutputRec rec)
Parameters
Return Value
Error Conditions
Example
write(InputRec rec)
Parameters
Return Value
Error Conditions
Example
InputRec clone(InputRec rec)
Parameters
Return Value
Error Conditions
Example
OutputRec clone(InputRec rec)
Parameters
Return Value
Error Conditions
Example
OutputRec clone(OutputRec rec)
Parameters
Return Value
Error Conditions
Example
InputRec clone(OutputRec rec)
Parameters
Return Value
Error Conditions
Example
sample(OutputRec rec)
Parameters
Return Value
Error Conditions
Example
logError(String message)
Parameters
Return Value
Error Conditions
Example
logWarning(String message)
Parameters
Return Value
Error Conditions
Example
logWarning(String faultCategory, String specificFault, String additionalFaultText)
Parameters
Return Value
Error Conditions
Example
logInfo(String message)
Parameters
Return Value
Error Conditions
Example
logTrace(String message)
Parameters
Return Value
Error Conditions
Example
Integer strlen(String s)
Parameters
Return Value
Error Conditions
Example
Integer strpos(String string, String substring, Integer nth_occurrence)
Parameters
Return Value
Error Conditions
Example
String substr(String s, Integer beginIndex, Integer endIndex)
Parameters
Return Value
Error Conditions
Example
String str2lower(String s)
Parameters
Return Value
Error Conditions
Example
String str2upper(String s)
Parameters
Return Value
Error Conditions
Example
Bytes str2bytes(String s)
Parameters
Return Value
Error Conditions
Example
Bytes str2bytes(String s, String e)
Parameters
Return Value
Error Conditions
Example
String bytes2hexstr(Bytes b)
Parameters
Return Value
Error Conditions
Example
String bytes2str(Bytes b)
Parameters
Return Value
Error Conditions
Example
String bytes2str(Bytes b, String e)
Parameters
Return Value
Error Conditions
Example
Bytes byte2bytes(Byte b)
Parameters
Return Value
Error Conditions
Example
Byte bytes2byte(Bytes b)
Parameters
Return Value
Error Conditions
Example
String byte2str(Byte b)
Parameters
Return Value
Error Conditions
Example
Byte str2byte(String s)
Parameters
Return Value
Error Conditions
Example
Bytes short2bytes(Short s)
Parameters
Return Value
Error Conditions
Example
Short bytes2short(Bytes b)
Parameters
Return Value
Error Conditions
Example
String short2str(Short s)
Parameters
Return Value
Error Conditions
Example
Short str2short(String s)
Parameters
Return Value
Error Conditions
Example
Bytes int2bytes(Integer i)
Parameters
Return Value
Error Conditions
Example
Integer bytes2int(Bytes b)
Parameters
Return Value
Error Conditions
Example
String int2str(Integer i)
Parameters
Return Value
Error Conditions
Example
Integer str2int(String s)
Parameters
Return Value
Error Conditions
Example
Integer randomInt(Integer min, Integer max)
Parameters
Return Value
Error Conditions
Example
Bytes long2bytes(Long l)
Parameters
Return Value
Error Conditions
Example
Long bytes2long(Bytes b)
Parameters
Return Value
Error Conditions
Example
String long2str(Long l)
Parameters
Return Value
Error Conditions
Example
Long str2long(String s)
Parameters
Return Value
Error Conditions
Example
Bytes float2bytes(Float f)
Parameters
Return Value
Error Conditions
Example
Float bytes2float(Bytes b)
Parameters
Return Value
Error Conditions
Example
String float2str(Float f)
Parameters
Return Value
Error Conditions
Example
Float str2float(String s)
Parameters
Return Value
Error Conditions
Example
Bytes double2bytes(Double d)
Parameters
Return Value
Error Conditions
Example
Double bytes2double(Bytes b)
Parameters
Return Value
Error Conditions
Example
String double2str(double d)
Parameters
Return Value
Error Conditions
Example
Double str2double(String s)
Parameters
Return Value
Error Conditions
Example
Double randomDouble(Double min, Double max)
Parameters
Return Value
Error Conditions
Example
Bytes time2bytes(TimeInSecs t)
Parameters
Return Value
Error Conditions
Example
TimeInSecs bytes2TimeInSecs(Bytes b)
Parameters
Return Value
Error Conditions
Example
String time2str(TimeInSecs timeInSecs, String format)
Parameters
Return Value
Error Conditions
Example
TimeInSecs str2TimeInSecs(String s, String format)
Parameters
Return Value
Error Conditions
Example
Bytes time2bytes(TimeInMilliSecs t)
Parameters
Return Value
Error Conditions
Example
TimeInMilliSecs bytes2TimeInMilliSecs(Bytes b)
Parameters
Return Value
Error Conditions
Example
String time2str(TimeInMilliSecs timeInMilliSecs, String format)
Parameters
Return Value
Error Conditions
Example
TimeInMilliSecs str2TimeInMilliSecs(String s, String format)
Parameters
Return Value
Error Conditions
Example
TimeInMilliSecs currentTime()
Parameters
Return Value
Error Conditions
Example
String convertDateTime(String srcDateTime, … String dstDateTimeFormat)
Parameters
Return Value
Error Conditions
Example
Bytes IP2bytes(IP i)
Parameters
Return Value
Error Conditions
Example
IP bytes2IP(Bytes b)
Parameters
Return Value
Error Conditions
Example
String IP2str(IP IP address)
Parameters
Return Value
Error Conditions
Example
IP str2IP(String s)
Parameters
Return Value
Error Conditions
Example
String object2str(Object o)
Parameters
Return Value
Error Conditions
Example
String list2str(List l)
Parameters
Return Value
Error Conditions
Example
Bytes subbytes(Bytes b, Integer beginIndex, Integer endIndex)
Parameters
Return Value
Error Conditions
Example
Boolean fieldExists(InputRec rec, String fieldID)
Parameters
Return Value
Error Conditions
Example
Boolean fieldExists(OutputRec rec, String fieldID)
Parameters
Return Value
Error Conditions
Example
CopyBits
Parameters
Return Value
Error Conditions
Example
Expressions
Program statements
Assignment Statement
Assignment Statement Execution
If Statement
If Statement Execution
Function Statement
Java hooks
Import Declaration
JavaHook Declaration
2
Working with Oracle CDR Format Java Hooks in NPL
About Oracle CDR Format Java Hooks
Oracle CDR Format Java Hook Method Details
hasHeaderFields
hasTrailerFields
hasAnyAssociated
hasAssociatedData
getAssociatedData
getAssociatedIntField
getAssociatedDoubleField
getAssociatedLongField
getAssociatedStringField
getIntFieldFromList
getLongFieldFromList
getDoubleFieldFromList
getStringFieldFromList
3
Working with Record Enhancement Charging Java Hooks in NPL
About Record Enhancement Charging Java Hooks
Record Enhancement Charging Java Hook Method Details
load
exists
get
getLoadedInfo
getMapField
isEmpty
TRUE
FALSE
VALUE
search
search
search
search
getByNo
4
Sample Mapping for ECE Cartridge Pack
Supported Usage Types
Mapping for ASCII
Voice
Data
Mapping for SGSN
Data
SMS
Mapping for IMS
Voice
Mapping for Oracle CDR Format
Voice
Data
SMS
TelcoGsmTelephony
TelcoGprs
A
NPL Syntax and Reserved Words
EBNF for NPL
NPL reserved words
Scripting on this page enhances content navigation, but does not change the content in any way.