public static ProcessingMode findUpdatedProcessingMode(
            ProcessingMode currentProcessingMode,
            ProcessingMode updatingProcessingMode) {
        ProcessingMode overallProcessingMode = currentProcessingMode;
        switch (updatingProcessingMode) {
            case BATCH:
                break;
            case RESET:
                switch (overallProcessingMode) {
                    case SLIDE:
                        break;
                    case HOP:
                        break;
                    case GROUP:
                        break;
                    case RESET:
                    case BATCH:
                        overallProcessingMode = ProcessingMode.RESET;
                        break;
                }
                break;
            case HOP:
                switch (overallProcessingMode) {
                    case HOP:
                        break;
                    case BATCH:
                    case RESET:
                        overallProcessingMode = ProcessingMode.HOP;
                        break;
                    case SLIDE:
                    case GROUP:
                        overallProcessingMode = ProcessingMode.SLIDE;
                        break;
                }
                break;
            case GROUP:
                switch (overallProcessingMode) {
                    case GROUP:
                        break;
                    case BATCH:
                    case RESET:
                        overallProcessingMode = ProcessingMode.GROUP;
                        break;
                    case SLIDE:
                    case HOP:
                        overallProcessingMode = ProcessingMode.SLIDE;
                        break;
                }
                break;
            case SLIDE:
                overallProcessingMode = ProcessingMode.SLIDE;
                break;
        }
        return overallProcessingMode;
    }
The processing modes supported by Stream Processors
modules/siddhi-core/src/main/java/io/siddhi/core/query/processor/ProcessingMode.java