Hello all, my task is to clone a activity diagram originalAD, delete some, but not all, of the edges and nodes from the cloned diagram clonedAD. Afterwards a callbehavior from originalAD to clonedAD shall be added with originalAD.addCallBehavior(clonedAD).
The result is: the callbehavior is to be seen in the Model View, but not in the diagram view. Even the Feature-window says it is a CallBehavior.
What do I miss?
Rhapsody version 8.4
Here my code:
IRPPackage newPack = (IRPPackage) project.findElementByGUID(packageGuid);
IRPFlowchart clonedAD = (IRPFlowchart) originalAD.clone("newDiagramName", newPack);
// deleteUnwantedNodes(project, app, clonedGraphicNodesList, selectedGraphicNodesList);
// deleteUnwantedEdges(project, clonedGraphicEdgesList, selectedGraphicEdgesList);
IRPState newElement = originalAD.addCallBehavior(clonedAD);
originalAD.createGraphics();
clonedAD.createGraphics();
saveProject();
#SupportMigration#Sustainability#Support#Engineering