hello guys i am new to development and scripting , can anyone explain me what does this condition represent(new global.StateFlow().validFlow(current, 'b46c02ca4f2d0a0097b3b82ca310c743', 'manual')), here sysid represent state flow record

harryh
Tera Contributor

hello guys i am new to development and scripting , can anyone explain me what does this condition represent(new global.StateFlow().validFlow(current, 'b46c02ca4f2d0a0097b3b82ca310c743', 'manual')),   here sysid   represent state flow   record

1 REPLY 1

sergiu_panaite
ServiceNow Employee
ServiceNow Employee

That's a call of a script include named "StateFlow" for its function named "validFlow".



If you go to System Definition -> Script Includes and search for Name IS StateFlow you will find the script and be able to see its content:



Screen Shot 2016-08-22 at 1.50.42 PM.png



More on state flows:



State flows



Regards,