Universal Messaging 9.12 | Developer Guide | Enterprise APIs | Enterprise Developer's Guide for VBA | Publish / Subscribe | Publishing Tasks | Universal Messaging Events
 
Universal Messaging Events
A Universal Messaging Event (nConsumeEvent) is the object that is published to a Universal Messaging channel or queue. It is stored by the server and then passed to consumers as and when required.
Events can contain simple byte array data, or more complex data structures such as an Universal Messaging Event Dictionary (nEventProperties).
Constructing an Event
In this VBA code snippet, we construct our Universal Messaging Event object, as well as a Universal Messaging Event Dictionary object (nEventProperties) for our Universal Messaging Event:

Dim props As New nEventProperties

Call props.put("examplekey", "hello world")

Dim evt As New nConsumeEvent

Call evt.init_2(props)

Here the function evt.init_2() is used. The nConsumeEvent class currently has 3 initialise methods but Excel does not support overloading so renames these methods to init_1 init_2 etc.

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.