This is an old revision of the document!
Let ChatGTP or other LLM help with Back-End (Server-Side) JavaScript
ChatGTP and other LLM can be helpful when you need to write JavaScript code for MIStudio or TransSECS. Often ChatGTP can more easily generate valid Java code. There are a few steps to convert Java code into Javascript. The examples below assume the JavaScript engine in use is Nashorn (part of the JRE 8 runtime, which is the current Java version used in TransSECS, MIX and MIStudio).
Converting Java Code to Javascript
If you have a snippet or example of what you want to do written Java, there are a few changes which need to be done to make this run as JavaScript.
1. All Java classes need to be explicitly declared as either the full package name or as a var Java.type().