Scripts
Overview
A script is a subroutine extending system functionality or adding business process flexibility through project configuration.
Scripts are created in the "Script editor" web application or can be managed via the API corresponding to the script type. Script editing is done in visual mode by configuring component properties and linking them with execution sequences. The script is stored as a JSON structure and may contain attachments in the file system — static files attached to a specific script, for example audio recordings.
Scripts are interpreted by the system. Each script can be executed simultaneously in a large number of instances by script handlers.
Scripts are launched by events and can operate with incoming data and various system data access functions.
Scripts are divided into types. Each script type has:
-
a specific purpose,
-
specific owner categories (the process initiating and controlling its launch),
-
specific application points (events that launch a script handler instance),
-
dedicated components providing this script type with specific functionality.
All script types can operate with:
-
variables with different scopes;
-
expressions and functions;
-
system entities via the API or special components;
-
data from the system core delivered to script variables by special components or expression functions;
-
data from external sources via HTTP(S), SQL, S3, LDAP, POP3, SMTP, etc.
-
the file system with restrictions.