Replace Actor in a Sequence diagram

32 views
Skip to first unread message

NicoVlug

unread,
Sep 14, 2015, 8:45:59 AM9/14/15
to sparx-enterprise-architect...@googlegroups.com
I would like to replace an actor element (link) in an existing sequence diagram for another actor element without redrawing large parts of the diagram. We looked for options in Advanced Element Menu and through XML Export-Import but without success. Is it possible?
[original message]

qwerty

unread,
Sep 14, 2015, 10:36:51 AM9/14/15
to sparx-enterprise-architect...@googlegroups.com
Select the lifeline and press Ctrl-L. That lets you select another classifier (actor).

q.

[original message]

NicoVlug

unread,
Sep 15, 2015, 5:25:57 AM9/15/15
to sparx-enterprise-architect...@googlegroups.com
My aim was to replace an actor element with a new actor and to delete the old element. A classifier will still link the old actor to the diagram; deleting the original actor will destroy the diagram. Did I misunderstood?
[original message]

qwerty

unread,
Sep 15, 2015, 7:05:48 AM9/15/15
to sparx-enterprise-architect...@googlegroups.com
It is not only good practice to use classified lifelines instead of concrete classes/actors. It is a must if you use version control or export packages via XMI. Else you will clobber your SDs.

If you want to exchange a lifeline-used actor with another you have to do it manually (see how easy it would have been using a classifier) or you implement some scripting to aid with it.

q.

[original message]

Bellekens@localhost Geert Bellekens

unread,
Sep 15, 2015, 8:05:16 AM9/15/15
to sparx-enterprise-architect...@googlegroups.com
I wouldn't do that.
If it's not too much work I would simply drag the correct actor on the sequence diagram (as an instance, not a link) and then reconnect the messages to this instance.
Afterwards remove the old actor from the diagram.
Once the old actor is not used anymore then you can delete it from the model.

Geert

[original message]

NicoVlug

unread,
Sep 15, 2015, 8:06:55 AM9/15/15
to sparx-enterprise-architect...@googlegroups.com
Thanks for your suggestion. We agree on the use of instances. The use-cases models I work with are not well designed (not my work). I'm just trying to improve by linking SDs to a harmonized actors & roles model. Would manual conversion involve changing GUIDs in XML and re-import?
[original message]

qwerty

unread,
Sep 15, 2015, 10:16:53 AM9/15/15
to sparx-enterprise-architect...@googlegroups.com
I would have suggested the same :-)

q.

[original message]

NicoVlug

unread,
Sep 16, 2015, 4:55:09 AM9/16/15
to sparx-enterprise-architect...@googlegroups.com
Thanks qwerty and Geert for your insights. I will manually reconnect the messages to the new actors and work my way through the diagrams.
[original message]
Reply all
Reply to author
Forward
0 new messages