@Override
    protected Object execute(Object[] data, State state) {
        return script.eval(functionId, data);
    }
Executor class for Script function. Function execution logic is implemented in execute here.
modules/siddhi-core/src/main/java/io/siddhi/core/executor/function/ScriptFunctionExecutor.java