In your publisher class you write code to identify when a condition has occurred. Then, you call the publish() method to publish the event.

Here is the syntax to publish a class event:

Event-Name:publish (parameter, [parameter…])no-error.

Syntax Element

Description

no-error

Specifies how you want to handle errors raised from publishing the event. Note that if there are multiple subscribers to an event and an error is raised, any unexecuted event handlers will not execute.

Note: The parameter list should match the parameters defined in the event definition.
See also