@Override
    public String toString() {

        return "NextStateElement{" +
                "stateElement=" + stateElement +
                ", nextStateElement=" + nextStateElement +
                '}';
    }
Next state element used in patterns to link states
modules/siddhi-query-api/src/main/java/io/siddhi/query/api/execution/query/input/state/NextStateElement.java