Class ExampleObserver

This is an example of the observer class. The name of the observer must be unique. It must also be used when identifying this class in the 'classes.txt' file in the./ext folder by adding a line "eventName=ExampleObserver".


The entries in the "classes.txt" file are loaded automatically during start of the ProvideX Event Manager. As each class is successfully loaded, it is added the the observers preference page. This gives the user control of the external observers (if any) that are active.

Inherits

EventManagerObserver

Properties

LOCAL theDescription$="Example observer"  
LOCAL theNotificationFlag=_pvxConstants'_idePostProcess  

Methods

FUNCTION update(initPvxState)  

The logic to be executed when the observer is triggered. This logic must check the major and minor codes to determine the current event and then decide what action is to be performed.


If this observer is set to watch both Pre-Process and Post-Process states for events, the logic in the 'update' method must check the state of the aPvxState'getArgument(_pvxConstants'_iEventNotificationFlag$) flag to determine the appropriate code to be executed.

ParameterDescription
state A reference to an object of class PvxState