Repository navigation
fix(flow-design): 取消路由节点仅可添加到条件分支的限制 - #60
Merged
Merged
Conversation
路由节点不再要求必须位于条件分支(含 else 分支)内,可在主流程、 条件分支等任意可添加节点处添加。后端已通过 9 种摆放松弛场景的 单元测试验证(主流程、条件节点前后、跳转结束节点、分支首节点等)。 Refs: codingapi/flow-engine#230 Co-Authored-By: Claude Code <noreply@anthropic.com>
xlorne
added a commit
that referenced
this pull request
Oct 22, 2026
- 11 个 @coding-flow/* 包按 fixed 版本组同步升级至 0.2.10 - flow-design:路由节点可在主流程、条件分支等任意可添加节点处添加(codingapi/flow-engine#230,依赖 PR #60 合入) Co-Authored-By: Claude Code <noreply@anthropic.com>
xlorne
added a commit
that referenced
this pull request
Oct 23, 2026
- 11 个 @coding-flow/* 包按 fixed 版本组同步升级至 0.2.11 - flow-design:取消路由节点仅可添加到条件分支的限制,路由节点现可在主流程、条件分支等任意可添加节点处添加(codingapi/flow-engine#230,PR #60 合入的修复正式发布) Co-Authored-By: Claude Code <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
变更说明
取消流程设计器中对路由节点摆放位置的限制:此前路由节点仅能添加到条件分支(含 else 分支)内部,现在可在主流程、条件分支等任意可添加节点处添加。
RouterNodeRegistry.canAdd中的条件分支祖先判断(canAdd缺省即允许添加)关联 issue
后端验证
flow-engine 后端已新增 9 个场景的单元测试并全部通过:主流程直达/跳过结构下一节点、条件控制节点前后、跳转结束节点、条件分支内跨分支、审批节点之间、流程预览、分支首节点跳出分支。确认引擎对上述任意摆放位置均能正确流转。
测试
pnpm run buildpnpm run test(全部通过)packages/flow-design/tests/components/design-editor/nodes/router.test.ts🤖 Generated with Claude Code