sequence diagram message arrows

0 votes
asked May 6, 2019 in Closed bug by Ichiro
recategorized May 11, 2019 by plantuml

Hi,

I tested the message arrows in the .
Under some conditions, it became a line different from my expectations.

@startuml
Bob_x x-> Alice : 0-4 x->
Bob_x x->x Alice_x : 0-6 x->x
Bob_x x->o Alice_o : 0-8 x->o
@enduml

Maybe else...

  • Result

  • allowsTest.bat script

See http://kn1661nk.blogspot.com/2019/05/test-message-arrow-of-plantuml-sequence.html

  • Command line
allowsTest.bat 0
  • Version

>java -jar plantuml.jar -v
(0.000 - 15 Mo) 12 Mo - PlantUML Version 1.2019.04
(0.016 - 15 Mo) 12 Mo - GraphicsEnvironment.isHeadless() false
(0.016 - 15 Mo) 12 Mo - Found 0 files
No diagram found

>

Thak you.

commented May 7, 2019 by Ichiro
I understand that in UML, x can only be attached to the end of the arrow.
In such a case, what should we do as PlantUML?
It is troublesome to keep up with changes in the UML specification, so I think that you may draw according to the instructions in the definition file.

Thank you.

2 Answers

0 votes
answered May 6, 2019 by Bastian

Hi,

as mentioned here http://plantuml.com/en/sequence-diagram in section "Change arrow style":

  • Add a final x to denote a lost message.

Thus a start with x is not allowed...

0 votes
answered May 8, 2019 by plantuml (295,760 points)
Thanks again for the feedback.

This should be fixed in last beta http://beta.plantuml.net/plantuml.jar

Best regards,
commented May 9, 2019 by anonymous
I tried beta. This problem has been resolved.

Is this another ploblem?

@startuml
participant Bob_x
participant Bob_o
participant Bob
participant Alice
participant Alice_o
participant Alice_x

Bob -\ Alice : 0-0 -\
Bob_o o-\ Alice : 0-1 o-\
Bob -\o Alice_o : 0-2 -\o
Bob_o o-\o Alice_o : 0-3 o-\o
Bob_x x-\ Alice : 0-4 x-\
Bob -\x Alice_x : 0-5 -\x
|||
Bob \-\ Alice : 2-0 \-\
Bob_o o\-\ Alice : 2-1 o\-\
Bob \-\o Alice_o : 2-2 \-\o
Bob_o o\-\o Alice_o : 2-3 o\-\o
Bob_x x\-\ Alice : 2-4 x\-\
Bob \-\x Alice_x : 2-5 \-\x
@enduml

Thank you for your quick response.
commented May 9, 2019 by plantuml (295,760 points)
commented May 10, 2019 by anonymous
Wow! That's right.
Thank you!
commented May 11, 2019 by anonymous
How can I close this ticket?
There is no check mark for closing. . .
commented May 11, 2019 by plantuml (295,760 points)
Usually, we change the category of the question to "closed bug" by editing the question (and then changing the category). We've just did it.
Thanks!
...