提交 | 用户 | 时间
|
e7c126
|
1 |
package com.iailab.module.bpm.enums.task; |
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 |
* 流程实例 ProcessInstance 的状态 |
|
11 |
* |
|
12 |
* @author iailab |
|
13 |
*/ |
|
14 |
@Getter |
|
15 |
@AllArgsConstructor |
|
16 |
public enum BpmProcessInstanceStatusEnum implements IntArrayValuable { |
|
17 |
|
|
18 |
RUNNING(1, "审批中"), |
|
19 |
APPROVE(2, "审批通过"), |
|
20 |
REJECT(3, "审批不通过"), |
|
21 |
CANCEL(4, "已取消"); |
|
22 |
|
|
23 |
public static final int[] ARRAYS = Arrays.stream(values()).mapToInt(BpmProcessInstanceStatusEnum::getStatus).toArray(); |
|
24 |
|
|
25 |
/** |
|
26 |
* 状态 |
|
27 |
*/ |
|
28 |
private final Integer status; |
|
29 |
/** |
|
30 |
* 描述 |
|
31 |
*/ |
|
32 |
private final String desc; |
|
33 |
|
|
34 |
@Override |
|
35 |
public int[] array() { |
|
36 |
return new int[0]; |
|
37 |
} |
|
38 |
|
|
39 |
} |