Skip to main content

dataDictionary


id: py-dataDictionary

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
detail_type = dataDictionary.type.MyFormat.Detail

# Create a message from a data dictionary structure
new_message = dataDictionary.createMessage(dataDictionary.type.MyCorp.MyStructure.Record)

# Populate and emit
new_message.data.HEADER.RECORD_TYPE = 'HDR'
new_message.data.HEADER.TIMESTAMP = datetime.now()
stream.emit(new_message, 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