I am using v7.15 EE and am trying to use GraalVM for the scripting engine, but I get the following error when using script based conditions in my process:
Caused by: javax.script.ScriptException: org.graalvm.polyglot.PolyglotException: ReferenceError: org is not defined
at com.oracle.truffle.js.scriptengine.GraalJSScriptEngine.toScriptException(GraalJSScriptEngine.java:483)
at com.oracle.truffle.js.scriptengine.GraalJSScriptEngine.eval(GraalJSScriptEngine.java:460)
at com.oracle.truffle.js.scriptengine.GraalJSScriptEngine.eval(GraalJSScriptEngine.java:426)
at java.scripting/javax.script.AbstractScriptEngine.eval(AbstractScriptEngine.java:233)
at org.camunda.bpm.engine.impl.scripting.SourceExecutableScript.evaluateScript(SourceExecutableScript.java:125)
at org.camunda.bpm.engine.impl.scripting.SourceExecutableScript.evaluate(SourceExecutableScript.java:65)
I have a test process that replicates the problem, with the following script based condition:
I have included the following GraalVM dependencies in my pom.xml
file:
<dependency>
<groupId>org.graalvm.js</groupId>
<artifactId>js</artifactId>
<version>21.2.0</version>
</dependency>
<dependency>
<groupId>org.graalvm.js</groupId>
<artifactId>js-scriptengine</artifactId>
<version>21.2.0</version>
</dependency>
So, is there any additional configuration I need to perform to configure GraalVM, or are my dependencies incorrect? Thanks in advance.
I have attached the full test process and POM file: