By default, the Perspectium Replicator Subscriber scheduled job in ServiceNow pulls and processes the messages from your Mesh server’s inbound queues. However, you can also have the job pull messages into the ServiceNow inbound table (psp_in_message) in a Ready state so that Perspectium Replicator Inbound Processor scheduled jobs process the inbound table. This allows you to prioritize the processing of your inbound messages by configuring the Perspectium Replicator Inbound Processor jobs to apply various filters.

This is an advanced capability for DataSync for ServiceNow, so it is recommended to enable this functionality in your test environment(s) first. Note that enabling multiple inbound processor jobs allows you to have greater control over how and when you are subscribing to data that is being shared out by other data sources/applications.


Prerequisites


(warning) First, you will need to install DataSync for ServiceNow and run the Perspectium Finish Install scripts.

Procedure

To enable multiple inbound processor jobs in your ServiceNow instance, follow these steps:


Access Replicator Properties

Log into your subscribing ServiceNow instance and navigate to Perspectium > Replicator > Properties.

Allow inbound messages to have a Ready state instead of being consumed immediately

Check the box labeled Allow Replicator inbound messages to go to a state of ready instead of being consumed immediately... Then, scroll down to the bottom of the page and click Save to save your changes.

Access the Perspectium Replicator Inbound Processor job

Navigate to Perspectium > Control and Configuration > All Scheduled Jobs. Then, in this table, search for and click to open the Perspectium Replicator Inbound Processor job.

Edit the script for the Perspectium Replicator Inbound Processor job

Within the script for this job, scroll to locate the addCustomQuery function on line 50. Then, modify the script by adding your customer queries. To do this, choose one of the following options:

  • Add customer queries by key:
function addCustomQuery(igr) {
    igr.addQuery("key", "=", "dev12345");
}
  • Add customer queries by name:
function addCustomQuery(igr) {
    igr.addQuery("name", "CONTAINS", "incident");
}

Finally, click Update in the upper right-hand corner of the form to save the changes you have made to the script for the Perspectium Replicator Inbound Processor job.

Create more Perspectium Replicator Inbound Processor jobs

Create a copy of the job modified in the previous step so you can apply other filters to enable simultaneous processing.