private static String buildScript(String inlongManagerUrl, String username, String password, long offset,
            String groupId) {
        LOGGER.info("build script for Inlong Manager Url: {}, username: {}, password: {}, offset: {}, groupId: {}",
                inlongManagerUrl, username, password, offset, groupId);
        return "#!/bin/bash\n\n" +

        // Get current timestamp
                "# Get current timestamp\n" +
                "lowerBoundary=$(date +%s)\n" +
                "echo \"get lowerBoundary: ${lowerBoundary}\"\n" +
                "upperBoundary=$(($lowerBoundary + " + offset + "))\n" +
                "echo \"get upperBoundary: ${upperBoundary}\"\n\n" +

                // Set URL
                "# Set URL and HTTP method\n" +
                "url=\"" + inlongManagerUrl + SHELL_REQUEST_API +
                "?username=" + username + "&password=" + password + "\"\n" +
                "echo \"get url: ${url}\"\n" +

                // Set HTTP method
                "httpMethod=\"POST\"\n\n" +

                // Set request body
                "# Build request body\n" +
                "jsonBody=$(cat <<EOF\n" +
                "{\n" +
                "  \"boundaryType\": \"" + BoundaryType.TIME.getType() + "\",\n" +
                "  \"groupId\": \"" + groupId + "\",\n" +
                "  \"lowerBoundary\": \"${lowerBoundary}\",\n" +
                "  \"upperBoundary\": \"${upperBoundary}\"\n" +
                "}\n" +
                "EOF\n)\n\n" +
                "echo \"${jsonBody}\"\n\n" +

                // Send request
                "# Send request\n" +
                "response=$(curl -s -X \"$httpMethod\" \"$url\" \\\n" +
                "  -H \"" + CONTENT_TYPE + "\" \\\n" +
                "  -d \"$jsonBody\")\n\n" +

                // Log response
                "# Log response\n" +
                "echo \"Request Sending success, Response: $response\"";
    }
Shell node in DolphinScheduler need to write in a script
When process definition schedule run, the shell node run,
Call back in inlong, sending a request with parameters required
inlong-manager/manager-schedule/src/main/java/org/apache/inlong/manager/schedule/dolphinscheduler/DolphinScheduleUtils.java