feat: Simple设计器-监听器

This commit is contained in:
Lesan
2025-01-06 17:24:59 +08:00
parent 6a7e7e3e44
commit 46c125b030
4 changed files with 161 additions and 0 deletions

View File

@@ -0,0 +1,31 @@
package cn.iocoder.yudao.module.bpm.enums.definition;
import cn.iocoder.yudao.framework.common.core.IntArrayValuable;
import lombok.AllArgsConstructor;
import lombok.Getter;
import java.util.Arrays;
/**
* BPM 任务监听器键值对类型
*
* @author Lesan
*/
@Getter
@AllArgsConstructor
public enum BpmListenerMapType implements IntArrayValuable {
FIXED_VALUE(1, "固定值"),
FROM_FORM(2, "表单");
private final Integer type;
private final String name;
public static final int[] ARRAYS = Arrays.stream(values()).mapToInt(BpmListenerMapType::getType).toArray();
@Override
public int[] array() {
return ARRAYS;
}
}