1. String jsScript = "";
    2. ScriptEngine engine = new ScriptEngineManager().getEngineByName("js");
    3. engine.eval(jsScript);
    4. Invocable invoke = (Invocable) engine;
    5. String result = (String) invoke.invokeFunction([js函数名], [json字符串]);

    image.png