From cf2cfb7978848980d74d9a184684216a37b72362 Mon Sep 17 00:00:00 2001 From: "1437892690@qq.com" <1437892690@qq.com> Date: Tue, 24 Sep 2024 18:49:14 +0800 Subject: [PATCH] =?UTF-8?q?[=E5=8A=9F=E8=83=BD]=20=E6=B5=81=E7=A8=8B?= =?UTF-8?q?=E5=9B=BE=E9=85=8D=E7=BD=AE=E6=95=B0=E6=8D=AE=E7=BB=93=E6=9E=84?= =?UTF-8?q?=E8=BD=AC=E6=8D=A2?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 关联 #[1252130927640576]流程图配置数据结构转换 http://192.168.0.96:8090/demo/rdm.html#/story-detail/939050947543040/939050947543042/1252130927640576 --- .../neatlogic/module/process/service/ProcessServiceImpl.java | 3 ++- .../stephandler/regulatehandler/SlaListRegulateHandler.java | 4 ++++ 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/src/main/java/neatlogic/module/process/service/ProcessServiceImpl.java b/src/main/java/neatlogic/module/process/service/ProcessServiceImpl.java index 770709b12..dfb599040 100644 --- a/src/main/java/neatlogic/module/process/service/ProcessServiceImpl.java +++ b/src/main/java/neatlogic/module/process/service/ProcessServiceImpl.java @@ -25,6 +25,7 @@ import neatlogic.framework.form.exception.FormNotFoundException; import neatlogic.framework.integration.dao.mapper.IntegrationMapper; import neatlogic.framework.notify.crossover.INotifyServiceCrossoverService; import neatlogic.framework.notify.dto.InvokeNotifyPolicyConfigVo; +import neatlogic.framework.process.crossover.IProcessCrossoverService; import neatlogic.framework.process.dto.*; import neatlogic.framework.process.exception.process.ProcessNameRepeatException; import neatlogic.framework.process.exception.sla.SlaCalculateHandlerNotFoundException; @@ -44,7 +45,7 @@ import java.util.List; import java.util.Objects; @Service -public class ProcessServiceImpl implements ProcessService { +public class ProcessServiceImpl implements ProcessService, IProcessCrossoverService { @Resource private ProcessMapper processMapper; diff --git a/src/main/java/neatlogic/module/process/stephandler/regulatehandler/SlaListRegulateHandler.java b/src/main/java/neatlogic/module/process/stephandler/regulatehandler/SlaListRegulateHandler.java index 5d98f7e8c..873415b69 100644 --- a/src/main/java/neatlogic/module/process/stephandler/regulatehandler/SlaListRegulateHandler.java +++ b/src/main/java/neatlogic/module/process/stephandler/regulatehandler/SlaListRegulateHandler.java @@ -19,6 +19,7 @@ package neatlogic.module.process.stephandler.regulatehandler; import com.alibaba.fastjson.JSONArray; import com.alibaba.fastjson.JSONObject; +import neatlogic.framework.notify.dto.InvokeNotifyPolicyConfigVo; import neatlogic.framework.process.dto.processconfig.SlaCalculatePolicyVo; import neatlogic.framework.process.dto.processconfig.SlaNotifyPolicyVo; import neatlogic.framework.process.dto.processconfig.SlaTransferPolicyVo; @@ -27,6 +28,7 @@ import neatlogic.framework.process.stephandler.core.IProcessStepInternalHandler; import neatlogic.framework.process.stephandler.core.IRegulateHandler; import neatlogic.framework.process.stephandler.core.ProcessMessageManager; import neatlogic.framework.restful.constvalue.OperationTypeEnum; +import neatlogic.module.process.notify.handler.SlaNotifyPolicyHandler; import org.apache.commons.collections4.CollectionUtils; import org.apache.commons.collections4.ListUtils; import org.apache.commons.collections4.MapUtils; @@ -99,6 +101,8 @@ public class SlaListRegulateHandler implements IRegulateHandler { for (int j = 0; j < notifyPolicyList.size(); j++) { SlaNotifyPolicyVo slaNotifyPolicyVo = notifyPolicyList.getObject(j, SlaNotifyPolicyVo.class); if (slaNotifyPolicyVo != null) { + InvokeNotifyPolicyConfigVo invokeNotifyPolicyConfigVo = slaNotifyPolicyVo.getNotifyPolicyConfig(); + invokeNotifyPolicyConfigVo.setHandler(SlaNotifyPolicyHandler.class.getName()); notifyPolicyArray.add(slaNotifyPolicyVo); } } -- Gitee