Book a Demo

Author Topic: How to hide elements in diagram based on rules  (Read 3671 times)

Marek Luksik

  • EA Novice
  • *
  • Posts: 4
  • Karma: +0/-0
    • View Profile
How to hide elements in diagram based on rules
« on: June 18, 2013, 06:43:24 pm »
Hi together,

I have to design processes regarding risk department. Because of security reasons, when a documentation is generated, or the process os showed in EA to a third party, we are not allowed to provide detailed information about the activities in risk processes. I am looking for some mechanism, which will garantue to me to hide such activities on the screen and in the generated docu.

For example when the processes responsibilities are divaded by lanes (lane in my diagram = business role) I can quickly discover which activities belongs to risk department. Is it possible to define some rule, which will select those activities and convert it for example into a black-box pool or one general acitivty called "risk processes"?

Or other suggestions how to solve this?

Thx

Geert Bellekens

  • EA Guru
  • *****
  • Posts: 13523
  • Karma: +574/-33
  • Make EA work for YOU!
    • View Profile
    • Enterprise Architect Consultant and Value Added Reseller
Re: How to hide elements in diagram based on rules
« Reply #1 on: June 18, 2013, 06:55:02 pm »
You can either check out diagram filters, or use some kind of script/add-in to fill the ActivityPartition with a black color, effectively hiding the actions behind it.

Geert

OpenIT Solutions

  • EA User
  • **
  • Posts: 555
  • Karma: +9/-1
    • View Profile
Re: How to hide elements in diagram based on rules
« Reply #2 on: June 18, 2013, 06:57:38 pm »
You could look at using diagram filters - this want guarentee that things are hidden - it depends on you applying the filter before you print or view diagrams.

You could create your diagram with everything in, create a baseline then remove what you don't want people to see and create another baseline, then change between baselines as required. Bit over kill i suspect.

You could create your diagram with everything in then copy it to another folder and remove what you don't want people to see. Has an admin overhead.

Marek Luksik

  • EA Novice
  • *
  • Posts: 4
  • Karma: +0/-0
    • View Profile
Re: How to hide elements in diagram based on rules
« Reply #3 on: June 18, 2013, 07:02:59 pm »
Quote
You can either check out diagram filters, or use some kind of script/add-in to fill the ActivityPartition with a black color, effectively hiding the actions behind it.

Geert

I was trying to define a filter, thats fine I am able to select and to hide the elements but when you hide the, then you have a black hole there :-)

Can you show me please an example of script which will do this job for me?

Thx

Geert Bellekens

  • EA Guru
  • *****
  • Posts: 13523
  • Karma: +574/-33
  • Make EA work for YOU!
    • View Profile
    • Enterprise Architect Consultant and Value Added Reseller
Re: How to hide elements in diagram based on rules
« Reply #4 on: June 18, 2013, 07:39:52 pm »
Quote
Can you show me please an example of script which will do this job for me?

Thx
No sorry, I don't have anything that resembles such a function.

But it shouldn't be too hard either.

Loop the DiagramObjects of a diagram, figure out which one you need, and play a bit with the style. (things like "BGColor=HHH" etc...)
(and don't forget to update() the diagramObject, and reload the diagram)

Geert