From 5503a1058649807c53dc4eb8c6b3e89c67000c4e Mon Sep 17 00:00:00 2001 From: "1437892690@qq.com" <1437892690@qq.com> Date: Fri, 9 Aug 2024 18:59:29 +0800 Subject: [PATCH] =?UTF-8?q?[=E5=8A=9F=E8=83=BD]=20=E5=90=8E=E7=AB=AF-?= =?UTF-8?q?=E8=87=AA=E5=8A=A8=E5=A4=84=E7=90=86=E8=8A=82=E7=82=B9=E9=80=89?= =?UTF-8?q?=E4=B8=8D=E5=88=B0=E9=9A=90=E8=97=8F=E5=B1=9E=E6=80=A7=E5=92=8C?= =?UTF-8?q?=E5=AE=9A=E5=88=B6=E8=A1=A8=E5=8D=95=E5=86=85=E5=AE=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 关联 #[1219645414014976]后端-自动处理节点选不到隐藏属性和定制表单内容 http://192.168.0.96:8090/demo/rdm.html#/task-detail/939050947543040/939050947543050/1219645414014976 --- .../core/ProcessTaskConditionFactory.java | 20 +++++++++++++++++++ 1 file changed, 20 insertions(+) diff --git a/src/main/java/neatlogic/framework/process/condition/core/ProcessTaskConditionFactory.java b/src/main/java/neatlogic/framework/process/condition/core/ProcessTaskConditionFactory.java index 06bfc654..0a87cc8b 100644 --- a/src/main/java/neatlogic/framework/process/condition/core/ProcessTaskConditionFactory.java +++ b/src/main/java/neatlogic/framework/process/condition/core/ProcessTaskConditionFactory.java @@ -63,6 +63,26 @@ public class ProcessTaskConditionFactory extends ModuleInitializedListenerBase { return resultObj; } + public static JSONObject getConditionParamData(List options, ProcessTaskStepVo processTaskStepVo, String formTag) { + JSONObject resultObj = new JSONObject(); + for (String option : options) { + IProcessTaskCondition handler = conditionComponentMap.get(option); + if (handler != null) { + resultObj.put(option, handler.getConditionParamDataNew(processTaskStepVo, formTag)); + } + } + IProcessTaskCondition handler = conditionComponentMap.get(ProcessFieldType.FORM.getValue()); + if (handler != null) { + Object formObj = handler.getConditionParamDataNew(processTaskStepVo, formTag); + if (formObj != null) { + if (formObj instanceof JSONObject) { + resultObj.putAll((JSONObject) formObj); + } + } + } + return resultObj; + } + public static JSONObject getConditionParamData(ConditionProcessTaskOptions[] options, ProcessTaskStepVo processTaskStepVo) { JSONObject resultObj = new JSONObject(); for (ConditionProcessTaskOptions option : options) { -- Gitee