Generate the Event at a Fixed Time
- Use the gs.eventQueueScheduled() GlideSystem methods
Syntax:
gs.eventQueueScheduled("<event_name>", object, parm1, parm2, time);
Example:
gs.eventQueueScheduled("problem.reminder", current, "Event time: " + current.u_reminder, gs.getUserName(), current.u_reminder);
The time parameter is set to a record field containing a Data/Time value. The event is generated at the time passed in this field.
The example shown calls yhe registered event and passed it the current object, the string "Event time:" + value in the current.u_reminder field, the value of gs.getUserName(), and the date/time for the event to be generated.