public int createScheduleForProcessDef(String url, long processDefCode, String token, ScheduleInfo scheduleInfo) {
        try {
            return DolphinScheduleUtils.createScheduleForProcessDef(url, processDefCode, token,
                    scheduleInfo);
        } catch (Exception e) {
            LOGGER.error("Unexpected wrong in creating schedule for process definition: ", e);
            throw new DolphinScheduleException(UNEXPECTED_ERROR,
                    String.format("Unexpected wrong in creating schedule for process definition: %s", e.getMessage()));
        }
    }
Create a schedule for process definition in DolphinScheduler.
inlong-manager/manager-schedule/src/main/java/org/apache/inlong/manager/schedule/dolphinscheduler/DolphinScheduleOperator.java