AC6.1/7 JavaScript engine: what it is, what is can do?
Hi all,
So, we're doing some king of development with our AC installation. This "some kind" means: defining our own Forms, calling our own Schema's methods via SOAP on enter and leave and all that stuff.
So far so good, but the question came up: is JS engine in AC totally synchronous? As I see now, even HttpClientRequest and I/O (File and Memory Buffer methods) are synchronous and the js-api helpfile we've got from Support isn't describing everything AC has (great stuff like NL.toDebugString is missed totally).
The other question is: what version of JS/ECMA it is? I'm wondering because e.g. list comprehensions are impossible, but they were introduced in JS back in 2006, and 'let' operator seems to work at the same time (btw, is it actuall 'let' with block scope?).
In shorten, questions are:
1. Is there any event mechanism? Is there anything working in async?
2. What JS engine provided? Fully custom?
3. If no async at all, is only 1 thread running for everything? E.g. if 50 users will work with the same Form which calls number of Schema's methods via SOAP - soaprouter will place all calls in queue? Same for Workflows: if only 1 process is dedicated for all Workflows - there should be queue of running Workflows and only one activity running at any time (especially if they're also written in JS stored in the system and not coded into the core), no?
Thanks! ![]()