var test = "abc";
execution.setVariable("myvar", test);
print(myvar);
The above JavaScript code works fine with the ‘Nashorn’ engine but not with ‘GraalVM’.
I am migration from 7.15 to 7.19 camunda.
Am I missing some GraalVM settings? There are a lot of workflows like this that I want to make work with GraalVM without changing the bpmn files.
I do not think you’re missing anything here.
And I’m not an expert on the topic, but that’s what the documentation states:
GraalJS tries to be compatible with the ECMAScript specification, as well as competing engines (including Nashorn). In some cases, this is a contradicting requirement; in these cases, ECMAScript is given precedence. Also, there are cases where GraalJS does not exactly replicate Nashorn features intentionally, for example, for security reasons.