Author Topic: How to display relationship details between elements  (Read 228 times)

gmamvura

  • Member
  • **
  • Posts: 26
How to display relationship details between elements
« on: August 26, 2021, 16:45:00 PM »
Hi
When I connect 1 element to the other say with realize connector. How would I display on the model the default relationship details that show when I hover over the line?

I want those default relationship details to show so my newbie user can understand the relationship created between elements

I did not find anything useful on this site to use. https://github.com/archimatetool/archi/wiki/Label-Expressions

Thanks in advance.


Phil Beauvoir

  • Administrator
  • Hero Member
  • *****
  • Posts: 1619
  • Code Punk
    • Archi
Re: How to display relationship details between elements
« Reply #1 on: August 27, 2021, 14:41:10 PM »
Well, looking at https://github.com/archimatetool/archi/wiki/Label-Expressions, I figured out the following expression for a Flow relationship:

Code: [Select]
${name}
Type: ${type}
$source{name} flows to $target{name}

And here's another example for an Access relationship:

Code: [Select]
${name}
Type: ${type}
$source{name} accesses $target{name}
« Last Edit: August 27, 2021, 14:53:56 PM by Phil Beauvoir »
If you value and use Archi please consider making a donation! https://www.archimatetool.com/donate

gmamvura

  • Member
  • **
  • Posts: 26
Re: How to display relationship details between elements
« Reply #2 on: August 30, 2021, 22:18:18 PM »
That worked as manual work around, I appreciate that. 

Phil, Is there another way for the relations be automatically derived to match what will be displayed when I hoover my mouse over the relation link?
« Last Edit: August 30, 2021, 22:31:40 PM by gmamvura »

gmamvura

  • Member
  • **
  • Posts: 26
Re: How to display relationship details between elements
« Reply #3 on: August 30, 2021, 22:51:56 PM »
This label option almost work to show the default derived relation description:
code:

${name}
Type: ${type}
$source{name} ${type} $target{name}