Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to generate right-direction arrow using PlantUML new Activity Diagram syntax?

Tags:

uml

plantuml

How can I create right-directed arrow in the PlantUML new Activity Diagram syntax?

Using the old syntax, I can use -right->, but I don't find any similar notation from the new syntax guide. How can you achieve the same result with the new syntax? I need to use the new syntax because of its Swimlane support.

Example of diagram with right arrow using old syntax:

@startuml
(*) --> "An Activity"
-right->  "Another Activity"
--> (*)
@enduml

Diagram generated using above code

Thanks.

like image 991
ryanfadholi Avatar asked Aug 19 '17 15:08

ryanfadholi


1 Answers

In theory based on the documentation of PlantUML and its source code this should work:

@startuml
start
:An Activity;
-right->
:Another Activity;
stop
@enduml

But I try it in the online editor of it and the result is different: http://www.plantuml.com/plantuml/uml/SoWkIImgAStDuG8pkAmSynGSaqioop9BAgsvT8ioqpDATEr0mlab6Qb523cW-lm2BeVKl1IWPW00

Because other formatting can be used (e.g. blue, dashed arrow) I don't understand why this is not working. Maybe this should be reported as a bug to the developers of PlantUML.

like image 131
Tamás Borbás Avatar answered Sep 21 '22 13:09

Tamás Borbás