feat: add guarded BPM category and template workflow
Implement server-owned read-only sample checks, category publication, explicit order-version identity and durable PDF/archive/notification steps. Freeze category-bound templates and recipients for isolated scheduled delivery, and require human verification for unknown SMTP outcomes. Add order/batch views and local HTTP/browser/PDF/archive regression coverage. Fix Unicode Windows startup links found by full regression using IShellLinkW. Automatic processing and sending stay disabled; no service deployment. Validation: npm ci; npm test -- --test-concurrency=1 (242 pass, 1 optional ZCode skip, 0 fail); 31 syntax checks; scoped independent code review. Live BPM V13/SMB/163 acceptance remains pending.
This commit is contained in:
1 parent
6e795a99b7
commit
94fc985553
38 files changed
+1204
-131
No files matched your search
@@ -1,5 +1,20 @@
|
||||
# 开发交接(2026-10-18)
|
||||
|
||||
## 2026-10-22:分类模板通知代码增量
|
||||
|
||||
当前分支仍为 `codex/smb-storage`。本次按业务负责人明确提供的 BPM 匹配与分类模板计划开发,入口见 [实施与验收记录](superpowers/plans/2026-10-22-bpm-category-template-implementation.md)。本节优先于下文早期“未实施”的说明;不代表已部署或已完成真实业务验收。
|
||||
|
||||
- 分类规则按流程 + 当前节点精确匹配,表单版本只用于选择显式字段适配器。产品线、模板和收件组由分类指定,草稿经服务器采集的真实只读样本检查后才可发布。
|
||||
- 订单版本必须具备 `tid + pid + 当前订单号 + 业务版本`;不再用流程实例号代替缺失业务版本。同一版本的字段变化会阻断。列表摘要保留原始换行,节点时间缺失时保留 `list.receivedAt` 来源标记。
|
||||
- 新增受保护的 `OrderPipeline`,复用现有 PDF 导出器、SMB 归档和邮件通道。归档回执含路径、字节数和 SHA-256;归档失败不创建通知事件,重试不重做成功 PDF。
|
||||
- 通知事件进入既有通知库,但标识为订单工作流管理,通用通知调度器不会重复处理。批次按分类、规则版本、模板和窗口冻结;PDF 不进附件;SMTP 部分拒收和结果不明均为 `unknown`,重启不自动重发。
|
||||
- 新页面入口为 `#order-center`、`#mail-batches`、`#order-rules`(兼容 `#rules`),不重复放顶部导航;展示候选阻断、步骤证据、模板版本及核验记录。
|
||||
- **新订单链路的自动处理和发送默认关闭,本轮未启用、未更新运行服务。** 测试收件人硬限制为指定隔离邮箱。原工作台账号、业务文件和数据库未迁移。
|
||||
|
||||
真实环境尚须核对 V13 页面所需只读接口、流程步骤结构和业务版本字段。详情读取只放行经过限制的表单 GET 和静态资源,不为页面初始化而放开不明 POST/动作接口。历史到达记录没有明确详情链接或 `tid/pid` 时,必须重新取得权威关联,不能把另一张同流程订单的链接拼到该记录。
|
||||
|
||||
本次另修复全量回归发现的 Windows 中文快捷方式路径问题:使用 `IShellLinkW/IPersistFile`,保留既有登录启动行为,没有实际安装或修改当前服务自启动。
|
||||
|
||||
## 接续分支与运行
|
||||
|
||||
仓库:`https://git.simgreek.com/simgreek/order-notification-automation.git`。
|
||||
|
||||
Reference in new issue
Block a user