Universal Messaging 9.12 | Developer Guide | Enterprise APIs | Enterprise Developer's Guide for Python | Python Objects | Event Dictionaries
 
Event Dictionaries
Event Dictionaries (nEventProperties) provide an accessible and flexible way to store any number of message properties for delivery within a Universal Messaging Event.
Event Dictionaries are quite similar to a hash table, supporting primitive types, arrays, and nested dictionaries.
Universal Messaging filtering allows subscribers to receive only specific subsets of a channel's events by applying the server's advanced filtering capabilities to the contents of each event's dictionary.
In this code snippet, we assume we want to publish an event containing the definition of a bond, say, with a name of "bond1":

props = nEventProperties()
props.put("bondname", "bond1")
props.put("price", 100.00)
event = nConsumeEvent(props,"Tag")
NirvanaModule.publish("Channelname",evt);
Note that in this example code, we also create a new Universal Messaging Event object (nConsumeEvent) to make use of our Event Dictionary (nEventProperties).

Copyright © 2013-2019 | Software AG, Darmstadt, Germany and/or Software AG USA, Inc., Reston, VA, USA, and/or its subsidiaries and/or its affiliates and/or their licensors.