else if (next instanceof ParamConnection)
{
ParamConnection paramConnection = (ParamConnection) next;
DataLink link = paramConnection.getDataLink();
Param sourceParam = link.getSourceParam();
Param targetParam = link.getTargetParam();
if (sourceParam instanceof NodeParam)
{
if (! copiedSourceNodes.contains(((NodeParam) sourceParam).getSocket().getNode()))
{
// Link source or target has not been copied
continue;
}
}
else
{
// Don't copy process variable links
continue;
}
if (targetParam instanceof NodeParam)
{
if (! copiedSourceNodes.contains(((NodeParam) targetParam).getSocket().getNode()))
{
// Link source or target has not been copied
continue;
}
}
else
{
// Don't copy process variable links
continue;
}
paramConnection.encodeGeometry();
link = (DataLink) link.clone();
process.addDataLink(link);
if (! msgContainer.isEmpty())
{
// One of the end points of the link is not present in the copied set,