Scripts (ScriptService)
Introduction
Lightweight script services rely on moving logic that does not require a connection to services from backend code to the application. Scripts can be written in the repository and then used in the application. The script code should be written in plain JavaScript (ES6 or older). The code must be compatible with the version of the JavaScript engine provided by Rhino (http://mozilla.github.io/rhino/compat/engines.html).
Additionally have been disabled elements such as "eval".
Timeout
WARNING! The script execution time is limited to 1s, to eliminate cases of using an infinite loop/unfinished recursion. After exceeding one second, an exception will be thrown.
After being fetched, service scripts are cached. The lifetime is controlled by the configuration key repository_script_service_cache_ttl and settings["REPOSITORY_SCRIPT_SERVICE_CACHE_TTL"]
Last updated
Was this helpful?
