Adding a Flat File Sender

This sender is used when you want XML messages to be written to a flat file. For example, it can be used in the notification download process to write a response message to a flat file. Flat file senders should reference an XAI Class of FLATFILESNDR. In addition, the following context records should be defined for senders of this type.

Context Type Description Values
Flat file output directory Directory in the file system where to write the file
Flat file filename pattern

The name of the output file. The file name may be a literal constant, or generated dynamically.

To create a dynamic filename use <file name>$$ID, where $$ID is replaced at run time by the ID of the NDS message that triggered the response message. If no file name is defined for the sender, the XAI server generates a file name with the following format 'XAI$$ID.xai'.

Append data to file This parameter controls whether the content of the response message is appended to an existing file, or a new file is created (possibly replacing an existing one). YES or NO
Character Encoding Indicates if the message should be sent with character encoding. The sender will write the content of the file with encoding specified in the context value. If no value is specified, the sender uses the default Java system encoding, which is determined according to the operating system locale. UTF-8 or UTF-16