====== Activiti Hacking Notes ====== ===== Nashorn Drop In Replacement for OpenJDK 11 and Above ===== https://hub.alfresco.com/t5/alfresco-process-services/javascript-in-activiti-with-openjdk-11/m-p/305301/highlight/true#M7133 First, get the rhino-jdk8.zip from https://github.com/zeroboo/java-scripting-rhino-jdk8/releases/tag/v1.0.0 . It contains js.jar and js-engine.jar. Ignore the js.jar as it is readily available in maven central. Include the js-engine.jar in the project files for easy reference. Use maven-install-plugin to install the js-engine.jar to local repository. org.apache.maven.plugins maven-install-plugin 2.4 1 initialize install-file org.mozilla rhino-js-engine 1.0 jar ${basedir}/lib/js-engine.jar Then add the following maven dependencies to our application org.mozilla rhino 1.7.13 org.mozilla rhino-js-engine 1.0 Execute: mvn initialize This is a one time execution. Once the js-engine.jar installed in local repository, no need to initialize again. Then build and run as usual. All javascript in ScriptExecutionListener will be executed under Rhino.