仿钉钉流程设计- 调整排他网关和条件节点

This commit is contained in:
jason
2024-04-30 00:07:58 +08:00
parent 1bd96eb13e
commit 4958aaea81
3 changed files with 81 additions and 15 deletions

View File

@ -0,0 +1,25 @@
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 BpmSimpleModeConditionType {
CUSTOM_EXPRESSION(1, "自定义条件表达式");
private final Integer type;
private final String name;
public static BpmSimpleModeConditionType valueOf(Integer type) {
return ArrayUtil.firstMatch(nodeType -> nodeType.getType().equals(type), values());
}
}