You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I've created a simple snippet that execute the script and it seems that, from some reason, the Javascript under Java 8 engine is not splitting the parameters nicely.
ScriptEngine engine = new ScriptEngineManager().getEngineByName("nashorn");
final String params = "str <SEP> foo <SEP> EQUALS <SEP> foo <SEP> true";
Bindings binding = new SimpleBindings();
binding.put("params", params);
engine.eval(new FileReader("ifScriptCondition.js"),binding);
One option for a fix is to replace, in jhe ifScriptCondition.js file the return expression of the parseExpression function from
The "If condition" is using a Javascript script to evaluate the condition (ifScriptCondition.js).
From some reason, when upgrading Java from version 7 to 8, the script is no longer evaluated correctly and every expression result is false.
In the terminal we see something like this:
In my machine it was reproduced when upgrading from jdk1.7.0_05 to jdk1.8.0_31
The class that executes the script is JSystemScriptCondition.
The text was updated successfully, but these errors were encountered: