Skip to content

source.getFileNameWithoutExt

Signature: source.getFileNameWithoutExt()

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

Returns the file name (without 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 (without extension) of the source message.

// Get the file name without its extension
var fileNameWithoutExt = source.getFileNameWithoutExt(); // e.g. "input", "order", "payload"