public void setPosition(int[] position) {
        if (position.length == 2) {
            this.position[2] = position[0];
            this.position[3] = position[1];
        } else if (position.length == 4) {
            this.position = position.clone();
        }
    }
Method to set the position of variable to be executed. For stream events(simple queries) position can be an array
of size 2 and for state events(join/pattern queries) position should be an array of size 4.

@param position attribute position
modules/siddhi-core/src/main/java/io/siddhi/core/executor/VariableExpressionExecutor.java