ssw cfd1fa9211 P1-6 修复: workflow parseFlowXml 跨行匹配 + 4 种 gateway 节点 (2026-07-02)
FINDING-F3: parseFlowXml 解析不完整
  - 单行正则 \s+ 不匹配跨行 id 属性 → JNPF FlowXmlUtil 输出带换行缩进时漏解析
  - 不匹配 parallelGateway/inclusiveGateway/exclusiveGateway/eventGateway
  - 复杂流程 (含条件分支) 网关节点全丢, launch 条件路由失效

修复:
- 正则改 [\s\S]*? 跨行匹配
- 加 4 种 gateway 节点 (parallel/inclusive/exclusive/event)
- 类型映射: parallelGateway → type='parallel', inclusiveGateway → 'inclusive', etc.

testspace 验证 (3 单元测试):
- Test 1 单行 BPMN: 3 nodes (start + task + end) ✓
- Test 2 跨行 BPMN: 2 nodes (旧版 0) ✓
- Test 3 含网关: 6 nodes (旧版 4, 漏 g1/g2) ✓
- 网关类型映射: exclusive/parallel 正确 ✓

审计: dacli/docs/cmd-review/v0.14-rollout-audit-2026-07-02.md §4.1 F3
2026-07-02 12:20:42 +08:00
S
Description
dacli CLI — JNPF 平台 AI 驱动开发工具 (TS 版 v0.7)
3.9 MiB
0 Stars 1 Watchers 0 Forks
Languages
TypeScript 99.4%
Shell 0.4%
Python 0.2%