Files
supervision-test-repo/db/upgrade/add_reject_target_node.sql
wsmandClaude Opus 4.7 950f51f9c5 feat(bpm): 新增节点驳回目标配置表及纯增量后端接口
新增 ext_act_process_node_reject_target 表,支持一个节点配置多个可驳回目标节点。
纯增量实现:不修改已有 Controller/Service 方法逻辑,仅新增 3 个端点:
- queryRejectTargets: 查询节点已配置的驳回目标(配置页回显)
- saveRejectTargets: 保存驳回目标配置(先删后插,事务保护)
- queryRejectTargetCodes: 运行时根据 processKey+nodeCode 查询允许的目标节点

ActTaskController 仅新增 processKey/taskDefinitionKey 字段暴露,原有逻辑不变。

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
2026-07-27 14:24:26 +08:00

12 lines
788 B
SQL
Raw Permalink Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
-- 流程节点驳回目标节点配置表
-- 一对多:一个源节点可配置多个可驳回的目标节点
CREATE TABLE IF NOT EXISTS `ext_act_process_node_reject_target` (
`id` varchar(64) NOT NULL COMMENT '主键ID',
`process_id` varchar(64) NOT NULL COMMENT '流程ID(对应ext_act_process_node.process_id',
`source_node_code` varchar(100) NOT NULL COMMENT '源节点CODE(当前配置驳回的节点)',
`target_node_code` varchar(100) NOT NULL COMMENT '目标节点CODE(可以驳回到的节点)',
`target_node_name` varchar(200) DEFAULT NULL COMMENT '目标节点名称',
PRIMARY KEY (`id`),
KEY `idx_process_source` (`process_id`, `source_node_code`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COMMENT='流程节点驳回目标配置';