---
sourceDocument: Xanadu API Reference
sourceDocumentLink: https://servicenow-prod.fluidtopics.net/r/xanadu/api-reference

 Release :

    - xanadu

ft:locale :

    - en-US

ft:publication_title :

    - Xanadu API Reference

ft:clusterId :

    - crapiref

bundleId :

    - crapiref

workflow :

    - Creator


---

# GlideEventManager - Global

# GlideEventManager - Global {#ariaid-title1}

* Release version: Xanadu
* 
* Updated August 1, 2024
* 
* ![](https://www.servicenow.com/docs/portal-asset/ico-clock) 1 minute to read

The GlideEventManager API provides methods to process
events.

For information on creating an event queue, see [Creating custom queues to process
events](https://www.servicenow.com/docs/access?context=useful-server-side-scripts&version=xanadu&pubname=xanadu-application-development&section=queues-create&ft:locale=en-US).

## GlideEventManager - GlideEventManager(String queueName) {#ariaid-title2}

Instantiates a GlideEventManager object.
{#GlideEventMgr-GlideEventManager__table_ybd_rb1_vvb__entry__3}

| Name | Type | Description |
|-|-|-|
| queueName | String | Name of a queue for an event listed in the Event Registry \[sysevent_register\] table. If no queue is provided, GlideEventManager processes against the default queue. |
[Table 1. Parameters]

{#GlideEventMgr-GlideEventManager__table_ybd_rb1_vvb}  
The following example shows how to instantiate a GlideEventManager
object.

    var eventMgr = new GlideEventManager('my_queue');

## GlideEventManager - process(Number limit) {#ariaid-title3}

Processes the eligible events in a queue.
You can use the limit parameter to identify a range of process_on
times for events in the queue and it isn't a hard limit. For example, if the limit is 10,
the system looks for the 10 oldest pending process_on times. If multiple events have the
same process_on time, more than 10 events might be claimed (that is, ready to process).
{#GlideEventMgr-process_N__table_ibr_rrh_4z__entry__3}

| Name | Type | Description |
|-|-|-|
| limit | Number | Optional. Limits the number of events claimed. If this value isn't passed, no limit is applied. |
[Table 2. Parameters]

{#GlideEventMgr-process_N__table_ibr_rrh_4z} {#GlideEventMgr-process_N__table_jbr_rrh_4z__entry__2}

| Type | Description |
|-|-|
| None |   |
[Table 3. Returns]

{#GlideEventMgr-process_N__table_jbr_rrh_4z}  
The following example shows how to limit the number of events processed to roughly 200.

    GlideEventManager('my_event_queue').process(200);


