In activity diagrams, the text on arrows in not working properly. See the folowing example:
@startuml
start
if (A) then (yes)
-[#black]-> aa1;
:AA;
-[#black]-> aa2;
elseif (B) then (yes)
:BB;
-[#black]-> bb2;
elseif (C) then (yes)
-[#black]-> cc1;
:CC;
elseif (D) then (yes)
:DD;
else (no)
-[#black]-> ee1;
:EE;
-[#black]-> ee2;
endif
stop
@enduml
The output is:
The text replaces certain text from the if or is not shown. The following changes in the output would fix this bug:
- Place text on arrow directly after an if, while, etc. on the head of the arrow (where the point is) and on the tail of the arrow where the label from the if, while, etc. is, so that those are no longer replaces. This concerns not only the 'yes' but also the 'no' in the example. See aa1, cc1 and ee1.
- Place text on arrow of a last activity in an if, while, etc. In the example, text aa2 and bb2 would appear after AA and BB respectively. Note that the color is properly changed.