GlideSystem - eventQueue(String name, Object glideRecord, String parm1, String parm2, String queueName)

Queues an event for the event manager.

Table 1. Parameters
Name Type Description
name String Name of the event being queued.
glideRecord 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

Scoped equivalent

To use the eventQueue() method in a scoped application, use the corresponding scoped method:Scoped GlideSystem - eventQueue(String name, Object instance, String parm1, String parm2, String parm3).

if (current.operation() != 'insert' && current.comments.changes()) {
    gs.eventQueue("incident.commented", current, gs.getUserID(), gs.getUserName());
}