Skip to content

source.getComponentSeparator

Use when: You want to read values from the original incoming message before any mapping changes. If you need the modified message during mapping, use message.getComponentSeparator.

Signature: source.getComponentSeparator()

Returns: String separator - the component separator associated with the message

Get the component separator used for this message.

Note

This method only applies to the following formatted messages: EDIFACT, X12.

Parameters

None

Example

// Given an X12 or EDIFACT source message.

// Retrieve the component separator used by the message.
var componentSeparator = source.getComponentSeparator(); // expected: ":" for X12 and EDIFACT