Name

global.DiscoveryProcessAppMatch

Description

Determines how to match an application during process classification.

Script

// Discovery class

/**
* Matches an application during process classification.
*
* Aleck Lin aleck.lin@service-now.com
*/
var DiscoveryProcessAppMatch = Class.create();

DiscoveryProcessAppMatch.prototype = Object.extend(new AbstractDBObject(), {    
  initialize: function(classifiedProcess, deviceGR ) {
      this.classifiedProcess = classifiedProcess;
      this.deviceGR = deviceGR;
  },
  
  match: function() {
      var correlationId = this.classifiedProcess.getUniqueId() + "@" + this.deviceGR.sys_id;

      var gr = new GlideRecord(this.classifiedProcess.getClassifiedTableName());
      gr.addQuery("correlation_id", correlationId);
      gr.query();

      return gr;
  },

  type: "DiscoveryProcessAppMatch"
});

Sys ID

c689c1f7c0a8026c07ba20121eabc3ca

Offical Documentation

Official Docs: