Service scenarios
Overview
Service scripts are used to process data and events. Is the most generic type of extensive application script, so has no specialized components.
The startup is done:
-
when an HTTP request is received to the project server API;
-
When a webhook arrives at integration channel;
-
when initiating a run from active script handlers by component Script Run in asynchronous mode;
-
by schedule service task;
-
in the form of a contextual call script for handling call events - it is launched when a call is received and can be active until the end of the call;
-
call management service to initiate outgoing calls from SIP-UAC IVR;
-
at various points in business processes involving project customization - strategies.
The algorithm of each scenario is described by an entity svcscript. Are created in the web application "Script Editor" or can be managed via the API.
A service script has a main branch and post-processing branches. The main branch is active only concurrently with the activity of the owner process, and the execution of the main branch of the script is interrupted when the owner process terminates. At the same time, its work can be continued on the post-processing branch.
The service script serving the incoming external request should promptly terminate by saving the value to a variable named result
.
Executed by the role svc on one of the sites serving the domain.