Book a Demo

Author Topic: Sequence diagragram: Message destroys object  (Read 13070 times)

Elvys

  • EA Novice
  • *
  • Posts: 7
  • Karma: +0/-0
    • View Profile
Sequence diagragram: Message destroys object
« on: September 18, 2014, 10:31:28 pm »
Hallo there,

I have again a problem which I can't solve by myself.

I wanted in my project to show how a session-object creates new object required for the session.
This fore a sequence diagram is created and the object were inserted.
Then I created a message from the session-object to the other object and set the "Lifecycle" as new (in the Message properties).
So war everything went like expected ;)

But now I wanted to show the after the object are created the session calls a specific method (with a message) to set them in a certain state.

The problem, when I create the message from session to another one, it appears the symbol indicate the lifetime of the object is over.

But I don't want this symbol appears. In the diagram the objects has just to be initialized.

Could you help me, please?

The help in http://www.sparxsystems.com/resources/uml2_tutorial/uml2_sequencediagram.html [Chapter Lifeline Start and End] was not sufficient.

Maybe it would also help to know how to determine when an object has to be destroyed.
Thank you in advance

Elvys

robinch

  • EA User
  • **
  • Posts: 21
  • Karma: +0/-0
    • View Profile
Re: Sequence diagragram: Message destroys object
« Reply #1 on: September 18, 2014, 11:11:59 pm »
Your EA is probably configured to use the "garbage collection" model in sequence diagrams for objects that are explicitly created in a sequence. You can change this behavior to explicit destruction in Tools->Options... Diagram/Sequence by unticking the Garbage Collect checkbox.

Elvys

  • EA Novice
  • *
  • Posts: 7
  • Karma: +0/-0
    • View Profile
Re: Sequence diagragram: Message destroys object
« Reply #2 on: September 18, 2014, 11:26:06 pm »
Thank you! It works fine!