Name
global.ContractComplianceCheckJob
Description
No description available
Script
var ContractComplianceCheckJob = Class.create();
ContractComplianceCheckJob.prototype = Object.extendsObject(global.AssetManagementPerGlideRecordBaseJob, {
initialize: function() {
this.tablesProcessed = [];
},
getRecords: function() {
var check = new GlideRecord('clm_condition_check');
check.query();
return check;
},
getDomains: function() {
return this.getDomainsGeneric();
},
preRunJob: function() {
this.tablesProcessed = [];
},
runJobForRecord: function(conditionCheckGr) {
var table = conditionCheckGr.getValue('table');
// Check if table is already processed, if not add it to the list and process
if (this.tablesProcessed.indexOf(table) === -1) {
this.tablesProcessed.push(table);
new ConditionChecks().check(table);
}
},
type: 'ContractComplianceCheckJob',
});
Sys ID
c5a6b29bd4c45010fa9b15b004f511d4