content: /*
   * Copyright (c) 2024, Alibaba Cloud;
   * Licensed under the Apache License, Version 2.0 (the "License");
   * you may not use this file except in compliance with the License.
   * You may obtain a copy of the License at
   *
   *    http://www.apache.org/licenses/LICENSE-2.0
   *
   * Unless required by applicable law or agreed to in writing, software
   * distributed under the License is distributed on an "AS IS" BASIS,
   * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
   * See the License for the specific language governing permissions and
   * limitations under the License.
   */
  
  package com.aliyun.dataworks.migrationx.domain.dataworks.dolphinscheduler.v3.v301;
  
  import java.util.Date;
  import java.util.List;
  import java.util.Map;
  
  import com.aliyun.dataworks.migrationx.domain.dataworks.dolphinscheduler.v3.enums.Flag;
  import com.aliyun.dataworks.migrationx.domain.dataworks.dolphinscheduler.v3.model.Property;
  import lombok.Data;
  import lombok.EqualsAndHashCode;
  import lombok.ToString;
  import lombok.experimental.Accessors;
  
  /**
   * @author 聿剑
   * @date 2022/10/12
   */
  @Data
  @ToString
  @Accessors(chain = true)
  @EqualsAndHashCode
  public class ProcessDefinition {
  
      /**
       * id
       */
      private int id;
  
      /**
       * code
       */
      private long code;
  
      /**
       * name
       */
      private String name;
  
      /**
       * version
       */
      private int version;
  
      /**
       * release state : online/offline
       */
      private ReleaseState releaseState;
  
      /**
       * project code
       */
      private long projectCode;
  
      /**
       * description
       */
      private String description;
  
      /**
       * user defined parameters
       */
      private String globalParams;
  
      /**
       * user defined parameter list
       */
      private List<Property> globalParamList;
  
      /**
       * user define parameter map
       */
      private Map<String, String> globalParamMap;
  
      /**
       * create time
       */
      private Date createTime;
  
      /**
       * update time
       */
      private Date updateTime;
  
      /**
       * process is valid: yes/no
       */
      private Flag flag;
  
      /**
       * process user id
       */
      private int userId;
  
      /**
       * username
       */
      private String userName;
  
      /**
       * project name
       */
      private String projectName;
  
      /**
       * locations array for web
       */
      private String locations;
  
      /**
       * schedule release state : online/offline
       */
      private ReleaseState scheduleReleaseState;
  
      /**
       * process warning time out. unit: minute
       */
      private int timeout;
  
      /**
       * tenant id
       */
      private int tenantId;
  
      /**
       * tenant code
       */
      private String tenantCode;
  
      /**
       * modify user name
       */
      private String modifyBy;
  
      /**
       * warningGroupId
       */
      private Integer warningGroupId;
  
      /**
       * execution type
       */
      private ProcessExecutionTypeEnum executionType;
  }
  