diff --git a/src/main/java/neatlogic/module/process/notify/handler/AutomaticNotifyPolicyHandler.java b/src/main/java/neatlogic/module/process/notify/handler/AutomaticNotifyPolicyHandler.java index d4cd8a8f9bdf46326ca61248b261d45345f0adcb..d7ba302ac2b0b2dd8b5e43ee8c4dcf97af79b9dc 100644 --- a/src/main/java/neatlogic/module/process/notify/handler/AutomaticNotifyPolicyHandler.java +++ b/src/main/java/neatlogic/module/process/notify/handler/AutomaticNotifyPolicyHandler.java @@ -1,22 +1,15 @@ package neatlogic.module.process.notify.handler; -import com.alibaba.fastjson.JSON; import com.alibaba.fastjson.JSONObject; -import neatlogic.framework.common.constvalue.Expression; -import neatlogic.framework.common.constvalue.ParamType; -import neatlogic.framework.condition.core.IConditionHandler; import neatlogic.framework.dto.ConditionParamVo; -import neatlogic.framework.dto.ExpressionVo; -import neatlogic.framework.form.constvalue.FormConditionModel; -import neatlogic.framework.notify.core.NotifyPolicyHandlerBase; import neatlogic.framework.notify.dto.NotifyTriggerVo; import neatlogic.framework.process.auth.PROCESS_MODIFY; -import neatlogic.framework.process.condition.core.ProcessTaskConditionFactory; -import neatlogic.framework.process.constvalue.ConditionProcessTaskOptions; import neatlogic.framework.process.constvalue.ProcessStepHandlerType; import neatlogic.framework.process.constvalue.ProcessTaskGroupSearch; import neatlogic.framework.process.constvalue.ProcessUserType; -import neatlogic.framework.process.notify.constvalue.*; +import neatlogic.framework.process.notify.constvalue.ProcessTaskStepAutomaticNotifyParam; +import neatlogic.framework.process.notify.constvalue.ProcessTaskStepAutomaticNotifyTriggerType; +import neatlogic.framework.process.notify.core.ProcessTaskNotifyHandlerBase; import org.springframework.stereotype.Component; import java.util.ArrayList; @@ -31,7 +24,7 @@ import java.util.List; **/ @Component -public class AutomaticNotifyPolicyHandler extends NotifyPolicyHandlerBase { +public class AutomaticNotifyPolicyHandler extends ProcessTaskNotifyHandlerBase { @Override public String getName() { return ProcessStepHandlerType.AUTOMATIC.getName(); @@ -46,11 +39,8 @@ public class AutomaticNotifyPolicyHandler extends NotifyPolicyHandlerBase { } @Override - protected List myNotifyTriggerList() { + protected List myCustomNotifyTriggerList() { List returnList = new ArrayList<>(); - for (ProcessTaskStepNotifyTriggerType notifyTriggerType : ProcessTaskStepNotifyTriggerType.values()) { - returnList.add(new NotifyTriggerVo(notifyTriggerType)); - } for (ProcessTaskStepAutomaticNotifyTriggerType notifyTriggerType : ProcessTaskStepAutomaticNotifyTriggerType.values()) { returnList.add(new NotifyTriggerVo(notifyTriggerType)); } @@ -58,14 +48,8 @@ public class AutomaticNotifyPolicyHandler extends NotifyPolicyHandlerBase { } @Override - protected List mySystemParamList() { + protected List myCustomSystemParamList() { List notifyPolicyParamList = new ArrayList<>(); - for(ProcessTaskNotifyParam param : ProcessTaskNotifyParam.values()) { - notifyPolicyParamList.add(createConditionParam(param)); - } - for(ProcessTaskStepNotifyParam param : ProcessTaskStepNotifyParam.values()) { - notifyPolicyParamList.add(createConditionParam(param)); - } for (ProcessTaskStepAutomaticNotifyParam param : ProcessTaskStepAutomaticNotifyParam.values()) { notifyPolicyParamList.add(createConditionParam(param)); } @@ -73,44 +57,9 @@ public class AutomaticNotifyPolicyHandler extends NotifyPolicyHandlerBase { } @Override - protected List mySystemConditionOptionList() { - List notifyPolicyParamList = new ArrayList<>(); - for(ConditionProcessTaskOptions option : ConditionProcessTaskOptions.values()) { - IConditionHandler condition = ProcessTaskConditionFactory.getHandler(option.getValue()); - if(condition != null) { - ConditionParamVo param = new ConditionParamVo(); - param.setName(condition.getName()); - param.setLabel(condition.getDisplayName()); - param.setController(condition.getHandler(FormConditionModel.CUSTOM)); - if(condition.getConfig() != null) { - param.setConfig(condition.getConfig().toJSONString()); - } - param.setType(condition.getType()); - ParamType paramType = condition.getParamType(); - if(paramType != null) { - param.setParamType(paramType.getName()); - param.setParamTypeName(paramType.getText()); - param.setDefaultExpression(paramType.getDefaultExpression().getExpression()); - for(Expression expression : paramType.getExpressionList()) { - param.getExpressionList().add(new ExpressionVo(expression.getExpression(), expression.getExpressionName(),expression.getIsShowConditionValue())); - } - } - - param.setIsEditable(0); - notifyPolicyParamList.add(param); - } - } - return notifyPolicyParamList; - } - - @Override - protected void myAuthorityConfig(JSONObject config) { - List groupList = JSON.parseArray(config.getJSONArray("groupList").toJSONString(), String.class); - groupList.add(ProcessTaskGroupSearch.PROCESSUSERTYPE.getValue()); - config.put("groupList", groupList); - List includeList = JSON.parseArray(config.getJSONArray("includeList").toJSONString(), String.class); - includeList.add(ProcessTaskGroupSearch.PROCESSUSERTYPE.getValue() + "#" + ProcessUserType.DEFAULT_WORKER.getValue()); - includeList.add(ProcessTaskGroupSearch.PROCESSUSERTYPE.getValue() + "#" + ProcessUserType.FOCUS_USER.getValue()); - config.put("includeList", includeList); + protected void myCustomAuthorityConfig(JSONObject config) { + List excludeList = config.getJSONArray("excludeList").toJavaList(String.class); + excludeList.add(ProcessTaskGroupSearch.PROCESSUSERTYPE.getValue() + "#" + ProcessUserType.MINOR.getValue()); + config.put("excludeList", excludeList); } } diff --git a/src/main/java/neatlogic/module/process/notify/handler/OmnipotentNotifyPolicyHandler.java b/src/main/java/neatlogic/module/process/notify/handler/OmnipotentNotifyPolicyHandler.java index c7e7dbb7d61a205d8a4a855fa0127ff931f39087..bcb2771a61a0418c899f5bae104b9e420816ad14 100644 --- a/src/main/java/neatlogic/module/process/notify/handler/OmnipotentNotifyPolicyHandler.java +++ b/src/main/java/neatlogic/module/process/notify/handler/OmnipotentNotifyPolicyHandler.java @@ -1,29 +1,19 @@ package neatlogic.module.process.notify.handler; -import com.alibaba.fastjson.JSON; -import com.alibaba.fastjson.JSONObject; -import neatlogic.framework.common.constvalue.Expression; -import neatlogic.framework.common.constvalue.ParamType; -import neatlogic.framework.condition.core.IConditionHandler; import neatlogic.framework.dto.ConditionParamVo; -import neatlogic.framework.dto.ExpressionVo; -import neatlogic.framework.form.constvalue.FormConditionModel; -import neatlogic.framework.notify.core.NotifyPolicyHandlerBase; import neatlogic.framework.notify.dto.NotifyTriggerVo; import neatlogic.framework.process.auth.PROCESS_MODIFY; -import neatlogic.framework.process.condition.core.ProcessTaskConditionFactory; -import neatlogic.framework.process.constvalue.ConditionProcessTaskOptions; import neatlogic.framework.process.constvalue.ProcessStepHandlerType; -import neatlogic.framework.process.constvalue.ProcessTaskGroupSearch; -import neatlogic.framework.process.constvalue.ProcessUserType; -import neatlogic.framework.process.notify.constvalue.*; +import neatlogic.framework.process.notify.constvalue.ProcessTaskStepTaskNotifyParam; +import neatlogic.framework.process.notify.constvalue.ProcessTaskStepTaskNotifyTriggerType; +import neatlogic.framework.process.notify.core.ProcessTaskNotifyHandlerBase; import org.springframework.stereotype.Component; import java.util.ArrayList; import java.util.List; @Component -public class OmnipotentNotifyPolicyHandler extends NotifyPolicyHandlerBase { +public class OmnipotentNotifyPolicyHandler extends ProcessTaskNotifyHandlerBase { @Override public String getName() { @@ -31,11 +21,8 @@ public class OmnipotentNotifyPolicyHandler extends NotifyPolicyHandlerBase { } @Override - public List myNotifyTriggerList() { + public List myCustomNotifyTriggerList() { List returnList = new ArrayList<>(); - for (ProcessTaskStepNotifyTriggerType notifyTriggerType : ProcessTaskStepNotifyTriggerType.values()) { - returnList.add(new NotifyTriggerVo(notifyTriggerType)); - } //任务 for (ProcessTaskStepTaskNotifyTriggerType notifyTriggerType : ProcessTaskStepTaskNotifyTriggerType.values()) { returnList.add(new NotifyTriggerVo(notifyTriggerType)); @@ -44,62 +31,14 @@ public class OmnipotentNotifyPolicyHandler extends NotifyPolicyHandlerBase { } @Override - protected List mySystemParamList() { + protected List myCustomSystemParamList() { List notifyPolicyParamList = new ArrayList<>(); - for(ProcessTaskNotifyParam param : ProcessTaskNotifyParam.values()) { - notifyPolicyParamList.add(createConditionParam(param)); - } - for(ProcessTaskStepNotifyParam param : ProcessTaskStepNotifyParam.values()) { - notifyPolicyParamList.add(createConditionParam(param)); - } for(ProcessTaskStepTaskNotifyParam param : ProcessTaskStepTaskNotifyParam.values()) { notifyPolicyParamList.add(createConditionParam(param)); } return notifyPolicyParamList; } - @Override - protected List mySystemConditionOptionList() { - List notifyPolicyParamList = new ArrayList<>(); - for(ConditionProcessTaskOptions option : ConditionProcessTaskOptions.values()) { - IConditionHandler condition = ProcessTaskConditionFactory.getHandler(option.getValue()); - if(condition != null) { - ConditionParamVo param = new ConditionParamVo(); - param.setName(condition.getName()); - param.setLabel(condition.getDisplayName()); - param.setController(condition.getHandler(FormConditionModel.CUSTOM)); - if(condition.getConfig() != null) { - param.setConfig(condition.getConfig().toJSONString()); - } - param.setType(condition.getType()); - ParamType paramType = condition.getParamType(); - if(paramType != null) { - param.setParamType(paramType.getName()); - param.setParamTypeName(paramType.getText()); - param.setDefaultExpression(paramType.getDefaultExpression().getExpression()); - for(Expression expression : paramType.getExpressionList()) { - param.getExpressionList().add(new ExpressionVo(expression.getExpression(), expression.getExpressionName(),expression.getIsShowConditionValue())); - } - } - - param.setIsEditable(0); - notifyPolicyParamList.add(param); - } - } - return notifyPolicyParamList; - } - - @Override - protected void myAuthorityConfig(JSONObject config) { - List groupList = JSON.parseArray(config.getJSONArray("groupList").toJSONString(), String.class); - groupList.add(ProcessTaskGroupSearch.PROCESSUSERTYPE.getValue()); - config.put("groupList", groupList); - List includeList = JSON.parseArray(config.getJSONArray("includeList").toJSONString(), String.class); - includeList.add(ProcessTaskGroupSearch.PROCESSUSERTYPE.getValue() + "#" + ProcessUserType.DEFAULT_WORKER.getValue()); - includeList.add(ProcessTaskGroupSearch.PROCESSUSERTYPE.getValue() + "#" + ProcessUserType.FOCUS_USER.getValue()); - config.put("includeList", includeList); - } - @Override public String getAuthName() { return PROCESS_MODIFY.class.getSimpleName(); diff --git a/src/main/java/neatlogic/module/process/notify/handler/param/CurrentStepCompleteContentParamHandler.java b/src/main/java/neatlogic/module/process/notify/handler/param/CurrentStepCompleteContentParamHandler.java index 64fb876a5899a0fdf753ebac6b3f1ec1b0f7383c..f5442cefbbc56c17b673f4e0b734acf179087a8a 100644 --- a/src/main/java/neatlogic/module/process/notify/handler/param/CurrentStepCompleteContentParamHandler.java +++ b/src/main/java/neatlogic/module/process/notify/handler/param/CurrentStepCompleteContentParamHandler.java @@ -47,7 +47,7 @@ public class CurrentStepCompleteContentParamHandler extends ProcessTaskNotifyPar @Override public Object getMyText(ProcessTaskStepVo processTaskStepVo, INotifyTriggerType notifyTriggerType) { - if (!(notifyTriggerType == ProcessTaskStepNotifyTriggerType.BACK)) { + if (!(notifyTriggerType == ProcessTaskStepNotifyTriggerType.SUCCEED)) { return null; } // 查询步骤的所有处理内容,已倒序排好 diff --git a/src/main/java/neatlogic/module/process/notify/handler/param/StepActiveTimeParamHandler.java b/src/main/java/neatlogic/module/process/notify/handler/param/StepActiveTimeParamHandler.java index f1980893ed3534d9b651c1a2148dd6f9d00b4514..f20cfe31ac3ab43307c926a940984de70e74e3bf 100644 --- a/src/main/java/neatlogic/module/process/notify/handler/param/StepActiveTimeParamHandler.java +++ b/src/main/java/neatlogic/module/process/notify/handler/param/StepActiveTimeParamHandler.java @@ -16,11 +16,12 @@ along with this program. If not, see .*/ package neatlogic.module.process.notify.handler.param; import neatlogic.framework.notify.core.INotifyTriggerType; -import neatlogic.module.process.dao.mapper.processtask.ProcessTaskMapper; import neatlogic.framework.process.dto.ProcessTaskStepVo; import neatlogic.framework.process.notify.constvalue.ProcessTaskStepNotifyParam; import neatlogic.framework.process.notify.constvalue.ProcessTaskStepNotifyTriggerType; import neatlogic.framework.process.notify.core.ProcessTaskNotifyParamHandlerBase; +import neatlogic.module.process.dao.mapper.processtask.ProcessTaskMapper; +import neatlogic.module.process.notify.constvalue.SlaNotifyTriggerType; import org.springframework.stereotype.Component; import javax.annotation.Resource; @@ -40,7 +41,7 @@ public class StepActiveTimeParamHandler extends ProcessTaskNotifyParamHandlerBas @Override public Object getMyText(ProcessTaskStepVo processTaskStepVo, INotifyTriggerType notifyTriggerType) { - if (!(notifyTriggerType instanceof ProcessTaskStepNotifyTriggerType)) { + if (!(notifyTriggerType instanceof ProcessTaskStepNotifyTriggerType) && !(notifyTriggerType instanceof SlaNotifyTriggerType)) { return null; } SimpleDateFormat sdf = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss"); diff --git a/src/main/java/neatlogic/module/process/notify/handler/param/StepCommentListParamHandler.java b/src/main/java/neatlogic/module/process/notify/handler/param/StepCommentListParamHandler.java index 589d37fddd4bd6233c7a1480e0b9dfc37ed9128a..0bce1f91ef62f93a0f938c8733a4bd2d8822bd40 100644 --- a/src/main/java/neatlogic/module/process/notify/handler/param/StepCommentListParamHandler.java +++ b/src/main/java/neatlogic/module/process/notify/handler/param/StepCommentListParamHandler.java @@ -26,6 +26,7 @@ import neatlogic.framework.process.dto.ProcessTaskStepVo; import neatlogic.framework.process.notify.constvalue.ProcessTaskStepNotifyParam; import neatlogic.framework.process.notify.constvalue.ProcessTaskStepNotifyTriggerType; import neatlogic.framework.process.notify.core.ProcessTaskNotifyParamHandlerBase; +import neatlogic.module.process.notify.constvalue.SlaNotifyTriggerType; import org.apache.commons.collections4.CollectionUtils; import org.apache.commons.lang3.StringUtils; import org.springframework.stereotype.Component; @@ -54,7 +55,7 @@ public class StepCommentListParamHandler extends ProcessTaskNotifyParamHandlerBa @Override public Object getMyText(ProcessTaskStepVo processTaskStepVo, INotifyTriggerType notifyTriggerType) { - if (!(notifyTriggerType instanceof ProcessTaskStepNotifyTriggerType)) { + if (!(notifyTriggerType instanceof ProcessTaskStepNotifyTriggerType) && !(notifyTriggerType instanceof SlaNotifyTriggerType)) { return null; } List processTaskStepContentList = processTaskMapper.getProcessTaskStepContentByProcessTaskStepId(processTaskStepVo.getId()); diff --git a/src/main/java/neatlogic/module/process/notify/handler/param/StepIdParamHandler.java b/src/main/java/neatlogic/module/process/notify/handler/param/StepIdParamHandler.java index aea1940d5079fb4facd0922424838a4ce0c45910..f2f89cd5e9842dd97d596c6fd5b630392b16a0b3 100644 --- a/src/main/java/neatlogic/module/process/notify/handler/param/StepIdParamHandler.java +++ b/src/main/java/neatlogic/module/process/notify/handler/param/StepIdParamHandler.java @@ -20,6 +20,7 @@ import neatlogic.framework.process.dto.ProcessTaskStepVo; import neatlogic.framework.process.notify.constvalue.ProcessTaskStepNotifyParam; import neatlogic.framework.process.notify.constvalue.ProcessTaskStepNotifyTriggerType; import neatlogic.framework.process.notify.core.ProcessTaskNotifyParamHandlerBase; +import neatlogic.module.process.notify.constvalue.SlaNotifyTriggerType; import org.springframework.stereotype.Component; /** @@ -36,7 +37,7 @@ public class StepIdParamHandler extends ProcessTaskNotifyParamHandlerBase { @Override public Object getMyText(ProcessTaskStepVo processTaskStepVo, INotifyTriggerType notifyTriggerType) { - if (!(notifyTriggerType instanceof ProcessTaskStepNotifyTriggerType)) { + if (!(notifyTriggerType instanceof ProcessTaskStepNotifyTriggerType) && !(notifyTriggerType instanceof SlaNotifyTriggerType)) { return null; } Long id = processTaskStepVo.getId(); diff --git a/src/main/java/neatlogic/module/process/notify/handler/param/StepNameParamHandler.java b/src/main/java/neatlogic/module/process/notify/handler/param/StepNameParamHandler.java index 66bef42c0a61b85a654711e03e79168621583615..3b892e23549557f070e31927899b558096ac7600 100644 --- a/src/main/java/neatlogic/module/process/notify/handler/param/StepNameParamHandler.java +++ b/src/main/java/neatlogic/module/process/notify/handler/param/StepNameParamHandler.java @@ -21,6 +21,7 @@ import neatlogic.framework.process.dto.ProcessTaskStepVo; import neatlogic.framework.process.notify.constvalue.ProcessTaskStepNotifyParam; import neatlogic.framework.process.notify.constvalue.ProcessTaskStepNotifyTriggerType; import neatlogic.framework.process.notify.core.ProcessTaskNotifyParamHandlerBase; +import neatlogic.module.process.notify.constvalue.SlaNotifyTriggerType; import org.apache.commons.lang3.StringUtils; import org.springframework.stereotype.Component; @@ -43,7 +44,7 @@ public class StepNameParamHandler extends ProcessTaskNotifyParamHandlerBase { @Override public Object getMyText(ProcessTaskStepVo processTaskStepVo, INotifyTriggerType notifyTriggerType) { - if (!(notifyTriggerType instanceof ProcessTaskStepNotifyTriggerType)) { + if (!(notifyTriggerType instanceof ProcessTaskStepNotifyTriggerType) && !(notifyTriggerType instanceof SlaNotifyTriggerType)) { return null; } String name = processTaskStepVo.getName(); diff --git a/src/main/java/neatlogic/module/process/notify/handler/param/StepStartTimeParamHandler.java b/src/main/java/neatlogic/module/process/notify/handler/param/StepStartTimeParamHandler.java index 4b6cdfec558e247e4a757193cd271a98ff1856ec..360521dcacb5bc0c2a6e3c68982d3bb9de6d8066 100644 --- a/src/main/java/neatlogic/module/process/notify/handler/param/StepStartTimeParamHandler.java +++ b/src/main/java/neatlogic/module/process/notify/handler/param/StepStartTimeParamHandler.java @@ -16,11 +16,12 @@ along with this program. If not, see .*/ package neatlogic.module.process.notify.handler.param; import neatlogic.framework.notify.core.INotifyTriggerType; -import neatlogic.module.process.dao.mapper.processtask.ProcessTaskMapper; import neatlogic.framework.process.dto.ProcessTaskStepVo; import neatlogic.framework.process.notify.constvalue.ProcessTaskStepNotifyParam; import neatlogic.framework.process.notify.constvalue.ProcessTaskStepNotifyTriggerType; import neatlogic.framework.process.notify.core.ProcessTaskNotifyParamHandlerBase; +import neatlogic.module.process.dao.mapper.processtask.ProcessTaskMapper; +import neatlogic.module.process.notify.constvalue.SlaNotifyTriggerType; import org.springframework.stereotype.Component; import javax.annotation.Resource; @@ -40,7 +41,7 @@ public class StepStartTimeParamHandler extends ProcessTaskNotifyParamHandlerBase @Override public Object getMyText(ProcessTaskStepVo processTaskStepVo, INotifyTriggerType notifyTriggerType) { - if (!(notifyTriggerType instanceof ProcessTaskStepNotifyTriggerType)) { + if (!(notifyTriggerType instanceof ProcessTaskStepNotifyTriggerType) && !(notifyTriggerType instanceof SlaNotifyTriggerType)) { return null; } SimpleDateFormat sdf = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss"); diff --git a/src/main/java/neatlogic/module/process/notify/handler/param/StepStayTimeParamHandler.java b/src/main/java/neatlogic/module/process/notify/handler/param/StepStayTimeParamHandler.java index e6be521108d131bc3268d6d3a1062c17b5886d25..6958f977332e6fe232205dcd8dcdc3e561d89550 100755 --- a/src/main/java/neatlogic/module/process/notify/handler/param/StepStayTimeParamHandler.java +++ b/src/main/java/neatlogic/module/process/notify/handler/param/StepStayTimeParamHandler.java @@ -22,6 +22,7 @@ import neatlogic.framework.process.dto.ProcessTaskStepVo; import neatlogic.framework.process.notify.constvalue.ProcessTaskStepNotifyParam; import neatlogic.framework.process.notify.constvalue.ProcessTaskStepNotifyTriggerType; import neatlogic.framework.process.notify.core.ProcessTaskNotifyParamHandlerBase; +import neatlogic.module.process.notify.constvalue.SlaNotifyTriggerType; import org.springframework.stereotype.Component; import javax.annotation.Resource; @@ -44,7 +45,7 @@ public class StepStayTimeParamHandler extends ProcessTaskNotifyParamHandlerBase @Override public Object getMyText(ProcessTaskStepVo processTaskStepVo, INotifyTriggerType notifyTriggerType) { - if (!(notifyTriggerType instanceof ProcessTaskStepNotifyTriggerType)) { + if (!(notifyTriggerType instanceof ProcessTaskStepNotifyTriggerType) && !(notifyTriggerType instanceof SlaNotifyTriggerType)) { return null; } ProcessTaskStepVo stepVo = processTaskMapper.getProcessTaskStepBaseInfoById(processTaskStepVo.getId()); diff --git a/src/main/java/neatlogic/module/process/notify/handler/param/StepWorkerParamHandler.java b/src/main/java/neatlogic/module/process/notify/handler/param/StepWorkerParamHandler.java index 1038408bd073ceaf7cbcca9ba03140dbaef13837..9b66652cc7e9215416c467293057787c5351bbf0 100755 --- a/src/main/java/neatlogic/module/process/notify/handler/param/StepWorkerParamHandler.java +++ b/src/main/java/neatlogic/module/process/notify/handler/param/StepWorkerParamHandler.java @@ -32,6 +32,7 @@ import neatlogic.framework.process.dto.ProcessTaskStepWorkerVo; import neatlogic.framework.process.notify.constvalue.ProcessTaskStepNotifyParam; import neatlogic.framework.process.notify.constvalue.ProcessTaskStepNotifyTriggerType; import neatlogic.framework.process.notify.core.ProcessTaskNotifyParamHandlerBase; +import neatlogic.module.process.notify.constvalue.SlaNotifyTriggerType; import org.apache.commons.collections4.CollectionUtils; import org.springframework.stereotype.Component; @@ -62,7 +63,7 @@ public class StepWorkerParamHandler extends ProcessTaskNotifyParamHandlerBase { @Override public Object getMyText(ProcessTaskStepVo processTaskStepVo, INotifyTriggerType notifyTriggerType) { - if (!(notifyTriggerType instanceof ProcessTaskStepNotifyTriggerType)) { + if (!(notifyTriggerType instanceof ProcessTaskStepNotifyTriggerType) && !(notifyTriggerType instanceof SlaNotifyTriggerType)) { return null; } List workerList = processTaskMapper.getProcessTaskStepWorkerByProcessTaskIdAndProcessTaskStepId(processTaskStepVo.getProcessTaskId(), processTaskStepVo.getId());