Change Management REST API results in error 500: ChangeRequestStateHandler is not defined when Change Management - State Model [com.snc.change_management.state_model] plugin not activeDescriptionChange Management REST API results in error 500: ChangeRequestStateHandler is not defined on instance with Change Management - State Model [com.snc.change_management.state_model] plugin not active. Using the Change Management REST API - Standard POST /api/sn_chg_rest/change/standard/{standard_change_template_id}error: { "error": { "message": "\"ChangeRequestStateHandler\" is not defined.", "detail": "ReferenceError: \"ChangeRequestStateHandler\" is not defined. (sys_script_include.cb22cf935303130096c3ddeeff7b12a1.script; line 26)" }, "status": "failure" }Steps to Reproduce The instance being used must not have the Change Management - State Model [com.snc.change_management.state_model] plugin not activeThe instance needs to have the Change Management - REST API [com.sn_chg_rest] scoped application installed/activeInvoke Change Management REST API - Standard POST. see example below. curl command example curl "http://instance/api/sn_chg_rest/change/standard/df7359bc53231300e321ddeeff7b12f9" \ --request POST \ --header "Accept:application/json" \ --user 'username':'password' WorkaroundUpdate script include: ChangeProcess sys_id: bd4db967b733130096c3e4f6ee11a979 From: initialize: function(_gr, _gs) { ChangeProcessSNC.prototype.initialize.call(this, _gr, _gs); }, To: initialize: function(_gr, _gs) { this._log = new GSLog(ChangeProcessSNC.LOG_PROP, this.type); if (this._log.atLevel(GSLog.DEBUG)) this._log.debug("[initialize] type: " + this.type); this._gr = _gr || current; this._gs = _gs || gs; this._stateHandlerActive = pm.isActive("com.snc.change_management.state_model"); if (!this._gr) this._log.error("[initialize] invalid GlideRecord"); if (this._gr && this._stateHandlerActive) this._stateHandler = new ChangeRequestStateHandler(this._gr); },Related Problem: PRB1389802