Service scripts
Review
Service scripts are used to process data and events.
It is the most general type of scenarios with wide application, therefore it does not have specialized components.
The launch is carried out:
-
when an HTTP request is received to the project API;
-
when a webhook arrives at integration channel;
-
when triggering launch from active script handlers by the component Running a script in asynchronous mode;
-
scheduled service task;
-
in the form of a contextual call script for processing call events - starts when a call arrives and can be active until its completion;
-
call management service to initiate outgoing calls from SIP-UAC IVR;
-
at various points of business processes involving project customization - strategies.
The algorithm for each scenario is described by the svcscript entity.
Created in the Script Editor web application or can be controlled via API.
The service script has a main branch and post-processing branches.
The main branch is active only while the owner process is active, and when it terminates, execution of the main branch of the script is interrupted.
At the same time, its work can be continued in the post-processing branch.
The service script servicing an incoming external request must terminate promptly, storing the value in a variable named result.
Performed by the role svc on one of the sites serving the domain.