Sparx Systems Forum

Enterprise Architect => Uml Process => Topic started by: LukasEck on September 01, 2015, 05:42:32 pm

Title: Control Lifetime - Sequence diagram
Post by: LukasEck 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

(http://www.sparxsystems.com/enterprise_architect_user_guide/8.0/images/example%20of%20a%20sequence%20diagram.png)

Thanks alot
Title: Re: Control Lifetime - Sequence diagram
Post by: qwerty 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.
Title: Re: Control Lifetime - Sequence diagram
Post by: LukasEck 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.
Title: Re: Control Lifetime - Sequence diagram
Post by: qwerty 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.
Title: Re: Control Lifetime - Sequence diagram
Post by: LukasEck 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.
Title: Re: Control Lifetime - Sequence diagram
Post by: qwerty on September 02, 2015, 12:20:05 am
I guess that's what the garbage collect is for I was talking about.

q.
Title: Re: Control Lifetime - Sequence diagram
Post by: LukasEck 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.
Title: Re: Control Lifetime - Sequence diagram
Post by: qwerty 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.
Title: Re: Control Lifetime - Sequence diagram
Post by: LukasEck 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
Title: Re: Control Lifetime - Sequence diagram
Post by: qwerty 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.
Title: Re: Control Lifetime - Sequence diagram
Post by: LukasEck on September 02, 2015, 04:46:06 pm
 Funny Guy :)

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