|
|
@ -3,6 +3,8 @@ package cn.estsh.i3plus.pojo.base.enumutil;
|
|
|
|
import com.fasterxml.jackson.annotation.JsonFormat;
|
|
|
|
import com.fasterxml.jackson.annotation.JsonFormat;
|
|
|
|
import org.springframework.util.StringUtils;
|
|
|
|
import org.springframework.util.StringUtils;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
import static cn.estsh.i3plus.pojo.base.enumutil.PtlPcnEnumUtil.MONITOR_PROCESS_MESSAGE_TYPE.*;
|
|
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
/**
|
|
|
|
* @author Wynne.Lu
|
|
|
|
* @author Wynne.Lu
|
|
|
|
* @date 2020/2/12 17:41
|
|
|
|
* @date 2020/2/12 17:41
|
|
|
@ -547,8 +549,11 @@ public class PtlPcnEnumUtil {
|
|
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
|
|
|
* 状态机执行方法
|
|
|
|
|
|
|
|
*/
|
|
|
|
@JsonFormat(shape = JsonFormat.Shape.OBJECT)
|
|
|
|
@JsonFormat(shape = JsonFormat.Shape.OBJECT)
|
|
|
|
public enum RouteEvent {
|
|
|
|
public enum ROUTE_EVENT {
|
|
|
|
TRIGGER(10, "trigger", "触发"),
|
|
|
|
TRIGGER(10, "trigger", "触发"),
|
|
|
|
ENTRY(20, "entry", "进入状态"),
|
|
|
|
ENTRY(20, "entry", "进入状态"),
|
|
|
|
EXIT(30, "exit", "离开状态");
|
|
|
|
EXIT(30, "exit", "离开状态");
|
|
|
@ -557,7 +562,7 @@ public class PtlPcnEnumUtil {
|
|
|
|
private String code;
|
|
|
|
private String code;
|
|
|
|
private String description;
|
|
|
|
private String description;
|
|
|
|
|
|
|
|
|
|
|
|
RouteEvent(int value, String code, String description) {
|
|
|
|
ROUTE_EVENT(int value, String code, String description) {
|
|
|
|
this.value = value;
|
|
|
|
this.value = value;
|
|
|
|
this.code = code;
|
|
|
|
this.code = code;
|
|
|
|
this.description = description;
|
|
|
|
this.description = description;
|
|
|
@ -576,8 +581,11 @@ public class PtlPcnEnumUtil {
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
|
|
|
* 流程状态
|
|
|
|
|
|
|
|
*/
|
|
|
|
@JsonFormat(shape = JsonFormat.Shape.OBJECT)
|
|
|
|
@JsonFormat(shape = JsonFormat.Shape.OBJECT)
|
|
|
|
public enum RouteState {
|
|
|
|
public enum ROUTE_STATE {
|
|
|
|
START(10, "START", "开启流程"),
|
|
|
|
START(10, "START", "开启流程"),
|
|
|
|
TERMINATE(20, "TERMINATE", "终止流程"),
|
|
|
|
TERMINATE(20, "TERMINATE", "终止流程"),
|
|
|
|
FINISH(30, "FINISH", "结束流程");
|
|
|
|
FINISH(30, "FINISH", "结束流程");
|
|
|
@ -586,7 +594,7 @@ public class PtlPcnEnumUtil {
|
|
|
|
private String code;
|
|
|
|
private String code;
|
|
|
|
private String description;
|
|
|
|
private String description;
|
|
|
|
|
|
|
|
|
|
|
|
RouteState(int value, String code, String description) {
|
|
|
|
ROUTE_STATE(int value, String code, String description) {
|
|
|
|
this.value = value;
|
|
|
|
this.value = value;
|
|
|
|
this.code = code;
|
|
|
|
this.code = code;
|
|
|
|
this.description = description;
|
|
|
|
this.description = description;
|
|
|
@ -605,6 +613,9 @@ public class PtlPcnEnumUtil {
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
|
|
|
* 标签类型
|
|
|
|
|
|
|
|
*/
|
|
|
|
@JsonFormat(shape = JsonFormat.Shape.OBJECT)
|
|
|
|
@JsonFormat(shape = JsonFormat.Shape.OBJECT)
|
|
|
|
public enum TAG_TYPE {
|
|
|
|
public enum TAG_TYPE {
|
|
|
|
BIN_TAG(10, "库位标签"),
|
|
|
|
BIN_TAG(10, "库位标签"),
|
|
|
@ -639,15 +650,18 @@ public class PtlPcnEnumUtil {
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
|
|
|
* 流程状态-触发类型
|
|
|
|
|
|
|
|
*/
|
|
|
|
@JsonFormat(shape = JsonFormat.Shape.OBJECT)
|
|
|
|
@JsonFormat(shape = JsonFormat.Shape.OBJECT)
|
|
|
|
public enum TriggerType {
|
|
|
|
public enum TRIGGER_TYPE {
|
|
|
|
INNER_TRIGGER(10, "内部触发"),
|
|
|
|
INNER_TRIGGER(10, "内部触发"),
|
|
|
|
OUTER_TRIGGER(20, "外部触发");
|
|
|
|
OUTER_TRIGGER(20, "外部触发");
|
|
|
|
|
|
|
|
|
|
|
|
private int value;
|
|
|
|
private int value;
|
|
|
|
private String description;
|
|
|
|
private String description;
|
|
|
|
|
|
|
|
|
|
|
|
TriggerType(int value, String description) {
|
|
|
|
TRIGGER_TYPE(int value, String description) {
|
|
|
|
this.value = value;
|
|
|
|
this.value = value;
|
|
|
|
this.description = description;
|
|
|
|
this.description = description;
|
|
|
|
}
|
|
|
|
}
|
|
|
@ -661,8 +675,11 @@ public class PtlPcnEnumUtil {
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
|
|
|
* 作业流程类型
|
|
|
|
|
|
|
|
*/
|
|
|
|
@JsonFormat(shape = JsonFormat.Shape.OBJECT)
|
|
|
|
@JsonFormat(shape = JsonFormat.Shape.OBJECT)
|
|
|
|
public enum RouteType {
|
|
|
|
public enum ACTION_ROUTE_TYPE {
|
|
|
|
GEN_TASK(10, "GEN_TASK", "生成任务"),
|
|
|
|
GEN_TASK(10, "GEN_TASK", "生成任务"),
|
|
|
|
OFF_TAG(20, "OFF_TAG", "灭灯");
|
|
|
|
OFF_TAG(20, "OFF_TAG", "灭灯");
|
|
|
|
|
|
|
|
|
|
|
@ -670,7 +687,7 @@ public class PtlPcnEnumUtil {
|
|
|
|
private String code;
|
|
|
|
private String code;
|
|
|
|
private String description;
|
|
|
|
private String description;
|
|
|
|
|
|
|
|
|
|
|
|
RouteType(int value, String code, String description) {
|
|
|
|
ACTION_ROUTE_TYPE(int value, String code, String description) {
|
|
|
|
this.value = value;
|
|
|
|
this.value = value;
|
|
|
|
this.code = code;
|
|
|
|
this.code = code;
|
|
|
|
this.description = description;
|
|
|
|
this.description = description;
|
|
|
@ -689,6 +706,9 @@ public class PtlPcnEnumUtil {
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
|
|
|
* 监听消息类型
|
|
|
|
|
|
|
|
*/
|
|
|
|
@JsonFormat(shape = JsonFormat.Shape.OBJECT)
|
|
|
|
@JsonFormat(shape = JsonFormat.Shape.OBJECT)
|
|
|
|
public enum MONITOR_PROCESS_MESSAGE_TYPE {
|
|
|
|
public enum MONITOR_PROCESS_MESSAGE_TYPE {
|
|
|
|
CONNECT_CONTROL_CMD(10, "CONNECT_CONTROL_CMD", "connectControlService", "连接控制器"),
|
|
|
|
CONNECT_CONTROL_CMD(10, "CONNECT_CONTROL_CMD", "connectControlService", "连接控制器"),
|
|
|
@ -732,7 +752,7 @@ public class PtlPcnEnumUtil {
|
|
|
|
if (StringUtils.isEmpty(code)) {
|
|
|
|
if (StringUtils.isEmpty(code)) {
|
|
|
|
return null;
|
|
|
|
return null;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
for (MONITOR_PROCESS_MESSAGE_TYPE enums : MONITOR_PROCESS_MESSAGE_TYPE.values()) {
|
|
|
|
for (MONITOR_PROCESS_MESSAGE_TYPE enums : values()) {
|
|
|
|
if (enums.getCode().equals(code)) {
|
|
|
|
if (enums.getCode().equals(code)) {
|
|
|
|
return enums;
|
|
|
|
return enums;
|
|
|
|
}
|
|
|
|
}
|
|
|
@ -741,6 +761,9 @@ public class PtlPcnEnumUtil {
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
|
|
|
* 界面消息类型
|
|
|
|
|
|
|
|
*/
|
|
|
|
@JsonFormat(shape = JsonFormat.Shape.OBJECT)
|
|
|
|
@JsonFormat(shape = JsonFormat.Shape.OBJECT)
|
|
|
|
public enum INTERFACE_SIGNAL_MESSAGE_TYPE {
|
|
|
|
public enum INTERFACE_SIGNAL_MESSAGE_TYPE {
|
|
|
|
CONNECT_CONTROL_CMD(10, "CONNECT_CONTROL_CMD", "connectControlService", "连接控制器"),
|
|
|
|
CONNECT_CONTROL_CMD(10, "CONNECT_CONTROL_CMD", "connectControlService", "连接控制器"),
|
|
|
@ -794,7 +817,7 @@ public class PtlPcnEnumUtil {
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
/**
|
|
|
|
* 生成任务actor message type
|
|
|
|
* 任务消息类型
|
|
|
|
*/
|
|
|
|
*/
|
|
|
|
@JsonFormat(shape = JsonFormat.Shape.OBJECT)
|
|
|
|
@JsonFormat(shape = JsonFormat.Shape.OBJECT)
|
|
|
|
public enum GEN_TASK_MESSAGE_TYPE {
|
|
|
|
public enum GEN_TASK_MESSAGE_TYPE {
|
|
|
@ -841,8 +864,11 @@ public class PtlPcnEnumUtil {
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
|
|
|
* websocket业务类型
|
|
|
|
|
|
|
|
*/
|
|
|
|
@JsonFormat(shape = JsonFormat.Shape.OBJECT)
|
|
|
|
@JsonFormat(shape = JsonFormat.Shape.OBJECT)
|
|
|
|
public enum WsBusiType {
|
|
|
|
public enum WS_BUSI_TYPE {
|
|
|
|
MONITOR_PROCESS(10, "MONITOR_PROCESS", "控制器相关"),
|
|
|
|
MONITOR_PROCESS(10, "MONITOR_PROCESS", "控制器相关"),
|
|
|
|
INTERFACE_PROCESS(20, "INTERFACE_PROCESS", "界面处理");
|
|
|
|
INTERFACE_PROCESS(20, "INTERFACE_PROCESS", "界面处理");
|
|
|
|
|
|
|
|
|
|
|
@ -850,7 +876,7 @@ public class PtlPcnEnumUtil {
|
|
|
|
private String code;
|
|
|
|
private String code;
|
|
|
|
private String description;
|
|
|
|
private String description;
|
|
|
|
|
|
|
|
|
|
|
|
WsBusiType(int value, String code, String description) {
|
|
|
|
WS_BUSI_TYPE(int value, String code, String description) {
|
|
|
|
this.value = value;
|
|
|
|
this.value = value;
|
|
|
|
this.description = description;
|
|
|
|
this.description = description;
|
|
|
|
this.code = code;
|
|
|
|
this.code = code;
|
|
|
@ -869,8 +895,11 @@ public class PtlPcnEnumUtil {
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
|
|
|
* websocket消息类型
|
|
|
|
|
|
|
|
*/
|
|
|
|
@JsonFormat(shape = JsonFormat.Shape.OBJECT)
|
|
|
|
@JsonFormat(shape = JsonFormat.Shape.OBJECT)
|
|
|
|
public enum WsDataType {
|
|
|
|
public enum WS_DATA_TYPE {
|
|
|
|
TEXT(10, "TEXT", "正常信息"),
|
|
|
|
TEXT(10, "TEXT", "正常信息"),
|
|
|
|
EXP_TEXT(20, "EXP_TEXT", "异常信息"),
|
|
|
|
EXP_TEXT(20, "EXP_TEXT", "异常信息"),
|
|
|
|
TABLE(30, "TABLE", "表格");
|
|
|
|
TABLE(30, "TABLE", "表格");
|
|
|
@ -879,7 +908,7 @@ public class PtlPcnEnumUtil {
|
|
|
|
private String code;
|
|
|
|
private String code;
|
|
|
|
private String description;
|
|
|
|
private String description;
|
|
|
|
|
|
|
|
|
|
|
|
WsDataType(int value, String code, String description) {
|
|
|
|
WS_DATA_TYPE(int value, String code, String description) {
|
|
|
|
this.value = value;
|
|
|
|
this.value = value;
|
|
|
|
this.code = code;
|
|
|
|
this.code = code;
|
|
|
|
this.description = description;
|
|
|
|
this.description = description;
|
|
|
@ -898,6 +927,9 @@ public class PtlPcnEnumUtil {
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
|
|
|
* 组件状态类型
|
|
|
|
|
|
|
|
*/
|
|
|
|
@JsonFormat(shape = JsonFormat.Shape.OBJECT)
|
|
|
|
@JsonFormat(shape = JsonFormat.Shape.OBJECT)
|
|
|
|
public enum STATUS_TYPE {
|
|
|
|
public enum STATUS_TYPE {
|
|
|
|
START(10, "START", "开始状态"),
|
|
|
|
START(10, "START", "开始状态"),
|
|
|
|