| | |
| | | package com.iailab.module.bpm.enums.definition; |
| | | |
| | | import com.iailab.framework.common.core.IntArrayValuable; |
| | | import com.iailab.framework.common.core.ArrayValuable; |
| | | import lombok.AllArgsConstructor; |
| | | import lombok.Getter; |
| | | |
| | |
| | | /** |
| | | * BPM 模型的表单类型的枚举 |
| | | * |
| | | * @author iailab |
| | | * @author hou |
| | | */ |
| | | @Getter |
| | | @AllArgsConstructor |
| | | public enum BpmModelFormTypeEnum implements IntArrayValuable { |
| | | public enum BpmModelFormTypeEnum implements ArrayValuable { |
| | | |
| | | NORMAL(10, "流程表单"), // 对应 BpmFormDO |
| | | CUSTOM(20, "业务表单") // 业务自己定义的表单,自己进行数据的存储 |
| | | ; |
| | | |
| | | public static final int[] ARRAYS = Arrays.stream(values()).mapToInt(BpmModelFormTypeEnum::getType).toArray(); |
| | | public static final Integer[] ARRAYS = Arrays.stream(values()).map(BpmModelFormTypeEnum::getType).toArray(Integer[]::new); |
| | | |
| | | private final Integer type; |
| | | private final String name; |
| | | |
| | | @Override |
| | | public int[] array() { |
| | | public Integer[] array() { |
| | | return ARRAYS; |
| | | } |
| | | |