odps-console-xflow/src/main/java/com/aliyun/openservices/odps/console/xflow/CopyOfflineModelCommand.java [90:107]:
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
      if (instance.isSuccessful()) {
        getWriter().writeError("OK");
      } else {
        for (Map.Entry<String, Instance.TaskStatus> e : instance.getTaskStatus().entrySet()) {
          if (e.getValue().getStatus() == Instance.TaskStatus.Status.FAILED) {
            throw new OdpsException(instance.getTaskResults().get(e.getKey()));
          } else if (e.getValue().getStatus() != Instance.TaskStatus.Status.SUCCESS) {
            throw new OdpsException(e.getKey() + ", Status=" + e.getValue().getStatus());
          }
        }
      }
    } catch (InterruptedException e) {
      throw new UserInterruptException(e.getMessage());
    }
  }

  private static Options getOptions() {
    Options options = new Options();
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -



odps-console-xflow/src/main/java/com/aliyun/openservices/odps/console/xflow/CreateOfflineModelCommand.java [110:127]:
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
      if (instance.isSuccessful()) {
        getWriter().writeError("OK");
      } else {
        for (Map.Entry<String, Instance.TaskStatus> e : instance.getTaskStatus().entrySet()) {
          if (e.getValue().getStatus() == Instance.TaskStatus.Status.FAILED) {
            throw new OdpsException(instance.getTaskResults().get(e.getKey()));
          } else if (e.getValue().getStatus() != Instance.TaskStatus.Status.SUCCESS) {
            throw new OdpsException(e.getKey() + ", Status=" + e.getValue().getStatus());
          }
        }
      }
    } catch (InterruptedException e) {
      throw new UserInterruptException(e.getMessage());
    }
  }

  private static Options getOptions() {
    Options options = new Options();
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -



