Author Topic: Filtering elements on diagram?  (Read 2884 times)

ea0522

  • EA User
  • **
  • Posts: 134
  • Karma: +5/-0
    • View Profile
Filtering elements on diagram?
« on: August 01, 2024, 04:07:17 pm »
In our repository, we have diagrams showing process descriptions using ArchiMate Business Layer elements.
The same diagram also shows how the Business Layer elements are related to Application Layer elements.
I.e. a Business Process is serviced by an Application Service which is realised by an Application Component.
For most of our users, the Business Layer will be sufficient.
Some of our users are interested in both layers.

Would it be possible to have a user (not the creator) of the diagram to filter on the type of elements to be shown in the diagram?
I.e. do not show all elements belonging to the Application Layer. (Or only show elements belonging to the Business Layer).

The brute force option is to duplicate the complete diagram and remove the Application Layer elements.
This however does not have my preference as it will be hard to maintain the diagrams.

Geert Bellekens

  • EA Guru
  • *****
  • Posts: 13283
  • Karma: +556/-33
  • Make EA work for YOU!
    • View Profile
    • Enterprise Architect Consultant and Value Added Reseller
Re: Filtering elements on diagram?
« Reply #1 on: August 01, 2024, 04:26:11 pm »
Have you tried the diagram filters?

I guess it should be possible to create a filter to do just that.

Geert

ea0522

  • EA User
  • **
  • Posts: 134
  • Karma: +5/-0
    • View Profile
Re: Filtering elements on diagram?
« Reply #2 on: August 01, 2024, 05:12:08 pm »
Thanks for the quick reply.
And yes, I tried the diagram filters however, they only seem to work for me, not for anyone else.
I was hoping for a solution which would be more user-friendly like a button on the diagram or something.

Geert Bellekens

  • EA Guru
  • *****
  • Posts: 13283
  • Karma: +556/-33
  • Make EA work for YOU!
    • View Profile
    • Enterprise Architect Consultant and Value Added Reseller
Re: Filtering elements on diagram?
« Reply #3 on: August 01, 2024, 05:38:46 pm »
Thanks for the quick reply.
And yes, I tried the diagram filters however, they only seem to work for me, not for anyone else.
I was hoping for a solution which would be more user-friendly like a button on the diagram or something.
You should be able to define diagram filters that can be used by anyone.
If you want a "button on the diagram", you'll have to script something.

Geert

DeBAAT

  • EA User
  • **
  • Posts: 63
  • Karma: +2/-0
    • View Profile
Re: Filtering elements on diagram?
« Reply #4 on: August 02, 2024, 04:28:49 pm »
Quote
If you want a "button on the diagram", you'll have to script something.
This sounds very interesting.
Can't find anything in the documentation on how to get a "button on the diagram".
Any hints as to where to look?

Geert Bellekens

  • EA Guru
  • *****
  • Posts: 13283
  • Karma: +556/-33
  • Make EA work for YOU!
    • View Profile
    • Enterprise Architect Consultant and Value Added Reseller
Re: Filtering elements on diagram?
« Reply #5 on: August 02, 2024, 04:32:04 pm »
Quote
If you want a "button on the diagram", you'll have to script something.
This sounds very interesting.
Can't find anything in the documentation on how to get a "button on the diagram".
Any hints as to where to look?
You can't get a literal button on a diagram, but you can create a script that you can execute from the context menu on a diagram, or as a reaction to opening the diagram.

Geert

shimon

  • EA User
  • **
  • Posts: 133
  • Karma: +5/-0
    • View Profile
Re: Filtering elements on diagram?
« Reply #6 on: August 05, 2024, 03:20:20 pm »
Hi,
Did you consider using the Diagram Legend to accentuate the more relevant elements?
The others are still visible, but the "interesting ones" may have a different background color or different boundary color and width.
Right clicking on the Legend gives anyone the choice of "Toggle Auto Color".
You can define more than one legend one any single diagram, and they can be-reused by dragging them onto many diagrams.
It's not a perfect solution, but may suffice.
If you are into experimenting, you may choose a default font the is the same color as the goto color of the legend, and then these elements will be almost invisible when using this filter.
Sincerely,
Shimon

ea0522

  • EA User
  • **
  • Posts: 134
  • Karma: +5/-0
    • View Profile
Re: Filtering elements on diagram?
« Reply #7 on: August 06, 2024, 03:44:12 pm »
Thanks for the suggestion Shimon.
I did try the legend option and it has some flaws.
First is that I cannot change the color of the font on the elements, so they are still visible. And I don't know how to change that with a filter of some sort.
Furthermore, there is the issue of publishing the diagrams in Prolaborate.
It looks like Prolaborate is not supporting dynamical diagrams. At least I have not found an option to toggle the "Auto color" option of the legend element to show a different diagram in Prolaborate.
Still looking for an elegant solution, the best I can think of now is to have two diagrams. Despite the additional burden of maintainance...