Name

global.AgileKingstonUpgradeHelper

Description

No description available

Script

var AgileKingstonUpgradeHelper = Class.create();
AgileKingstonUpgradeHelper.prototype = {
  initialize: function() {
  },
  
  run: function(batchSize, startIndex, blockSize, encodedQuery) {
  	var sequencer = new SNC.AgileRankSequencer("rm_story", "global_rank");
  	var gr = new GlideRecord("rank_configuration");
  	gr.addQuery("table", "rm_story");
  	gr.addQuery("column", "global_rank");
  	gr.query();
  	if (gr.next()) {
  		if (JSUtil.nil(startIndex))
  			startIndex = gr.getValue("last_index");
  		if (JSUtil.nil(blockSize))
  			blockSize = gr.getValue("block_size");
  	}
  	sequencer.populateGlobalRank(batchSize, startIndex, blockSize, encodedQuery, "sys_created_on", false);
  },

  type: 'AgileKingstonUpgradeHelper'
};

Sys ID

a53bf0929397320064f572edb67ffbe2

Offical Documentation

Official Docs: