EventTemplate

Managed object to act as a template for notifications (events). Each instance of the template contains a set of named arguments. These argument names can be retrieved for checking against Policies that expect to be activated by the events. When an event is created using this template the named arguments are packed into a map and sent around the system inside the event.

Factory Messages

create

creates an empty template. Further messages must be sent to give the named arguments.

create: anArray

creates an event template with anArray containing the argument names.

Operational Messages

arg: arg

adds an argument field to this event definition

arg: arg type: type

adds an argument of a given name and type to this event template. The type is not currently used.

args: anArray

adds anArray of argument fields to this event template

create

creates and sends an event of this type with no values.

create: anArray

creates and sends an event of this type with values from anArray.

fromHash: aHash

creates and sends an event of this type with values from aHash.

packageArgs

INTERNAL OPERATION. Takes a list of objects and packages them into a hash indexed with the argument names. Answers the new hash.