Name
global.DiscoveryCiTablesWithoutEP
Description
Invoked by the table_name element without endpoint CI s
Script
var DiscoveryCiTablesWithoutEP = Class.create();
DiscoveryCiTablesWithoutEP.prototype = {
process: function() {
var table = '' + current.getTableName();
var javaList = this.getList(table);
var result = [];
for (var i = 0; i < javaList.size(); i++) {
var derived = javaList.get(i);
if (!GlideDBObjectManager.get().isInstanceOf(derived,'cmdb_ci_endpoint')) {
result.push('' + derived);
}
}
return result;
},
getList: function(table) {
var dbom = GlideDBObjectManager.get();
var javaList = dbom.getTableExtensions('cmdb_ci');
return javaList;
},
type: 'DiscoveryCiTablesWithoutEP'
};
Sys ID
5c6df6379f922200904f91aec32e709a