From 4abe9f8ce6e6fd1a7f6d24081617646965b2777d Mon Sep 17 00:00:00 2001 From: zhengwr Date: Thu, 2 Jul 2026 11:48:29 +0800 Subject: [PATCH] =?UTF-8?q?docs(plan):=20=E5=9B=9E=E5=86=99=20T2.4=20?= =?UTF-8?q?=E8=AF=84=E5=AE=A1=E2=80=94=E2=80=94T3.2=20=E8=AF=AD=E4=B9=89?= =?UTF-8?q?=E6=A0=A1=E9=AA=8C=E5=8A=A0=20items=20=E9=9D=9E=E7=A9=BA?= =?UTF-8?q?=E4=B8=8E=E8=87=AA=E5=AE=9A=E4=B9=89=E5=AE=8C=E6=88=90=E6=9D=A1?= =?UTF-8?q?=E4=BB=B6=E5=8F=A3=E5=BE=84?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-Authored-By: Claude Fable 5 --- docs/plans/2026-07-02-在线流程Modeler-实施计划.md | 2 ++ 1 file changed, 2 insertions(+) diff --git a/docs/plans/2026-07-02-在线流程Modeler-实施计划.md b/docs/plans/2026-07-02-在线流程Modeler-实施计划.md index fcad0db..5e22e7d 100644 --- a/docs/plans/2026-07-02-在线流程Modeler-实施计划.md +++ b/docs/plans/2026-07-02-在线流程Modeler-实施计划.md @@ -301,6 +301,8 @@ commit:`feat(flow): 草稿发布(id还原+ProcessValidator校验门)+影响摘 ### Task 3.2 网关:EIP4 语义校验 + 部署审计(Flyway V4) +> 📌 **T2.4 评审补充**:语义校验白名单须加两条——①办理人/会签表达式的 `items` **非空**(`items:[]` 的 MI collection 运行期会炸,仅 JSON 可解析+type 白名单不够);②completionCondition 允许「三预设 或 保留的自定义 body」(T2.4 已实现自定义保留态,校验别把存量自定义条件拒了,白名单改为预设正则 ∪ 非空任意表达式加告警)。 + **Files:** - Create: `platform-flow-gateway/.../aggregate/ModelSemanticValidator.java` + test:解析 XML(**照 WfTemplateService.newJdkDbf :116-135 钉 JDK 解析器**,防 xerces 击穿)→ ①每个 `activiti:candidateUsers`/multiInstance collection 的内嵌 JSON 可解析且 items[].type ∈ 白名单 ②`activiti:formKey` 存在于 view_wftemplate(JdbcTemplate exists)③completionCondition 匹配预设白名单正则。返回 `List errors`。 - Create: `platform-app/src/main/resources/db/migration/V4__flow_deploy_audit.sql`(照 V3 风格):`sys_flow_deploy_audit(id bigserial pk, model_id, deployment_id, process_key, new_version int, operator varchar(64), deployed_at timestamp default now())`