Book a Demo

Author Topic: What am I missing  (Read 5927 times)

ChrisMW

  • EA User
  • **
  • Posts: 90
  • Karma: +2/-0
    • View Profile
What am I missing
« on: February 28, 2022, 08:57:12 pm »
I distinctly remember being able to link to activities using a control flow, yet currently, I get a message that this is not UML complant. So, create an activity diagram, add a statr node and 2 activities and when I try to add any controlflow, it refuses. This is on EA 15.2. and 15.1, however, on 14.1 it works fine (although for a control flow between two activities I have to drag from the toolbox, rather than using the diagram control). When I load the 14.1 diagram in 15.2, it shows the flow, I can edit it, but it still refuses to add new flows to those elements. What am I missing, or is this not as it should be?

qwerty

  • EA Guru
  • *****
  • Posts: 13584
  • Karma: +397/-301
  • I'm no guru at all
    • View Profile
Re: What am I missing
« Reply #1 on: February 28, 2022, 09:03:56 pm »
Probably some misconfigured MDG with constraints for relationships. You can temporarily fix that by turning of Strict Connector Syntax in the General/Connectors settings.

q.

Geert Bellekens

  • EA Guru
  • *****
  • Posts: 13523
  • Karma: +574/-33
  • Make EA work for YOU!
    • View Profile
    • Enterprise Architect Consultant and Value Added Reseller
Re: What am I missing
« Reply #2 on: February 28, 2022, 09:16:40 pm »
Yes, EA used to allow control flows between activities.
This was always wrong, and has been corrected in a recent version.

Control flows are allowed between actions (and decisions, etc...). You should not have control flows from/to Activities.

Geert

ChrisMW

  • EA User
  • **
  • Posts: 90
  • Karma: +2/-0
    • View Profile
Re: What am I missing
« Reply #3 on: February 28, 2022, 10:28:57 pm »
Ok, so if I look here:  https://www.uml-diagrams.org/activity-diagrams.html
It says "Activity Edge is an abstract class for the directed connections along which tokens or data objects flow between activity nodes. It includes control edges and object flow edges. The source and target of an edge must be in the same activity as the edge.

Activity edge is notated by an open arrowhead line connecting two activity nodes. "

And the picture shown looks to me like a control flow, so rather than discussing what the name is, which relationship should I use in EA to do what it says here?

qwerty

  • EA Guru
  • *****
  • Posts: 13584
  • Karma: +397/-301
  • I'm no guru at all
    • View Profile
Re: What am I missing
« Reply #4 on: February 28, 2022, 10:29:30 pm »
Oh yes. Did not read carefully. What Geert said!

q.

P.S. You were pointing to Actions, not Activities in UML-diagrams...

Geert Bellekens

  • EA Guru
  • *****
  • Posts: 13523
  • Karma: +574/-33
  • Make EA work for YOU!
    • View Profile
    • Enterprise Architect Consultant and Value Added Reseller
Re: What am I missing
« Reply #5 on: February 28, 2022, 10:49:54 pm »
Ok, so if I look here:  https://www.uml-diagrams.org/activity-diagrams.html
It says "Activity Edge is an abstract class for the directed connections along which tokens or data objects flow between activity nodes. It includes control edges and object flow edges. The source and target of an edge must be in the same activity as the edge.

Activity edge is notated by an open arrowhead line connecting two activity nodes. "

And the picture shown looks to me like a control flow, so rather than discussing what the name is, which relationship should I use in EA to do what it says here?

It says between activity nodes, not Activities, so the things that are defined in an Activity such as Actions, decistion, start nodes, etc...
Activities are not activity nodes, but merely the owner of these activity nodes. That's also why it says The source and target of an edge must be in the same activity as the edge e.g. all of these things are owned by the Activity.

This is comparable to StateMachines and States. StacheMachine is like Activity, the owner of the States. But on a StateMachine diagram you won't find any StateMachines.

Geert

ChrisMW

  • EA User
  • **
  • Posts: 90
  • Karma: +2/-0
    • View Profile
Re: What am I missing
« Reply #6 on: February 28, 2022, 11:08:51 pm »
Got it, I've gotten lazy with EA's previous relaxed approach..... The comparision with states and state machines was very helpful.... Thnx.....