public String toString(long maxNoOfEventsToPrint) {
        if (maxNoOfEventsToPrint == 0) {
            return "...";
        }
        return "StreamEvent{ timestamp=" + timestamp +
                ", beforeWindowData=" + (beforeWindowData == null ? "null" : Arrays.asList(beforeWindowData)
                .toString()) +
                ", onAfterWindowData=" + (onAfterWindowData == null ? "null" : Arrays.asList
                (onAfterWindowData).toString()) +
                ", outputData=" + (outputData == null ? "null" : Arrays.asList(outputData).toString()) +
                ", type=" + type +
                ", next=" + (next != null ? next.toString(maxNoOfEventsToPrint - 1) : "null") +
                '}';
    }
@param position int array of 4 elements
                position[0] and position[1] are discarded
                position[2]-BeforeWindowData or OutputData or AfterWindowData, position[3]- which attribute
@return attribute
modules/siddhi-core/src/main/java/io/siddhi/core/event/stream/StreamEvent.java