Book a Demo

Author Topic: Letting one element lead to two different child diagrams?  (Read 20730 times)

miksko

  • EA User
  • **
  • Posts: 69
  • Karma: +4/-0
    • View Profile
Letting one element lead to two different child diagrams?
« on: January 31, 2023, 04:04:23 am »
I want to create two levels of use case diagrams:
  • One that is strictly an overview, only including primary (major) use cases.
  • Another one that is use case diagrams for those primary use cases that carry secondary use cases, through includes and extensions.
I also want each use case to have an activity diagram.

I can make the navigation work so that when the reader double clicks a use case in the first-level overview, Sparx will open that use case's second-level diagram. But when the reader double click the same use case in that second-level diagram, I want Sparx to open the use case's activity diagram; I'm trying to create a kind of drill-down effect.

If I have a UC001, and place it in both the level one and level two diagram, the two diagrams will lead to the same instance of UC001. The element's click handler doesn't seem to bother about in which diagram the element was clicked.
I realize I can produce an instance of the UC001 and place it in one of the diagrams, letting that instance's handler point to another diagram, but that is more of a workaround. Besides, the instance will get a different visual representation in the diagram, which will confuse some readers.

Am I just missing something? I hope so, since this wasn't an issue in the modelling tool I used before.

qwerty

  • EA Guru
  • *****
  • Posts: 13584
  • Karma: +397/-301
  • I'm no guru at all
    • View Profile
Re: Letting one element lead to two different child diagrams?
« Reply #1 on: January 31, 2023, 05:10:56 am »
An element has at most one composite diagram. If you want additional navigation insert any of the hyperlink variants EA offers.

q.

philchudley

  • EA User
  • **
  • Posts: 750
  • Karma: +22/-0
  • EA Consultant / Trainer - Sparx Europe
    • View Profile
Re: Letting one element lead to two different child diagrams?
« Reply #2 on: January 31, 2023, 08:13:40 pm »
A trick I use to let an element "link" to multiple diagrams is:

1) Create a EA Custom (or other diagram type) diagram. I usually place this diagram in its own package.
2) Drag onto this diagram the diagrams you want the element to link to as Navigation Cells, and choose an image of your choice.
3) Set the element to be a composite linked to the diagram created in 1)

Phil
Models are great!
Correct models are even greater!

miksko

  • EA User
  • **
  • Posts: 69
  • Karma: +4/-0
    • View Profile
Re: Letting one element lead to two different child diagrams?
« Reply #3 on: February 11, 2023, 03:32:28 am »
Thank you Phil. That is exactly the fallback plan I was about to use, but I find it a bit meager.