How to get the values of the two nodes while relinking the nodes

Hi Walter,

I have linked two nodes and called a service action. If i want to relink to the different node without deleting the link. I am not getting the values of the both nodes. can u suggest me, how to get the values while relinking the nodes.

Otherwise, Is there any methods to restrict relinking ?

If you look at the documentation for the “LinkRelinked” DiagramEvent, at DiagramEvent | GoJS API, you’ll see that you can get the previously connected port object via the DiagramEvent.parameter property.