Name
global.ChangeRequestStateModelSNC_normal
Description
Extended by ChangeRequestStateModel_normal
Script
var ChangeRequestStateModelSNC_normal = Class.create();
ChangeRequestStateModelSNC_normal.prototype = {
initialize: function(changeRequestGr) {
this._gr = changeRequestGr;
},
toDraft_moving: function() {
return true;
},
toDraft_canMove: function() {
return true;
},
toAssess_moving: function() {
return true;
},
toAssess_canMove: function() {
return true;
},
toAuthorize_moving: function() {
return true;
},
toAuthorize_canMove: function() {
return true;
},
toScheduled_moving: function() {
return true;
},
toScheduled_canMove: function() {
return true;
},
toImplement_moving: function() {
if (this._gr.work_start.nil())
this._gr.work_start = new GlideDateTime();
return true;
},
toImplement_canMove: function() {
return true;
},
toReview_moving: function() {
if (this._gr.work_end.nil())
this._gr.work_end = new GlideDateTime();
return true;
},
toReview_canMove: function() {
return true;
},
toClosed_moving: function() {
return true;
},
toClosed_canMove: function() {
return true;
},
toCanceled_moving: function() {
this._gr.on_hold = false;
return true;
},
toCanceled_canMove: function() {
return true;
},
isOnHold: function() {
return this._gr.on_hold;
},
type: 'ChangeRequestStateModelSNC_normal'
};
Sys ID
7812be37cb100200d71cb9c0c24c9c28