Creating script objects

Before use, a new script object must be registered to the script instance’s object registry and assigned to an object name using the following syntax:

@myScriptObject = @factoryObject::factoryMethod()"

Some script object constructors require parameters.

Typically, the script instance environment will have one or more objects pre-registered and available to a script at the time of execution. These objects may have object methods that are intended to be used as an object creation factory. The following example shows how to use the pre-registered event object to provide an object factory method for creating alerts:

@alert = @event::notification()