Publish an event
- Last Updated: January 22, 2026
- 1 minute read
- OpenEdge
- Version 12.8
- Documentation
Once there are one or more subscribers to an event, then a procedure can publish that event and
each of the subscribers receives it. The publisher does not have to preregister the
intention of publishing the event, even though the subscriber must register the intent
to receive it. This is the syntax for the PUBLISH statement:
|
As with the SUBSCRIBE statement, the default is to publish the event
from the procedure that contains the PUBLISH statement. A procedure can
also publish events on behalf of another procedure by including the FROM
publisher-handle phrase. Any subscriber that has
subscribed to the event of the same name in the publisher-handle,
whether implicit, explicit, or ANYWHERE, receives it.