public static boolean releaseProcessDef(String processDefUrl, long processDefCode,
            String token, String status) {
        try {
            String url = processDefUrl + "/" + processDefCode + DS_RELEASE_URL;
            Map<String, String> header = buildHeader(token);

            Map<String, String> queryParam = new HashMap<>();
            queryParam.put(DS_RELEASE_STATE, status);

            JsonObject response = executeHttpRequest(url, POST, queryParam, header);
            LOGGER.info("release process definition success, response data: {}", response);

            return response.get(DS_RESPONSE_DATA).getAsBoolean();

        } catch (JsonParseException e) {
            LOGGER.error("JsonParseException during releasing process definition", e);
            throw new DolphinScheduleException(
                    JSON_PARSE_ERROR,
                    String.format("Error releasing process definition with code: %d and status: %s at URL: %s",
                            processDefCode, status, processDefUrl));

        } catch (DolphinScheduleException e) {
            throw new DolphinScheduleException(
                    PROCESS_DEFINITION_RELEASE_FAILED,
                    String.format("Error releasing process definition with code: %d and status: %s at URL: %s",
                            processDefCode, status, processDefUrl));
        }
    }
Releases a process definition in DolphinScheduler.

@param processDefUrl The URL to release the process definition.
@param processDefCode The ID of the process definition.
@param token          The authentication token to be used in the request header.
@param status         The status to set for the process definition (e.g., "online" or "offline").
@return true if the process definition was successfully released, false otherwise.
inlong-manager/manager-schedule/src/main/java/org/apache/inlong/manager/schedule/dolphinscheduler/DolphinScheduleUtils.java