---
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


---

# EventQueueProcessorOOB - Scoped

# EventQueueProcessorOOB - Scoped {#ariaid-title1}

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

The EventQueueProcessorOOB script include provides methods to manage event requests on the inbound event queue (located in the Inbound Queue \[sn_tmt_core_inbound_queue\] table).

If you want to change the default functionality of this script include, you need to override these methods in the `EventQueueProcessor` script include. You must have the admin role to modify this script include.

This script include runs in the `sn_api_notif_mgmt` namespace.

## EventQueueProcessorOOB - transformEventObject(Object eventSnapshot, Object eventJson, String queueType) {#ariaid-title2}

Adds attributes to the passed event snapshot.
This method is not implemented in the base instance. If you need to add attributes to the event snapshot before processing the event and sending it out on the proper message-bus, you should override this method in the
EventQueueProcessor script include.
{#EQPO-transformEventObject_O__table_dlh_xrb_vzb__entry__3}

| Name | Type | Description |
|-|-|-|
| eventSnapshot | Object | Raw event data in which to add attributes. This object is from the payload field of the Inbound Queue \[sn_tmt_core_inbound_queue\] table. Inbound queue records are created by business rules, such as Trouble Ticket Attribute Change Event, that are associated with the Incident \[incident\] table. The format of the event snapshot is defined by the business rule that originally pushed the event into the inbound queue. |
| eventJson | Object | JSON formatted glide record that caused the event to be triggered. This is the object that was stored in the Inbound Queue table. The format of this object is dependent on the table from which it was generated, such as incident or case. |
| queueType | String | Queue in which the event was pushed. For the default implementation, this is always `sn_tmt_core_inbound_queue`. If you modify the event queuing implementation in your instance, pass the name of the queue that contains the event record. |
[Table 1. Parameters]

{#EQPO-transformEventObject_O__table_dlh_xrb_vzb} {#EQPO-transformEventObject_O__table_elh_xrb_vzb__entry__2}

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

{#EQPO-transformEventObject_O__table_elh_xrb_vzb}  
The following code example shows how to call this method.

    pushEventsToEventQueue: function(eventSnapshot, queueType) {
      if (queueType == Constants.QUEUE_TYPE.INBOUND_QUEUE) {
        var inboundQueueEventJson = this.generateInboundQueueObj(eventSnapshot);
        this.transformEventObject(eventSnapshot, inboundQueueEventJson, queueType);
        // Passing isSecure as false
        new sn_tmt_core.InboundQueue(null, false).createInboundQueueRecord(inboundQueueEventJson);
      }
    },


