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:
abaishu0730 committed 2026-10-22 16:52:59 +08:00
1 parent 6e795a99b7
commit 94fc985553
38 files changed
+1204 -131

No files matched your search

+2
View File
@@ -2,6 +2,8 @@
更新日期:2026-10-18。本文为当前设计要求入口;与早期调研或阶段计划冲突时,以本文及对应模块最新设计为准。业务规则的调整需要同步本文、实现与验收记录。继续开发先读 [交接说明](HANDOFF.md)。
2026-10-22 增补:业务负责人已明确提供并授权实施 [BPM 分类模板计划](superpowers/plans/2026-10-22-bpm-category-template-implementation.md)。该链路以分类规则指定产品线、邮件模板及收件组,版本适配器精确对应表单版本;PDF/SMB 归档成功是创建通知事件的前置条件,归档与通知仍分别保存状态。此约束替代下文早期“PDF 归档不影响通知”和按产业独立猜模板的描述;归档完成不代表邮件完成,也不直接绕过分类、版本、收件组及发送窗口检查。自动处理、PDF 自动执行和自动发送在真实业务验收前保持关闭。
## 1. 产品目标与运行方式
团队成员在各自电脑访问同一台常驻服务器,通过 Web 管理 BPM 连接、流程到达记录、业务日历、异常、邮件模板和收件群组。正式工作台使用真实持久数据,不预置演示账号或虚构订单,不提供默认管理员密码。