Sparx Systems Forum

Enterprise Architect => General Board => Topic started by: Miguel on May 09, 2020, 11:15:18 am

Title: How to: SysML lifeline delete message in Sequence Diagrams
Post by: Miguel on May 09, 2020, 11:15:18 am
In EA 15.1 (1528) I'm working on a Sequence Diagram in SysML.  I can send a lifeline creation message to a lifeline (connect to the lifeline head).  But what I can't figure out how to do is to do the lifeline destruction message to the lifeline.  Here is what I want it to look like, from Lenny Delegatti training:
(https://i.imgur.com/1TbYIOU.png)
Where the uninstall() message is a delete message that connects to the X at the end of the lifeline.  It's not a behavior call, but a lifeline destruction occurrence.

But the closest I can get in EA is this, where an operation is invoked and the lifeline self-terminates after:

(https://i.imgur.com/go8O55y.png)

which is done via the properties as below:

(https://i.imgur.com/27pXUIT.png)

This isn't quite what I want, though.  I'd like to do something as shown in the first image above.  Does anyone know how to do this in EA?

Thanks.

Title: Re: How to: SysML lifeline delete message in Sequence Diagrams
Post by: qwerty on May 09, 2020, 05:20:36 pm
I'd say your desire is wrong. An object does not dies instantly with a destruction message but will perform some cleanup and then die. So EA's presentation reflects reality. Yours doesn't.

q.
Title: Re: How to: SysML lifeline delete message in Sequence Diagrams
Post by: Miguel on May 11, 2020, 04:05:52 am
OK, well, I can get around it by using the construct above.  I've seen use of the message directly to the lifeline destruction referenced in two different SysML books.  The intent is not to destroy an object, but to end participation of the lifeline.  But, to your point, I can change my view of it at make it more of a delete() invocation, which is fine.

Thanks for the help.

Miguel.