Package com.bytedesk.service.form_result
Enum Class FormResultStatusEnum
- All Implemented Interfaces:
Serializable,Comparable<FormResultStatusEnum>,Constable
表单结果状态枚举
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescription已关闭状态 - 表单处理流程已关闭草稿状态 - 表单数据已保存但未正式提交需要补充状态 - 表单信息不完整,需要用户补充已处理状态 - 表单结果已完成处理处理中状态 - 表单结果正在被处理已拒绝状态 - 表单提交被拒绝已提交状态 - 表单已正式提交,等待处理 -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic FormResultStatusEnum根据字符串查找对应的枚举常量boolean检查是否为活跃状态(需要处理)boolean检查是否为最终状态(不可再变更)static FormResultStatusEnumReturns the enum constant of this class with the specified name.static FormResultStatusEnum[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
DRAFT
草稿状态 - 表单数据已保存但未正式提交 -
SUBMITTED
已提交状态 - 表单已正式提交,等待处理 -
PROCESSING
处理中状态 - 表单结果正在被处理 -
PROCESSED
已处理状态 - 表单结果已完成处理 -
PENDING_SUPPLEMENT
需要补充状态 - 表单信息不完整,需要用户补充 -
CLOSED
已关闭状态 - 表单处理流程已关闭 -
REJECTED
已拒绝状态 - 表单提交被拒绝
-
-
Constructor Details
-
FormResultStatusEnum
private FormResultStatusEnum()
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)- Parameters:
name- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException- if this enum class has no constant with the specified nameNullPointerException- if the argument is null
-
fromValue
根据字符串查找对应的枚举常量- Parameters:
value- 字符串值- Returns:
- 对应的枚举常量,找不到时返回SUBMITTED
-
isFinalStatus
public boolean isFinalStatus()检查是否为最终状态(不可再变更)- Returns:
- true if it's a final status
-
isActiveStatus
public boolean isActiveStatus()检查是否为活跃状态(需要处理)- Returns:
- true if it's an active status
-