How can we "force" the location of the arrow start in activity diagram

0 votes
asked Apr 27, 2017 in Won't implement by anonymous

Using the typical code :

If (action1) then (true)

     : do A;

Else (false)

     :Do B|



Depending of (what ? Random ?), on graphical representation, the arrow to "do A" and the other to "do B", in other word true or false, will start from the right, the left, or the bottom of the "IF"  hexagonal shape.

Is there a way to force right, left, bottom for each arrow ?

Thanks in advance


1 Answer

0 votes
answered Apr 27, 2017 by plantuml (295,000 points)

No, you cannot force it.

The direction is computed by a determinist algorithm (so no random).
In general, the action after the "then" in on left, the one after the "else" is on right.

There are exception, especially if one branch is a simple "stop".

If (action1) then (true)
else (false)
     :do A;

The algorithm is not perfect and we can improve it.
So you can post here some examples that does not work well.


commented Apr 27, 2017 by anonymous
Thanks for your answer. I will try to compile some example, where there is typical mismatch (such as line crossing)