public static ScheduleStatus forCode(int code) {
        for (ScheduleStatus status : values()) {
            if (status.getCode() == code) {
                return status;
            }
        }
        throw new IllegalStateException(String.format("Illegal code=%s for ScheduleStatus", code));
    }
Status for schedule info.
This is the transient status of the schedule info.
With specified operations, the status will change to corresponding value.
 Status                Operations
 NEW                   inlong group created with schedule info
 APPROVED              the new inlong group approved by admin
 REGISTERED            schedule info registered to schedule engine
 UPDATED               update schedule info for a group
 DELETED               delete a group
inlong-manager/manager-common/src/main/java/org/apache/inlong/manager/common/enums/ScheduleStatus.java