Book a Demo

Author Topic: Activity Diagram with Sub-Activity  (Read 29013 times)

BiSb

  • EA Novice
  • *
  • Posts: 18
  • Karma: +0/-0
    • View Profile
Activity Diagram with Sub-Activity
« on: March 13, 2023, 08:17:41 pm »
Hi,

I'm trying to display a Sub-Activity in an Activity diagram on a a higher level, like shown here:



However, if I paste the Sub-Activity as Link, I'm unable to create outgoing Control Flows. If I add it as Action (call behavior) I'm unable to display its content.

Can someone please help me out?

Greetings
Sebastian

qwerty

  • EA Guru
  • *****
  • Posts: 13584
  • Karma: +397/-301
  • I'm no guru at all
    • View Profile
Re: Activity Diagram with Sub-Activity
« Reply #1 on: March 13, 2023, 09:18:38 pm »
You need to use the instance. To show the contents you can drag the diagram inside and resize it to fit.

q.

BiSb

  • EA Novice
  • *
  • Posts: 18
  • Karma: +0/-0
    • View Profile
Re: Activity Diagram with Sub-Activity
« Reply #2 on: March 13, 2023, 09:33:19 pm »
What you mean is, I have to add the instance (Action (call behavior)) and overlay the action with diagram, right?

And additionally, there is no way to create a diagram, like Sparx is showing in their own example?

Greetings
Sebastian
« Last Edit: March 13, 2023, 09:36:24 pm by BiSb »

Geert Bellekens

  • EA Guru
  • *****
  • Posts: 13523
  • Karma: +574/-33
  • Make EA work for YOU!
    • View Profile
    • Enterprise Architect Consultant and Value Added Reseller
Re: Activity Diagram with Sub-Activity
« Reply #3 on: March 13, 2023, 10:53:13 pm »
A sub-activity doesn't really exist. Something is either an action, or it's an Activity.

Now an action can be Structured, so it can contain other actions. That is what the image is supposed to show I think.

Geert

BiSb

  • EA Novice
  • *
  • Posts: 18
  • Karma: +0/-0
    • View Profile
Re: Activity Diagram with Sub-Activity
« Reply #4 on: March 14, 2023, 08:05:34 pm »
Sub-Activity is just the wording from the EA docu:

https://sparxsystems.com/resources/gallery/diagrams/software/sw-activity_diagram_with_sub-activity.html

There is a "Structured Activity" object type in EA, but that is an Activity, which can't have (in EA) outgoing Control Flows, in contrast to the example from the EA docu. Then there are the object type "Action (call behavior)", which are instances of other Activities and can have outgoing Control Flows, but it can't display his enclosed Activity diagram.

Geert Bellekens

  • EA Guru
  • *****
  • Posts: 13523
  • Karma: +574/-33
  • Make EA work for YOU!
    • View Profile
    • Enterprise Architect Consultant and Value Added Reseller
Re: Activity Diagram with Sub-Activity
« Reply #5 on: March 14, 2023, 08:28:44 pm »
That particular example in the documentatio is completely wrong as it uses Activities connected with control flows.

EA now also doesn't allow you anymore to create such a diagram.
I'm not sure what the best way would be to create something similar in a UML compliant way.

Geert

BiSb

  • EA Novice
  • *
  • Posts: 18
  • Karma: +0/-0
    • View Profile
Re: Activity Diagram with Sub-Activity
« Reply #6 on: March 14, 2023, 08:38:15 pm »
Thx Geert, that confirms my apprehension. I guess what qwerty suggested, is a good way:

You need to use the instance. To show the contents you can drag the diagram inside and resize it to fit.

q.
« Last Edit: March 14, 2023, 11:42:34 pm by BiSb »