package com.iailab.module.bpm.enums.definition;
|
|
import cn.hutool.core.util.ArrayUtil;
|
import lombok.AllArgsConstructor;
|
import lombok.Getter;
|
|
/**
|
* BPM 边界事件 (boundary event) 自定义类型枚举
|
*
|
* @author hou
|
*/
|
@Getter
|
@AllArgsConstructor
|
public enum BpmBoundaryEventType {
|
|
USER_TASK_TIMEOUT(1,"用户任务超时");
|
|
private final Integer type;
|
private final String name;
|
|
public static BpmBoundaryEventType typeOf(Integer type) {
|
return ArrayUtil.firstMatch(eventType -> eventType.getType().equals(type), values());
|
}
|
|
}
|