提交 | 用户 | 时间
|
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 BpmUserTaskApproveTypeEnum implements IntArrayValuable { |
|
17 |
|
|
18 |
USER(1), // 人工审批 |
|
19 |
AUTO_APPROVE(2), // 自动通过 |
|
20 |
AUTO_REJECT(3); // 自动拒绝 |
|
21 |
|
|
22 |
public static final int[] ARRAYS = Arrays.stream(values()).mapToInt(BpmUserTaskApproveTypeEnum::getType).toArray(); |
|
23 |
|
|
24 |
private final Integer type; |
|
25 |
|
|
26 |
@Override |
|
27 |
public int[] array() { |
|
28 |
return ARRAYS; |
|
29 |
} |
|
30 |
|
|
31 |
} |