To implement Personalization events you need to understand three main concepts:
The Event Registry
The event registry component is located in Nucleus at
/atg/registry/EventHandlers
. The event registry scans a directory in the config path that is specified in itshandlerPath
property. It loads any handlers in this directory that extendGenericHandler
. The event registry points each handler component to listen to its default event channel.The event registry also includes a pointer to an
EventDistributor
component.The Event Distributor
The
EventDistributor
component is located in Nucleus at/atg/dynamo/service/event/Distributor
. TheEventDistributor
recognizes a tree of registered event sources. Each path in the event source tree is referred to as an event channel. An event channel is a list of event sources, starting with the root source (/). You can register an event handler to listen to any node in the event source hierarchy. The Personalization module is configured to recognize the following event channels:session
page
content
content type
Event Triggers
Event Triggers are servlets that trigger events based on your specifications. The Personalization module comes with some event triggers that are already configured. You can also create your own event triggers and configure them to trigger events in several different ways. See the Event Triggers and Setting Up Event Triggers sections in this chapter for more information.