public Object execute(ComplexEvent event) {
        return ((StateEvent) event).getStreamEvent(position);
    }
Executor class for Siddhi that extracts events.
modules/siddhi-core/src/main/java/io/siddhi/core/executor/EventVariableFunctionExecutor.java