| File was renamed from dyh-service/dyh-base/src/main/java/cn/huge/module/mediate/constant/FlowNodeBaseEnum.java |
| | |
| | | package cn.huge.module.mediate.constant; |
| | | package cn.huge.module.flow.consts; |
| | | |
| | | /** |
| | | * @title": 工作流节点枚举类 |
| | |
| | | * @time": 2021-11-05 16":51":48 |
| | | * @version": 1.0.0 |
| | | */ |
| | | public enum FlowNodeBaseEnum { |
| | | public enum FlowNodeEnum { |
| | | |
| | | /** |
| | | * 节点 |
| | |
| | | this.des = des; |
| | | } |
| | | |
| | | FlowNodeBaseEnum(String index, String des) { |
| | | FlowNodeEnum(String index, String des) { |
| | | this.index = index; |
| | | this.des = des; |
| | | } |
| | |
| | | * @return |
| | | */ |
| | | public static String getDes(String index) { |
| | | for (FlowNodeBaseEnum flowNodeBaseEnum : FlowNodeBaseEnum.values()) { |
| | | if (flowNodeBaseEnum.getIndex().equals(index)) { |
| | | return flowNodeBaseEnum.des; |
| | | for (FlowNodeEnum flowNodeEnum : FlowNodeEnum.values()) { |
| | | if (flowNodeEnum.getIndex().equals(index)) { |
| | | return flowNodeEnum.des; |
| | | } |
| | | } |
| | | return null; |
| | |
| | | * @return |
| | | */ |
| | | public static String getIndex(String des) { |
| | | for (FlowNodeBaseEnum flowNodeBaseEnum : FlowNodeBaseEnum.values()) { |
| | | if (flowNodeBaseEnum.getDes().equals(des)) { |
| | | return flowNodeBaseEnum.index; |
| | | for (FlowNodeEnum flowNodeEnum : FlowNodeEnum.values()) { |
| | | if (flowNodeEnum.getDes().equals(des)) { |
| | | return flowNodeEnum.index; |
| | | } |
| | | } |
| | | return null; |
| | |
| | | * @param index |
| | | * @return |
| | | */ |
| | | public static FlowNodeBaseEnum getByIndex(final String index) { |
| | | public static FlowNodeEnum getByIndex(final String index) { |
| | | switch (index) { |
| | | case "ZXSL": |
| | | return FLOW_NODE_ZXSL; |