JavaScript with Jint

<< Click to Display Table of Contents >>

Navigation:  Workflow Designer >

JavaScript with Jint

Previous pageReturn to chapter overviewNext page

gooflow uses the open-source JavaScript interpreter Jint to execute JavaScript.

If you want to run JavaScript, you must always make sure it is compatible with Jint. What does this mean in concrete terms?

 

Limitations of Jint

Jint runs on the server and not in the browser, and therefore does not support any browser APIs such as DOM manipulation or Web APIs (e.g., fetch, localStorage).

Jint also does not support extensions such as jQuery, Lodash, or Vue.js.

So if you need a function, you must always copy it directly into the script window. Make sure to copy the function definitions first and then the function call at the end. This ensures that Jint has loaded all functions correctly.

 

Further information

For more information about Jint, we refer to the official Jint documentation on GitHub https://github.com/sebastienros/jint.