mirror of
				https://gitee.com/hhyykk/ipms-sjy.git
				synced 2025-10-31 10:18:42 +08:00 
			
		
		
		
	回退 'Pull Request !937 : feat: 客户成交周期分析(按区域、按产品)'
This commit is contained in:
		| @@ -75,8 +75,4 @@ public interface ErrorCodeConstants { | ||||
|     // ========== BPM 流程表达式 1-009-014-000 ========== | ||||
|     ErrorCode PROCESS_EXPRESSION_NOT_EXISTS = new ErrorCode(1_009_014_000, "流程表达式不存在"); | ||||
|  | ||||
|     // ========== BPM 仿钉钉流程设计器 1-009-015-000 ========== | ||||
|     // TODO @芋艿:这个错误码,需要关注下 | ||||
|     ErrorCode CONVERT_TO_SIMPLE_MODEL_NOT_SUPPORT = new ErrorCode(1_009_015_000, "该流程模型不支持仿钉钉设计流程"); | ||||
|  | ||||
| } | ||||
|   | ||||
| @@ -1,47 +0,0 @@ | ||||
| package cn.iocoder.yudao.module.bpm.enums.definition; | ||||
|  | ||||
| import cn.hutool.core.util.ArrayUtil; | ||||
| import cn.iocoder.yudao.framework.common.core.IntArrayValuable; | ||||
| import lombok.AllArgsConstructor; | ||||
| import lombok.Getter; | ||||
|  | ||||
| import java.util.Arrays; | ||||
| import java.util.Objects; | ||||
|  | ||||
| /** | ||||
|  * 仿钉钉的流程器设计器的模型节点类型 | ||||
|  * | ||||
|  * @author jason | ||||
|  */ | ||||
| @Getter | ||||
| @AllArgsConstructor | ||||
| public enum BpmSimpleModelNodeType implements IntArrayValuable { | ||||
|  | ||||
|     // TODO @jaosn:-1、0、1、4、-2 是前端已经定义好的么?感觉未来可以考虑搞成和 BPMN 尽量一致的单词哈;类似 usertask 用户审批; | ||||
|     START_EVENT_NODE(0, "开始节点"), | ||||
|     APPROVE_USER_NODE (1, "审批人节点"), | ||||
|     // 抄送人节点、对应 BPMN 的 ScriptTask. 使用ScriptTask 原因。好像 ServiceTask 自定义属性不能写入 XML | ||||
|     SCRIPT_TASK_NODE(2, "抄送人节点"), | ||||
|     EXCLUSIVE_GATEWAY_NODE(4, "排他网关"), | ||||
|     END_EVENT_NODE(-2, "结束节点"); | ||||
|  | ||||
|     public static final int[] ARRAYS = Arrays.stream(values()).mapToInt(BpmSimpleModelNodeType::getType).toArray(); | ||||
|  | ||||
|     private final Integer type; | ||||
|     private final String name; | ||||
|  | ||||
|     public static boolean isGatewayNode(Integer type) { | ||||
|         // TODO 后续增加并行网关的支持 | ||||
|         return Objects.equals(EXCLUSIVE_GATEWAY_NODE.getType(), type); | ||||
|     } | ||||
|  | ||||
|     public static BpmSimpleModelNodeType valueOf(Integer type) { | ||||
|         return ArrayUtil.firstMatch(nodeType -> nodeType.getType().equals(type), values()); | ||||
|     } | ||||
|  | ||||
|     @Override | ||||
|     public int[] array() { | ||||
|         return ARRAYS; | ||||
|     } | ||||
|  | ||||
| } | ||||
		Reference in New Issue
	
	Block a user
	 芋道源码
					芋道源码