Is it possible to put text on an arrow from the "if" node to the "else if" node?

0 votes
asked Jun 28, 2017 in Closed question / help by anonymous
The new activity diagram syntax allows for something like:

 

if (condition one?) then (yes1)

    :activity1;

elseif (condition two?) then (yes2)

    :activity2;

else (no)

    :activity3;

endif

 

The "yes1" text is on the arrow from condition one to activity one.

The "yes2" text is on the arrow from condition two to activity two.

I'm looking for a way to add some text (eg: "no1") leading from the "condition one" node to the "condition two" node. Is this possible?

1 Answer

0 votes
answered Aug 5, 2017 by laverdure (200 points)

Hi, 

it is possible to do this way (before the elseif statement): 

if (condition one?) then (yes1)

    :activity1;

(no1) elseif (condition two?) then (yes2)

    :activity2;

else (no)

    :activity3;

endif

Is it what you are looking for ?

commented May 29, 2020 by pretzel
I'm not the OP, but this is just what I was looking for - thanks a lot. This should be a part of syntax example at https://plantuml.com/activity-diagram-beta - none of the examples have this part as of 29.05.2020.
...