Archi Forum

Discussion Boards => General Archi Discussion => Topic started by: gmamvura on August 26, 2021, 15:45:00 PM

Title: How to display relationship details between elements
Post by: gmamvura on August 26, 2021, 15: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.

Title: Re: How to display relationship details between elements
Post by: Phil Beauvoir on August 27, 2021, 13:41:10 PM
Well, looking at https://github.com/archimatetool/archi/wiki/Label-Expressions, I figured out the following expression for a Flow relationship:


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


And here's another example for an Access relationship:


${name}
Type: ${type}
$source{name} accesses $target{name}
Title: Re: How to display relationship details between elements
Post by: gmamvura on August 30, 2021, 21: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?
Title: Re: How to display relationship details between elements
Post by: gmamvura on August 30, 2021, 21:51:56 PM
This label option almost work to show the default derived relation description:
code:

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