EventQueueProcessorOOB - Scoped
-
- UpdatedAug 1, 2024
- 2 minutes to read
- Xanadu
- API reference
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)
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.
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. |
Type | Description |
---|---|
None |
Example
The following code example shows how to call this method.