1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
| package com.iailab.module.bpm.enums.definition;
|
| import com.iailab.framework.common.core.IntArrayValuable;
| import lombok.AllArgsConstructor;
| import lombok.Getter;
|
| import java.util.Arrays;
|
| /**
| * 用户任务超时处理类型枚举
| *
| * @author hou
| */
| @Getter
| @AllArgsConstructor
| public enum BpmUserTaskTimeoutHandlerTypeEnum implements IntArrayValuable {
|
| REMINDER(1,"自动提醒"),
| APPROVE(2, "自动同意"),
| REJECT(3, "自动拒绝");
|
| private final Integer type;
| private final String name;
|
| public static final int[] ARRAYS = Arrays.stream(values()).mapToInt(BpmUserTaskTimeoutHandlerTypeEnum::getType).toArray();
|
| @Override
| public int[] array() {
| return ARRAYS;
| }
|
| }
|
|