Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Info
titleExample

For a notifier plugin example, see:

com.digitalroute.devkit.examples.event.DynamicLogFile*

DRNotifierTarget

A new notifier plugin is defined by extending DRNotifierTarget. The Code Server will locate all such classes and make them available for configuration in the Event Notification Editor. The configuration of a notifier can be obtained in two ways (or through a combination of both):

...

When a notifier configuration is saved, the initialize method is called. If the notifier was previously saved, the deinitialize method is called first. When the Event NotificationĀ configurationĀ receives an event that the notifier subscribes for, the notify method is called. The method is handed the event itself, and if dynamic fields are used, a hash map keyed by the dynamic field name and a corresponding object as well. The corresponding object will hold the assigned field value. If the value has been manually entered or assigned directly from an event field, then the object will have the same data type as the dynamic field. If the value used formatted input (PT_STRING only) then this value will contain the formatted string, that means any variables will have been substituted by an event field value.

DRNotifierTargetUI

If the notifier requires a static user interface for user configuration, the DRNotifierTargetUI class must be extended. The class extends the Java JPanel that is the main container for the configuration components. When a notifier is selected in the user interface, this panel will be displayed in the Base Configuration frame.

...