Programming

Learn about the available APIs, script limitations and runtime environments.
The following table shows the ECMAScript standard, syntax restrictions, and runtime environment that each type of script must follow. The editor has a dedicated UI toolkit that you can use.
Table 1. Script limitations
Script type Runtime environment ECMAScript standard Additional restrictions
Process script Workflow server ES5  
Service script Workflow server ES5  
Client-side human service script Client browser ES6
For event scripts in view instances:
  • You can only use a formula or expression for specific events. For example, using a label formula within a button.
  • JavaScript template literals cannot be used, because the UI toolkit interprets the $ sign as a JavaScript formula or expression. For example, don't use arrow functions. As another example, for var op = ${Button1}.isValid();, the UI toolkit JavaScript API gets the validity of the view component.
Action script Node.js ES6  
View script Node.js ES6  

For information about the available APIs, see the following links: