Scoped GlideSystem - eventQueue(String name, Object instance, String parm1, String parm2, String parm3)

Queues an event for the event manager.

Table 1. Parameters
Name Type Description
name String Name of the event being queued.
instance Object A GlideRecord object, such as "current".
parm1 String (Optional) Saved with the instance if specified.
parm2 String (Optional) Saved with the instance if specified.
parm3 String The name of the queue.
Table 2. Returns
Type Description
void
if (current.operation() != 'insert' && current.comments.changes()) {
    gs.eventQueue('incident.commented', current, gs.getUserID(), gs.getUserName());
}