提交 | 用户 | 时间
|
bb2880
|
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 |
* 用户任务超时处理类型枚举 |
|
11 |
* |
|
12 |
* @author hou |
|
13 |
*/ |
|
14 |
@Getter |
|
15 |
@AllArgsConstructor |
|
16 |
public enum BpmUserTaskTimeoutHandlerTypeEnum implements IntArrayValuable { |
|
17 |
|
|
18 |
REMINDER(1,"自动提醒"), |
|
19 |
APPROVE(2, "自动同意"), |
|
20 |
REJECT(3, "自动拒绝"); |
|
21 |
|
|
22 |
private final Integer type; |
|
23 |
private final String name; |
|
24 |
|
|
25 |
public static final int[] ARRAYS = Arrays.stream(values()).mapToInt(BpmUserTaskTimeoutHandlerTypeEnum::getType).toArray(); |
|
26 |
|
|
27 |
@Override |
|
28 |
public int[] array() { |
|
29 |
return ARRAYS; |
|
30 |
} |
|
31 |
|
|
32 |
} |