Author Topic: How to add part/port to a class-lifeline in a sequence diagram  (Read 4017 times)

flexjoly

  • EA User
  • **
  • Posts: 27
  • Karma: +1/-0
  • Divaeloper
    • View Profile
    • Female Divaeloper
Hi,

According to this guide: https://sparxsystems.com/enterprise_architect_user_guide/14.0/model_domains/inline_sequence_elements.html

it should be possible to add parts and ports etc.
But when going to the feature-window. No part/ports or interactionpoints exists and I cannot find a way to add one.

Sometimes I can add a port, but I would like to add some parts. Or even better show a method as a part. (maybe that is not the best uml)

How can you add a part to a lifeline?

Greetz, flexjoly

Eve

  • EA Administrator
  • EA Guru
  • *****
  • Posts: 8085
  • Karma: +118/-20
    • View Profile
Re: How to add part/port to a class-lifeline in a sequence diagram
« Reply #1 on: June 25, 2019, 10:16:26 am »
What you should do is add any parts and ports to the classifier on another diagram. You'll then be able to add them to the lifeline on an interaction diagram.

flexjoly

  • EA User
  • **
  • Posts: 27
  • Karma: +1/-0
  • Divaeloper
    • View Profile
    • Female Divaeloper
Re: How to add part/port to a class-lifeline in a sequence diagram
« Reply #2 on: June 27, 2019, 12:35:39 am »
Hi,

ok, so far I only see 'port' available for a class-element.

Maybe it is not how it should be done.

Greetz, flexjoly

KP

  • EA Administrator
  • EA Expert
  • *****
  • Posts: 2919
  • Karma: +54/-3
    • View Profile
Re: How to add part/port to a class-lifeline in a sequence diagram
« Reply #3 on: June 27, 2019, 11:52:15 am »
Hi,

ok, so far I only see 'port' available for a class-element.

Maybe it is not how it should be done.

Greetz, flexjoly


If you only see Port that suggests you are looking at the Class element's context menu. Instead, use the diagram toolbox and drag either a Part or Property element (in this context they're the same thing) from the toolbox onto the Class element.
The Sparx Team
[email protected]