提交 | 用户 | 时间
|
bb2880
|
1 |
package com.iailab.module.bpm.enums.definition; |
H |
2 |
|
|
3 |
import com.iailab.framework.common.core.IntArrayValuable; |
|
4 |
import lombok.Getter; |
|
5 |
import lombok.RequiredArgsConstructor; |
|
6 |
|
|
7 |
import java.util.Arrays; |
|
8 |
|
|
9 |
/** |
|
10 |
* BPM 用户任务的审批人为空时,处理类型枚举 |
|
11 |
* |
|
12 |
* @author hou |
|
13 |
*/ |
|
14 |
@RequiredArgsConstructor |
|
15 |
@Getter |
|
16 |
public enum BpmUserTaskAssignEmptyHandlerTypeEnum implements IntArrayValuable { |
|
17 |
|
|
18 |
APPROVE(1), // 自动通过 |
|
19 |
REJECT(2), // 自动拒绝 |
|
20 |
ASSIGN_USER(3), // 指定人员审批 |
|
21 |
ASSIGN_ADMIN(4), // 转交给流程管理员 |
|
22 |
; |
|
23 |
|
|
24 |
public static final int[] ARRAYS = Arrays.stream(values()).mapToInt(BpmUserTaskAssignEmptyHandlerTypeEnum::getType).toArray(); |
|
25 |
|
|
26 |
private final Integer type; |
|
27 |
|
|
28 |
@Override |
|
29 |
public int[] array() { |
|
30 |
return ARRAYS; |
|
31 |
} |
|
32 |
|
|
33 |
} |