public boolean setFailResult(ProcessResult other) {
        this.errCode = other.getErrCode();
        this.errMsg = other.getErrMsg();
        this.retData = other.getRetData();
        return isSuccess();
    }
Process Result class

Used to return the result of task processing
inlong-sdk/dataproxy-sdk/src/main/java/org/apache/inlong/sdk/dataproxy/common/ProcessResult.java