提交 | 用户 | 时间
|
bb2880
|
1 |
package com.iailab.module.bpm.enums.definition; |
H |
2 |
|
|
3 |
import cn.hutool.core.util.ArrayUtil; |
|
4 |
import lombok.AllArgsConstructor; |
|
5 |
import lombok.Getter; |
|
6 |
|
|
7 |
/** |
|
8 |
* BPM 边界事件 (boundary event) 自定义类型枚举 |
|
9 |
* |
|
10 |
* @author hou |
|
11 |
*/ |
|
12 |
@Getter |
|
13 |
@AllArgsConstructor |
|
14 |
public enum BpmBoundaryEventType { |
|
15 |
|
|
16 |
USER_TASK_TIMEOUT(1,"用户任务超时"); |
|
17 |
|
|
18 |
private final Integer type; |
|
19 |
private final String name; |
|
20 |
|
|
21 |
public static BpmBoundaryEventType typeOf(Integer type) { |
|
22 |
return ArrayUtil.firstMatch(eventType -> eventType.getType().equals(type), values()); |
|
23 |
} |
|
24 |
|
|
25 |
} |