Skip Navigation
Use of global variables in Custom Process object event handler scripts
Answer ID 6701   |   Last Review Date 07/22/2019

Can I use global variables in CPM object event handler scripts?


Process Designer, Custom Process Model (CPM), Service Process Model (SPM)
All product versions


The use of global variables should be avoided in all scripts used as part of a CPM script.  

Global variables may appear to function in CPMs periodically, and there no assurance that unintended side-effects will not occur as a result.

Variables that are needed should rather be declared in the functions where they are required.