Book a Demo

Author Topic: Requirement on sequence diagram  (Read 3847 times)

Lanrets

  • EA Novice
  • *
  • Posts: 5
  • Karma: +0/-0
    • View Profile
Requirement on sequence diagram
« on: August 25, 2022, 05:15:46 pm »
Hello :-)

I'm new to EA and I struggle with adding requirement to a sequence diagram.
Is it possible?

qwerty

  • EA Guru
  • *****
  • Posts: 13584
  • Karma: +397/-301
  • I'm no guru at all
    • View Profile
Re: Requirement on sequence diagram
« Reply #1 on: August 25, 2022, 05:21:50 pm »
I don't think so (since they are elements). You can add notes that refer to requirements or probably drag a requirements diagram onto a SD. Needs experiments...

q.

Lanrets

  • EA Novice
  • *
  • Posts: 5
  • Karma: +0/-0
    • View Profile
Re: Requirement on sequence diagram
« Reply #2 on: August 25, 2022, 07:00:37 pm »
Dragging creates class role, which is not a desired solution.
Yes, note is a workaround which I'm currently using, but it's not robust...

Richard Freggi

  • EA User
  • **
  • Posts: 498
  • Karma: +18/-7
    • View Profile
Re: Requirement on sequence diagram
« Reply #3 on: August 25, 2022, 08:22:18 pm »
Model requirements with use case diagrams.  Sequence diagrams show how you meet the requirement, not what the requirement is.
I append my sequence diagrams to the requirement use case and use the same name for the use case and the sequence diagram.

qwerty

  • EA Guru
  • *****
  • Posts: 13584
  • Karma: +397/-301
  • I'm no guru at all
    • View Profile
Re: Requirement on sequence diagram
« Reply #4 on: August 25, 2022, 09:17:35 pm »
Basically that's also what I do. However, I think that placing a requirement on any diagram (including SD) should be possible. I have no idea whether there is a limitation per UML spec. (If so, EA would be wrong otherwise in allowing the use of classes as lifelines.)

q.

Eve

  • EA Administrator
  • EA Guru
  • *****
  • Posts: 8110
  • Karma: +119/-20
    • View Profile
Re: Requirement on sequence diagram
« Reply #5 on: August 29, 2022, 10:55:02 am »
I have no idea whether there is a limitation per UML spec.
UML doesn't even have requirements.

SysML requirements are stereotyped classes.

(If so, EA would be wrong otherwise in allowing the use of classes as lifelines.)
My personal view is that classes as lifelines is wrong according to UML. Unfortunately our users have a strong history of objecting to us removing wrong functionality. Even with that view I can't see a way we can remove that functionality without negatively impacting users.

Paolo F Cantoni

  • EA Guru
  • *****
  • Posts: 8626
  • Karma: +259/-129
  • Inconsistently correct systems DON'T EXIST!
    • View Profile
Re: Requirement on sequence diagram
« Reply #6 on: August 29, 2022, 06:15:51 pm »
My personal view is that classes as lifelines are wrong according to UML. Unfortunately, our users have a strong history of objecting to us removing wrong functionality. Even with that view, I can't see a way we can remove that functionality without negatively impacting users.
To paraphrase "Animal Farm", All users are unreasonable, but some are more unreasonable than others.  If the "wrong" functionality were conditionalised, those of us who agree with you could disable it and not allow classes to be lifelines.


Just a thought,
Paolo
Inconsistently correct systems DON'T EXIST!
... Therefore, aim for consistency; in the expectation of achieving correctness....
-Semantica-
Helsinki Principle Rules!

qwerty

  • EA Guru
  • *****
  • Posts: 13584
  • Karma: +397/-301
  • I'm no guru at all
    • View Profile
Re: Requirement on sequence diagram
« Reply #7 on: August 29, 2022, 07:34:44 pm »
Similar to the connector syntax checking this could be one more flag in the option jungle. Per default this should be unchecked when labeled "Allow classes in SDs (likely to break your model when using XMI ex/import)". There is only one hint in the help about that (and I can't remember where). Living with inconsistencies is possible. But it will hurt. And you may eventually suffer death.

q.