Une image contenant texte, signe

Description générée automatiquement

JSON Links

 

Overview

 

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.

A screenshot of a computer

Description automatically generated

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)

 

 

A close-up of a computer code

Description automatically generated

 

 

A screen shot of a computer code

Description automatically generated

Delegation links

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:

 

A close-up of a computer code

Description automatically generated