Skip to main content

dataDictionary

const dataDictionary: DataDictionary

Global instance providing access to your project's data dictionary structures. Use it to navigate types and create new messages.


At a Glance

// Navigate to a type
const detailType = dataDictionary.type.MyFormat.Detail;

// Create a message from a data dictionary structure
const newMessage = dataDictionary.createMessage(dataDictionary.type.MyCorp.MyStructure.Record);

// Populate and emit
newMessage.data.HEADER.RECORD_TYPE = 'HDR';
newMessage.data.HEADER.TIMESTAMP = DateTime.now();
stream.emit(newMessage, OUTPUT_PORT);

Key Points

ScopeGlobally available in all script-based processors
Read-onlyThe structure itself cannot be modified at runtime
DynamicdataDictionary.type.* reflects your project's specific configuration

See Also