Author Topic: Control Lifetime - Sequence diagram  (Read 22522 times)

LukasEck

  • EA Novice
  • *
  • Posts: 6
  • Karma: +0/-0
    • View Profile
Control Lifetime - Sequence diagram
« on: September 01, 2015, 05:42:32 pm »
Hi, I have previously been modeling with Visual Paradigm. There I had lots of possibilities to control the Lifetime of my Objects.

What I mean exactly is that dashed array symbolizing the instantiation of an object and the cross at the end of the lifeline, symbolizing that the object has been finalized.

I did some research, and according to this webpage EA does this Support somehow. In the picture below (found in the link) note how ":Cart Item" is created and finished. How do I do that?

http://www.sparxsystems.com/enterprise_architect_user_guide/8.0/modeling_languages/sequencediagram.html



Thanks alot

qwerty

  • EA Guru
  • *****
  • Posts: 13584
  • Karma: +396/-301
  • I'm no guru at all
    • View Profile
Re: Control Lifetime - Sequence diagram
« Reply #1 on: September 01, 2015, 08:24:51 pm »
The start/end can be controlled via the message option Lifecycle/New and /Delete.

Also check Tools/Options/Diagram/Sequence/Garbage Collect. I currently can't recall when this is effective but it may be related to your question :)

q.

LukasEck

  • EA Novice
  • *
  • Posts: 6
  • Karma: +0/-0
    • View Profile
Re: Control Lifetime - Sequence diagram
« Reply #2 on: September 01, 2015, 09:27:59 pm »
That sounds nice, but where do I find this option. I cant normally i create Messages by clicking on a lifeline and then draw the arrow to the requested lifeline. In Options of those Messages i may not found such configuration option.

qwerty

  • EA Guru
  • *****
  • Posts: 13584
  • Karma: +396/-301
  • I'm no guru at all
    • View Profile
Re: Control Lifetime - Sequence diagram
« Reply #3 on: September 01, 2015, 09:56:12 pm »
ICR whether it has changed in recent versions. But it should be in the middle of the message Control Flow box at the bottom right.

q.

LukasEck

  • EA Novice
  • *
  • Posts: 6
  • Karma: +0/-0
    • View Profile
Re: Control Lifetime - Sequence diagram
« Reply #4 on: September 01, 2015, 10:26:40 pm »
Found it thanks. Sometimes I miss the forest for the trees.

One mor little question. As it works now tho have this creator Arrow, i now dont know how to disable the cross at the end of the lifeline. I have to create several objects, but I dont want to finalize them all in this sequence.

qwerty

  • EA Guru
  • *****
  • Posts: 13584
  • Karma: +396/-301
  • I'm no guru at all
    • View Profile
Re: Control Lifetime - Sequence diagram
« Reply #5 on: September 02, 2015, 12:20:05 am »
I guess that's what the garbage collect is for I was talking about.

q.

LukasEck

  • EA Novice
  • *
  • Posts: 6
  • Karma: +0/-0
    • View Profile
Re: Control Lifetime - Sequence diagram
« Reply #6 on: September 02, 2015, 12:36:41 am »
Well.. you are my hero.

Its just amazing how many different options you have with this program.

qwerty

  • EA Guru
  • *****
  • Posts: 13584
  • Karma: +396/-301
  • I'm no guru at all
    • View Profile
Re: Control Lifetime - Sequence diagram
« Reply #7 on: September 02, 2015, 01:08:40 am »
Hm. "Amazing" is certainly an interesting description for that  :-X What were you talking about forest and trees? So I'd call this an option forest. And you have to find the right tree.

q.

LukasEck

  • EA Novice
  • *
  • Posts: 6
  • Karma: +0/-0
    • View Profile
Re: Control Lifetime - Sequence diagram
« Reply #8 on: September 02, 2015, 01:21:10 am »
can't deny that. I must say I really like that tool, but it took me (at least it feels like) much more time to learn how to model with it, compared with VP UML

qwerty

  • EA Guru
  • *****
  • Posts: 13584
  • Karma: +396/-301
  • I'm no guru at all
    • View Profile
Re: Control Lifetime - Sequence diagram
« Reply #9 on: September 02, 2015, 06:27:42 am »
My relation to EA is also a bit ambivalent. No question: it has the best price/performance ratio. And I'd also say it's on of the best UML tools "in general" (not going to discuss what that actually means). But those Aussies have spent a lot of effort to make the UI awkward. So I once coined EAUI (where the Unique Interface first got its name by another Aussie  8-) who named the Sparx employees Sparxians). Probably there's an outpost from another planet and they are actually aliens ;)

q.

LukasEck

  • EA Novice
  • *
  • Posts: 6
  • Karma: +0/-0
    • View Profile
Re: Control Lifetime - Sequence diagram
« Reply #10 on: September 02, 2015, 04:46:06 pm »
 Funny Guy :)

Thanks for making my day.. Have a nice time.