@MrBuffalo the presence of a found message does not imply the presence of a lost message, they are not correlated
– brunoFeb 16 '21 at 20:38
2
And moreover, normally there should be no actor in a sequence diagram, because the actor does not belong to an enclosing classifier of the system.
– ChristopheFeb 16 '21 at 20:49
@Christophe My idea was to represent a sequence diagram of a screen that can be called by any actor on the system. Is this a correct way?
– MrBuffaloFeb 17 '21 at 07:41
@MrBuffalo A Lifeline represents a ConnectableElement (§17.12.17.4), but an Actor is not a ConnectableElement, so you cannot in theory if your actor is a 'real' actor
– brunoFeb 17 '21 at 07:43
@bruno sorry but your link doesnt work, i cant check it. I thought about this solution given his
definition: A found message is a message where the receiving event occurrence is known, but there is no (known) sending event occurrence.
– MrBuffaloFeb 17 '21 at 07:51
@bruno yes, they are. I'm trying to generalize a common behavior of multiple actresses. is it better to create a sequence diagram for each actor?
– MrBuffaloFeb 17 '21 at 08:03
2
@MrBuffalo again a lifeline cannot represent an actor (from use case), in your case actors are very probably instances of class. Note they can be shown as actor even they are not. After there is no rule in UML saying what an interaction (possibly shown through a sequence diagram) must represents, you are free, the only rule is to have readable diagrams and they must have a 'real' goal e.g. to say something interesting
– brunoFeb 17 '21 at 08:13
@bruno thanks, i'm a bit confused about. My teacher don't explain me that and he uses actor (from use case) to start the sequence diagram.
– MrBuffaloFeb 17 '21 at 08:19
@MrBuffalo is quite common, but even you see an actor this must not be really an actor but just the use of an actor icon, else the standard is not followed
– brunoFeb 17 '21 at 08:23
2
@MrBuffalo That’s embarrassing, when teachers don’t show it the right way ;-) To his/her defence, despite being not fully legal, it’s a widely used practice. See this other question for more details: https://stackoverflow.com/a/63098812/3723423
– ChristopheFeb 17 '21 at 08:41
@Christophe now i can know that.. Without this question I had an incorrect view of the sequence diagrams. Thanks to all.
– MrBuffaloFeb 17 '21 at 08:52
Actors can be represented by lifelines. Lifelines represent properties and parameters (aka connectable elements). So in order to represent an actor or a class there needs to be a property or parameter typed by them. Actors are the type of the property of the association that connects them to use cases. Or there could be an interaction owned property typed by an actor. Some tools make this completely transparent to the modeler by simply creating this property in the background when an actor is dropped on a sequence diagram.
– Axel ScheithauerFeb 17 '21 at 13:03