提交 | 用户 | 时间
|
e7c126
|
1 |
package com.iailab.module.bpm.enums.definition; |
H |
2 |
|
|
3 |
import com.iailab.framework.common.core.IntArrayValuable; |
|
4 |
import lombok.AllArgsConstructor; |
|
5 |
import lombok.Getter; |
|
6 |
|
|
7 |
import java.util.Arrays; |
|
8 |
|
|
9 |
/** |
|
10 |
* BPM 模型的表单类型的枚举 |
|
11 |
* |
bb2880
|
12 |
* @author hou |
e7c126
|
13 |
*/ |
H |
14 |
@Getter |
|
15 |
@AllArgsConstructor |
|
16 |
public enum BpmModelFormTypeEnum implements IntArrayValuable { |
|
17 |
|
|
18 |
NORMAL(10, "流程表单"), // 对应 BpmFormDO |
|
19 |
CUSTOM(20, "业务表单") // 业务自己定义的表单,自己进行数据的存储 |
|
20 |
; |
|
21 |
|
|
22 |
public static final int[] ARRAYS = Arrays.stream(values()).mapToInt(BpmModelFormTypeEnum::getType).toArray(); |
|
23 |
|
|
24 |
private final Integer type; |
|
25 |
private final String name; |
|
26 |
|
|
27 |
@Override |
|
28 |
public int[] array() { |
|
29 |
return ARRAYS; |
|
30 |
} |
|
31 |
|
|
32 |
} |