You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@kie.apache.org by ku...@apache.org on 2026/10/15 05:31:44 UTC
(incubator-kie-tools) branch main updated: kie-tools-isses#4044: BPMN editor does not update BPMNPlane bpmnElement (#4045)
This is an automated email from the ASF dual-hosted git repository.
Kusuma04-dev pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/incubator-kie-tools.git
The following commit(s) were added to refs/heads/main by this push:
new 745c6a20006 kie-tools-isses#4044: BPMN editor does not update BPMNPlane bpmnElement (#4045)
745c6a20006 is described below
commit 745c6a200067fda5b707028650ce4766bc6418eb
Author: Jozef Marko <Jo...@ibm.com>
AuthorDate: Thu Oct 15 07:31:38 2026 +0200
kie-tools-isses#4044: BPMN editor does not update BPMNPlane bpmnElement (#4045)
---
packages/bpmn-editor/src/mutations/renameGlobalProperties.ts | 8 ++++++++
1 file changed, 8 insertions(+)
diff --git a/packages/bpmn-editor/src/mutations/renameGlobalProperties.ts b/packages/bpmn-editor/src/mutations/renameGlobalProperties.ts
index c61ad9990d7..316a34cb00d 100644
--- a/packages/bpmn-editor/src/mutations/renameGlobalProperties.ts
+++ b/packages/bpmn-editor/src/mutations/renameGlobalProperties.ts
@@ -39,4 +39,12 @@ export function updateProcessId({
participant["@_processRef"] = newId;
}
}
+
+ // Keep the DI layer in sync, otherwise BPMNPlane.bpmnElement becomes a dangling IDREF.
+ definitions["bpmndi:BPMNDiagram"]?.forEach((diagram) => {
+ const plane = diagram["bpmndi:BPMNPlane"];
+ if (plane?.["@_bpmnElement"] === oldProcessId) {
+ plane["@_bpmnElement"] = newId;
+ }
+ });
}
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@kie.apache.org
For additional commands, e-mail: commits-help@kie.apache.org