@ -17,7 +17,6 @@
package org.apache.dolphinscheduler.common.enums;
import com.baomidou.mybatisplus.annotation.EnumValue;
import lombok.Getter;
/**
* have_script
@ -27,7 +26,6 @@ import lombok.Getter;
* have_map_variables
* have_alert
*/
@Getter
public enum Flag {
* 0 no
@ -45,4 +43,12 @@ public enum Flag {
@EnumValue
private final int code;
private final String descp;
public int getCode() {
return code;
}
public String getDescp() {
return descp;
@ -17,12 +17,10 @@
* define process and task priority
public enum Priority {
* 0 highest priority
@ -46,4 +44,11 @@ public enum Priority {
* resource type
public enum ResourceType {
* 0 file, 1 udf
@ -39,4 +37,12 @@ public enum ResourceType {
* show type for email
public enum ShowType {
* 0 TABLE;
@ -44,4 +42,12 @@ public enum ShowType {
* task node type
public enum TaskType {
* 0 SHELL
@ -61,4 +59,11 @@ public enum TaskType {
return !(taskType == TaskType.SUB_PROCESS || taskType == TaskType.DEPENDENT);
* user type
public enum UserType {
* 0 admin user; 1 general user
@ -39,5 +37,13 @@ public enum UserType {