In sequence-diagram it seems that incoming message can't have an alias ?

0 votes
asked Nov 14, 2017 in Wanted features by ccool (120 points)
In sequence-diagram it seems that incoming message can't have an alias ?

example :

@startuml

[->"joueur1:Joueur" as joueur1:Connexion

joueur1->Game:Start()

[->"joueur2:Joueur":Connexion

"joueur2:Joueur"->Game:Join()

Game->Game:PlayTurn()

@enduml

create an error message Syntax error ?

ty

1 Answer

0 votes
answered Nov 14, 2017 by plantuml (295,000 points)
As work around, you can use:

@startuml
participant joueur1 as "joueur1:joueur"
[->joueur1 : Connexion
joueur1->Game:Start()
[->"joueur2:Joueur":Connexion
"joueur2:Joueur"->Game:Join()
Game->Game:PlayTurn()
@enduml

http://www.plantuml.com/plantuml/uml/SoWkIImgAStDuIe0qfd9cGM9UIKAMVcbgQL5XWg9nGfAKBOLX5RYYjQrWqbRAJZdv-MbLcJcvt51nNJjt1DpKws2GQPgQ88KGmqmilA26625q8Ck1TNibP-P1zGBOaD50d8IAqDAYq2Y3gbvAK3d0W00

Does it sound good to you ?
commented Nov 14, 2017 by ccool (120 points)
perfect,
i did not understand the use of  "participant".
thank you.
...