Skip to content

qie.createEDIFACTMessage

Signature: qie.createEDIFACTMessage(segment*, element*, component*, escape*, encoding*)

Returns: EDIFACT Message message - the newly created message object

Replace the current message with an empty EDIFACT formatted message.

Note

Calling qie.createEDIFACTMessage() with no parameters creates a new EDIFACT message using the default separators.

Note

The return value MUST ALWAYS be assigned to the bound-in message object.

Note

encoding is optional. When not specified, {source encoding} is the encoding set on the channel's source node, or the encoding of the current message when the channel has none.

Parameters

Type Name Description Default
String segment* (optional) the EDIFACT segment separator '
String element* (optional) the EDIFACT element separator +
String component* (optional) the EDIFACT component separator :
String escape* (optional) the EDIFACT escape character ?
String encoding* (optional) the character encoding for this message {source encoding}

Example

// Example: create a new EDIFACT message with explicit separators.

message = qie.createEDIFACTMessage(
    "'",        // segment separator
    "+",        // element separator
    ":",        // component separator
    "?",        // escape character
    "UTF-8"     // character encoding
);