diff --git a/src/main/java/neatlogic/framework/process/constvalue/ProcessTaskParams.java b/src/main/java/neatlogic/framework/process/constvalue/ProcessTaskParams.java index 9a9861377d9753694f1de5a82e0ce8a3a94a473a..32ee36eb3f12ea05a802b5f3ec8011e3efe08690 100644 --- a/src/main/java/neatlogic/framework/process/constvalue/ProcessTaskParams.java +++ b/src/main/java/neatlogic/framework/process/constvalue/ProcessTaskParams.java @@ -1,64 +1,37 @@ package neatlogic.framework.process.constvalue; -import neatlogic.framework.util.I18n; - public enum ProcessTaskParams { - TASKID("id", new I18n("工单ID")), - STEPID("stepid", new I18n("步骤ID")), - TITLE("title", new I18n("标题")), - CHANNELTYPE("channeltype", new I18n("服务类型")), - CONTENT("content", new I18n("上报内容")), - STARTTIME("starttime", new I18n("开始时间")), - OWNER("owner", new I18n("上报人")), - PRIORITY("priority", new I18n("优先级")), - OWNERCOMPANY("ownercompany", new I18n("上报人公司")), - OWNERDEPARTMENT("ownerdepartment", new I18n("上报人部门")), - OWNERROLE("ownerrole", new I18n("上报人角色")), - OWNERLEVEL("ownerlevel", new I18n("上报人级别")), - STEPTASK("steptask", new I18n("子任务")), - ACTIONTRIGGERUSER("actiontriggeruser", new I18n("动作触发人")), - STEPTASKID("steptaskid", new I18n("子任务ID")); + TASKID("id", "工单ID"), + STEPID("stepid", "步骤ID"), + TITLE("title", "标题"), + CHANNELTYPE("channeltype", "服务类型"), + CONTENT("content", "上报内容"), + STARTTIME("starttime", "开始时间"), + OWNER("owner", "上报人"), + OWNERUSERID("owneruserid", "上报人用户ID"), + PRIORITY("priority", "优先级"), + OWNERCOMPANY("ownercompany", "上报人公司"), + OWNERDEPARTMENT("ownerdepartment", "上报人部门"), + OWNERROLE("ownerrole", "上报人角色"), + OWNERLEVEL("ownerlevel", "上报人级别"), + STEPTASK("steptask", "子任务"), + ACTIONTRIGGERUSER("actiontriggeruser", "动作触发人"), + STEPTASKID("steptaskid", "子任务ID"); private String value; - private I18n text; -// private ParamType paramType; -// private String freemarkerTemplate; + private String text; - ProcessTaskParams(String value, I18n text) { + ProcessTaskParams(String value, String text) { this.value = value; this.text = text; } -// ProcessTaskParams(String value, String text, ParamType paramType) { -// this.value = value; -// this.text = text; -// this.paramType = paramType; -// } - -// private ProcessTaskParams(String value, String text, ParamType paramType, String freemarkerTemplate) { -// this.value = value; -// this.text = text; -// this.paramType = paramType; -// this.freemarkerTemplate = freemarkerTemplate; -// } - public String getValue() { return value; } public String getText() { - return text.toString(); + return text; } -// public ParamType getParamType() { -// return paramType; -// } - -// public String getFreemarkerTemplate() { -// if (freemarkerTemplate == null && paramType != null) { -// freemarkerTemplate = paramType.getFreemarkerTemplate(value); -// } -// return freemarkerTemplate; -// } - }