Skip to content

source.getFileName

Signature: source.getFileName()

Returns: String fileName - the file name and extension associated with the source file

Returns the file name (including extension) associated with the source file.

Note

Only applies to channels where the message source is a file.

Note

This method only applies to the following formatted messages: HL7, ASTM, Binary, CSV, DICOM, EDIFACT, Old Fxd Width, Fxd Length, ISO 8583, JSON, Text, X12, XML.

Parameters

None

Example

// Example: Retrieve the file name of the source message.

// Get the file name (including extension) associated with the source file
var fileName = source.getFileName(); // e.g. "input.hl7", "order.xml", "payload.json"