|
|
JSON Links |
Links in Rhapsody can be between instances and/or ports on instances. Links may be owned by packages or classifiers except for delegation links which are always owned by classifiers.

Links are custom JSON objects of type Link in the nested elements array of either packages or classifiers and have the following attributes:
· linkSrc = [reference to instance]
· linkTgt = [reference to instance]
· linkSrcPort (Optional, reference to port)
· linkTgtPort (Optional, reference to port)



Delegation links are slightly different in that:
a. The link should be in the nested element array of a classifier (not a package).
b. The linkSrc should be a reference to the owning classifier’s port rather than the instance:
