Macro Engine supports five scripting languages: BeanShell, JavaScript Rhino, Jython, Groovy, and JRuby.
BeanShell BeanShell is a lightweight scripting language for Java. The shipped version is 2.1.7. The advantage of using BeanShell is that its syntax is compatible with Java; therefore, you can use the code assistant feature in most Java IDE. The BeanShell syntax documentation is available at http://www.beanshell.org/docs.html.
The JavaScript Nashorn language has been removed from the modeling tool. Please use JavaScript Rhino instead. Learn more on the Deprecated JavaScript Nashorn page.
Jython Jython, a successor of JPython, is a Python programming language implemented in Java. The documentation is available at http://wiki.python.org/jython. Besides automating the modeling tool by using Jython scripting, the plugin development in the Jython programming language is also supported by the modeling tool. For more information on Jython, see JPython Scripting in the OpenAPI User Guide.
Groovy Groovy is an agile and dynamic language for the Java Virtual Machine. Macro Engine uses Groovy 2.0.1. The advantage of using Groovy is that its Java-like syntax seamlessly integrates with the existing Java source code and libraries. It supports many IDEs that provide code completion and debugging. BeanShell scripts can be easily moved to Groovy, with some modifications. For more information on Groovy, go to http://groovy-lang.org/.
JRuby JRuby is a 100% pure-Java implementation of the Ruby programming language. The documentation is available at http://jruby.org/documentation.