To color ports by their type
- Create a Legend and a Legend Item.
- Right-click the Legend Item to open its Specification window.
- Click three dots next to the Adornment property to edit it.
- In the Adornment Properties dialog, specify the desired adornment properties. Click OK.
- Click three dots next to the Elements by Condition property to edit it. Elements by Condition dialog opens.
Click Expert at the bottom of the dialog. The dialog is switched to the Expert mode.
- Select Create operation → Metachain Navigation.
Click Insert.
Under Metaclass or Stereotype, select Port, and under Property, select Type.
- Select Create operation → Operation from Model → Contains.
- Drag-and-drop Metachain Navigation onto Input parameter.
- Select Obj → Element → select the port type to verify.
- Click OK.
Sample project: Coloring ports by their type.mdzip