tiagobento commented on code in PR #2546:
URL:
https://github.com/apache/incubator-kie-tools/pull/2546#discussion_r1774158220
##########
packages/dmn-editor/src/store/computed/computeDiagramData.ts:
##########
@@ -402,8 +410,13 @@ function ackRequirementEdges(
if (dmnObject.__$$element === "decision") {
(dmnObject.informationRequirement ?? []).forEach((ir, index) => {
const irHref = parseXmlHref((ir.requiredDecision ??
ir.requiredInput)!["@_href"]);
+ // Search for definitions[`@_xmlns:included${includedIndex}`] that
holds proper namespace
+ // and store the proper prefix: `included${includedIndex}` value
+ const namespaceIncludedPrefix = Object.entries(definitions)
+ .find(([key, val]) => val === namespace)?.[0]
+ ?.replace("@_xmlns:", "");
ackEdge({
- id: ir["@_id"]!,
+ id: (namespaceIncludedPrefix ? `${namespaceIncludedPrefix}:` : "") +
ir["@_id"]!,
Review Comment:
You can remove the `definitions` parameter you added too, if that ^ makes
sense.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]