mirror of
https://gitee.com/hhyykk/ipms-sjy.git
synced 2025-07-23 07:25:07 +08:00
仿钉钉流程设计- 审批节点超时处理
This commit is contained in:
@ -0,0 +1,24 @@
|
||||
package cn.iocoder.yudao.module.bpm.enums.definition;
|
||||
|
||||
import cn.hutool.core.util.ArrayUtil;
|
||||
import lombok.AllArgsConstructor;
|
||||
import lombok.Getter;
|
||||
|
||||
/**
|
||||
* 定时器边界事件类型枚举
|
||||
*
|
||||
* @author jason
|
||||
*/
|
||||
@Getter
|
||||
@AllArgsConstructor
|
||||
public enum BpmTimerBoundaryEventType {
|
||||
|
||||
USER_TASK_TIMEOUT(1,"用户任务超时");
|
||||
|
||||
private final Integer type;
|
||||
private final String name;
|
||||
|
||||
public static BpmTimerBoundaryEventType typeOf(Integer type) {
|
||||
return ArrayUtil.firstMatch(eventType -> eventType.getType().equals(type), values());
|
||||
}
|
||||
}
|
@ -0,0 +1,26 @@
|
||||
package cn.iocoder.yudao.module.bpm.enums.definition;
|
||||
|
||||
import cn.hutool.core.util.ArrayUtil;
|
||||
import lombok.AllArgsConstructor;
|
||||
import lombok.Getter;
|
||||
|
||||
/**
|
||||
* 用户任务超时处理执行动作枚举
|
||||
*
|
||||
* @author jason
|
||||
*/
|
||||
@Getter
|
||||
@AllArgsConstructor
|
||||
public enum BpmUserTaskTimeoutActionEnum {
|
||||
|
||||
AUTO_REMINDER(1,"自动提醒"),
|
||||
AUTO_APPROVE(2, "自动同意"),
|
||||
AUTO_REJECT(3, "自动拒绝");
|
||||
|
||||
private final Integer action;
|
||||
private final String name;
|
||||
|
||||
public static BpmUserTaskTimeoutActionEnum actionOf(Integer action) {
|
||||
return ArrayUtil.firstMatch(item -> item.getAction().equals(action), values());
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user