auto(854d697c05d0): session end @ 2026-07-02T15:27:15 (+1f)
This commit is contained in:
1 parent
1d8b48746b
commit
8c1ae73801
4 files changed
+11
No files matched your search
Vendored
BIN
Binary file not shown.
Vendored
BIN
Binary file not shown.
+11
@@ -7,6 +7,7 @@ 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;
|
||||
|
||||
@@ -124,6 +125,16 @@ 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());
|
||||
}
|
||||
result.put("flowXml", flowXml);
|
||||
// sortCode 可选, 默认 0
|
||||
Object sortCode = flow.get("sortCode");
|
||||
|
||||
Reference in new issue
Block a user