Book a Demo

Author Topic: How to suppress lifeline terminator?  (Read 4838 times)

gwbjr

  • EA Novice
  • *
  • Posts: 9
  • Karma: +0/-0
    • View Profile
How to suppress lifeline terminator?
« on: March 04, 2007, 06:09:02 pm »
On a Sequence Diagram, an object created with a message that has the lifecycle property set to "new" will terminate (X and end of lifeline) after the last message is sent to it.

Many times this is correct. Other times, especially when I want to reference another sequence diagram that requires that object to exist, the lifeline termination is incorrect.

How can I cause lifelines not to terminate when they are created "new"?

BTW: I've played around to no avail with garbage collection: Tools | Options | Diagram | Sequence | Garbage Collect.

thomaskilian

  • Guest
Re: How to suppress lifeline terminator?
« Reply #1 on: March 05, 2007, 05:29:00 am »
Don't know if that helps, but in the context menu of the messages you'll find some "extend ...." options

mbc

  • EA User
  • **
  • Posts: 237
  • Karma: +1/-0
  • Embedded software developer
    • View Profile
Re: How to suppress lifeline terminator?
« Reply #2 on: March 05, 2007, 06:04:51 am »
I think you're on the right track with the garbage collection options. Switch garbage collection off, then objects will not be destroyed unless explicitly destroyed.
Existing diagrams will not be updated, at least not immediately, so you will have to fiddle around some to see the change in them.

Mikkel

gwbjr

  • EA Novice
  • *
  • Posts: 9
  • Karma: +0/-0
    • View Profile
Re: How to suppress lifeline terminator?
« Reply #3 on: March 06, 2007, 05:51:13 pm »
Thank you!

gwbjr

  • EA Novice
  • *
  • Posts: 9
  • Karma: +0/-0
    • View Profile
Re: How to suppress lifeline terminator?
« Reply #4 on: March 06, 2007, 06:35:26 pm »
mbc,

You were right. What I was missing was closing the diagram an reopening it after turning off garbage collection.

It would seem that the product needs to provide a more fine grained control of the termination of a lifeline. With garbage collection turned off, NONE of my lifelines terminate unless I send them an artificial "delete" message. This creates either quite a mess of a drawing or messages that seem to have no logical purpose.

Thanks for taking the time to help me out!

Bill

sargasso

  • EA Practitioner
  • ***
  • Posts: 1406
  • Karma: +1/-2
  • 10 COMFROM 30; 20 HALT; 30 ONSUB(50,90,10)
    • View Profile
Re: How to suppress lifeline terminator?
« Reply #5 on: March 07, 2007, 03:07:49 am »
Quote
It would seem that the product needs to provide a more fine grained control of the termination of a lifeline. With garbage collection turned off, NONE of my lifelines terminate unless I send them an artificial "delete" message. This creates either quite a mess of a drawing or messages that seem to have no logical purpose.


You are right.  As a matter of fact I reckon its a bug.

Please raise a request for this. It may add some weight to mine.


bruce
"It is not so expressed, but what of that?
'Twere good you do so much for charity."

Oh I forgot, we aren't doing him are we.

gwbjr

  • EA Novice
  • *
  • Posts: 9
  • Karma: +0/-0
    • View Profile
Re: How to suppress lifeline terminator?
« Reply #6 on: March 07, 2007, 04:44:59 pm »
Bruce,

I've just submitted a bug report.

Thanks.
Bill