Whenever we execute a script listener inside of our process, we see the following warning in the logs.
[engine] WARNING: The polyglot context is using an implementation that does not support runtime compilation.
The guest application code will therefore be executed in interpreted mode only.
Execution only in interpreted mode will strongly impact the guest application performance.
For more information on using GraalVM see https://www.graalvm.org/java/quickstart/.
To disable this warning the '--engine.WarnInterpreterOnly=false' option or use the '-Dpolyglot.engine.WarnInterpreterOnly=false' system property.
Here is one of the script blocks for reference
// set decision variable for job ending
var formJSON = execution.getVariable("formSubmission");
var data = JSON.parse(formJSON).data;
var jobEnding = data.jobEndingButton;
jobEnding = !!jobEnding;
execution.setVariable("isJobEnding", jobEnding);
I know this thread is a little old, but we recently came across this problem and I couldn’t find a clear answer elsewhere, so I think it’s worth showing a solution.
Create the following custom resolver, manually creating the Engine and setting the option. Note that if you’re using other Scripting Engines, you may need to scope this just to GraalJS via using the language parameter value.