I drop nodes on the diagram and create links between some ports.I use onLinkConnected event to call a method to change the link and ports styles according to connected data ports. I save the nodeDataArray and linkDataArray in my database.
Now I reload my App with the previous records saved but :
The onLinkConnected is not call. I tried to use the layoutCompleted event to find connected links on each nodes but the corresponding method (findConnctedLinks) return zero value. How to do this ?
and the results were as I expected and I think as you expect upon loading. I also tried drawing a new link (LinkingTool) and reconnecting it (RelinkingTool).
I also tried adding a “LayoutCompleted” DiagramEvent listener: