Contains the input script, the return value, the output, any exceptions and a success flag. @author cretzel
189190191192193194195196197198199200201202203204205206207208209210
{ final IScriptEngine engine = newEngine(); final Map<String, Object> bindings = newBindings(); final IScriptExecutionResult result = engine.execute(input, bindings); if (result.isSuccess()) { returnValue = String.valueOf(result.getReturnValue()); output = result.getOutput(); success = true; } else { returnValue = null; output = String.format("%s\n\n%s", result.getOutput(), result.getException()); success = false; } target.add(returnValueTf, outputTa); }