auto(8d008ee41e9e): session end @ 2026-07-02T20:42:24 (+1f)
This commit is contained in:
1 parent
e525be4f2f
commit
9a0f053792
1 file changed
+4
-11
+4
-11
@@ -7,7 +7,6 @@ import lombok.extern.slf4j.Slf4j;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.stereotype.Service;
|
||||
import ssw.common.service.AIRepairService;
|
||||
import ssw.common.util.BpmnDiagramFixer;
|
||||
import ssw.common.util.JsonRepairUtil;
|
||||
import ssw.common.util.SswLLMClient;
|
||||
|
||||
@@ -125,16 +124,10 @@ public class AIRepairServiceImpl implements AIRepairService {
|
||||
Map<String, Object> result = new HashMap<>();
|
||||
result.put("enCode", flow.getOrDefault("enCode", ""));
|
||||
result.put("fullName", flow.getOrDefault("fullName", ""));
|
||||
// v0.15+ (P0-7, BS-新30 workflow): BPMN 图形补全
|
||||
// LLM 复杂流程 (10+ 节点) 经常跳过 bpmndi:BPMNShape/BPMNEdge 图形生成
|
||||
// Flowable 部署要求完整 DI, 缺图形时返 "部署错误"
|
||||
// 修复: 检测到缺图形时自动补全 (网格布局, 4 列)
|
||||
if (BpmnDiagramFixer.isMissingDiagram(flowXml)) {
|
||||
String before = flowXml;
|
||||
flowXml = BpmnDiagramFixer.fixDiagram(flowXml);
|
||||
log.info("[AIRepair-workflow] 检测到缺 BPMN 图形, 自动补全: {} → {} 字符",
|
||||
before.length(), flowXml.length());
|
||||
}
|
||||
// P0-7/P0-8 撤回: BpmnDiagramFixer 已删除
|
||||
// 原因: dacli 没读 jnpf 自研 autoLayout 源码就猜算法不好 (违反 4 步法)
|
||||
// 实际 jnpf BPMNTreeBuilder + BFS + 碰撞算法完整支持多 gateway 多分支
|
||||
// dacli 不重写 jnpf 算法, 由 web 端 jnpf-bpmn autoLayout 处理
|
||||
result.put("flowXml", flowXml);
|
||||
// sortCode 可选, 默认 0
|
||||
Object sortCode = flow.get("sortCode");
|
||||
|
||||
Reference in new issue
Block a user