aswathitv commented on code in PR #3133:
URL:
https://github.com/apache/incubator-kie-tools/pull/3133#discussion_r2101633297
##########
packages/dmn-editor/src/normalization/autoGenerateDrd.ts:
##########
@@ -173,8 +175,16 @@ export async function autoGenerateDrd(args: {
for (const drgEdge of updatedDrgEdgesWithExternalNodes) {
const edge = updatedEdgesByIdWithExternalNodes.get(drgEdge.id);
- const sourceNode = updatedNodesByIdWithExternalNodes.get(drgEdge.sourceId);
- const targetNode = updatedNodesByIdWithExternalNodes.get(drgEdge.targetId);
+ const { namespace: sourceIdNamespace, id: source } =
parseXmlHref(drgEdge.sourceId);
+ const { namespace: targetIdNamespace, id: target } =
parseXmlHref(drgEdge.targetId);
+
+ const sourceNode = updatedNodesByIdWithExternalNodes.get(
+ sourceIdNamespace === args.model.definitions["@_namespace"] ?
`#${source}` : drgEdge.sourceId
+ );
+
+ const targetNode = updatedNodesByIdWithExternalNodes.get(
+ targetIdNamespace === args.model.definitions["@_namespace"] ?
`#${target}` : drgEdge.targetId
+ );
Review Comment:
Added the required changes
--
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]