Custom functionality can be added with Javascript to APIs with this plugin. Small scripts can be very powerful, e.g. you can:
As an alternative to the Javascript Plugin you can use the Groovy plugin.
See the examples/javascript
folder for some samples.
The plugin comes with the Rhino Javascript engine. To use the newest Javascript features the engine can be replaced with the GraalVM Javascript engine.
Follow the steps below to add the GraalVM Javascript Engine to Membrane.
MEMBRANE_HOME/lib
folder.You can also use newer versions of the libraries.