Sparx Systems Forum
Enterprise Architect => Uml Process => Topic started 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
-
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.
-
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.
-
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.
-
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.
-
I guess that's what the garbage collect is for I was talking about.
q.
-
Well.. you are my hero.
Its just amazing how many different options you have with this program.
-
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.
-
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
-
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.
-
Funny Guy :)
Thanks for making my day.. Have a nice time.