Software AG Products 10.7 | Integrating On-Premises and Cloud Applications | Service Development | Subscribing to Events | What Happens When an Event Occurs?
 
What Happens When an Event Occurs?
When an event occurs, the Event Manager automatically invokes all event handlers that subscribe to the event. The event handlers receive an input object containing run-time information. The exact content of this input object varies depending on the type of event that occurred and, for audit events, the run-time properties set on both Integration Server and the service that generated the event.
Other points to keep in mind about events and event handlers:
*An event can have more than one subscriber, which means that a single event might invoke several event handlers.
*If an event invokes more than one event handler, all the event handlers execute simultaneously. They do not execute serially and they are not invoked in any particular order. (If you have a series of actions that must execute in a specific sequence, you should encapsulate the entire sequence within a single event handler.)
*An event handler can subscribe to more than one event.
*An event handler can be invoked synchronously or asynchronously. For more information, see Invoking Event Handlers Synchronously or Asynchronously.
*When event handlers run, they do not generate audit events.
*If an event handler throws an exception, it generates an exception event. This is true for all event handlers but exception event handlers. When an exception event handler throws an exception, it does not generate an exception event.