IncidentState Variables defined?

asd13
ServiceNow Employee
ServiceNow Employee

Hi,

Can anyone help me find where the IncidentState vars are defined?   There's several OOTB biz rules using statements such as:

current.incident_state.changesTo(IncidentState.CLOSED)

current.incident_state.changesTo(IncidentState.RESOLVED)

thanks
Dave

1 ACCEPTED SOLUTION

Jace Benson
Mega Sage

Looks like there is a OOTB business rule called "Load incident models into scratchpad" that defines them.  


View solution in original post

2 REPLIES 2

Jace Benson
Mega Sage

Looks like there is a OOTB business rule called "Load incident models into scratchpad" that defines them.  


Team,


Just want to add to Jace's reply



The values for IncidentState are defined in the IncidentState script include, that script include gets its values from the IncidentStateSNC script include. The



In my Helsinki dev instance the values are


IncidentStateSNC.NEW                               = "1";


IncidentStateSNC.IN_PROGRESS               = "2";


IncidentStateSNC.ACTIVE                         = IncidentStateSNC.IN_PROGRESS;


IncidentStateSNC.ON_HOLD                       = "3";


IncidentStateSNC.AWAITING_PROBLEM     = IncidentStateSNC.ON_HOLD;


IncidentStateSNC.AWAITING_USER_INFO = IncidentStateSNC.ON_HOLD;


IncidentStateSNC.AWAITING_EVIDENCE   = IncidentStateSNC.ON_HOLD;


IncidentStateSNC.RESOLVED                     = "6";


IncidentStateSNC.CLOSED                         = "7";


IncidentStateSNC.CANCELED                     = "8";



Thanks,



Cody