Using hard coded constants in script includes


EXAMPLE:

var ChangeCheckConflicts = Class.create();

ChangeCheckConflicts.prototype = {

    //System properties
    CHANGE_CONFLICT_MODE : 'change.conflict.mode',
    CHANGE_CONFLICT_CURRENTCI : 'change.conflict.currentci',
    CHANGE_CONFLICT_CURRENTWINDOW : 'change.conflict.currentwindow',
    CHANGE_CONFLICT_BLACKOUT : 'change.conflict.blackout',
    CHANGE_CONFLICT_RELATEDCHILDWINDOW : 'change.conflict.relatedchildwindow',
    CHANGE_CONFLICT_RELATEDPARENTWINDOW : 'change.conflict.relatedparentwindow',

    initialize: function(current) {
       
        this.mode = gs.getProperty(this.CHANGE_CONFLICT_MODE);

Comments

Popular posts from this blog

Running transform maps asynchronously

Post a command to the ECC queue for the mid server to initiate a powershell file copy

GlideRecord setValue