Activity Diagram: How to have a connector joining in part way down a flow?

0 votes
asked Sep 13 in Question / help by muteboy (200 points)
In the following diagram, how would I get the connector to attach in where the note is?

Would I need to use split, and have the split start at the very top?

@startuml
start
:action;
:action;
:action;
note left: I want the (R) to come in here
:action;

if (OK?) then (Yes)
else (No)
(R)
endif
:action;
:action;
if (OK?) then (Yes)
else (No)
(R)
endif

:action;
:action;
if (OK?) then (Yes)
else (No)
(R)
endif
:action;
stop
@enduml

1 Answer

0 votes
answered Sep 13 by The-Lu (60,140 points)

Hi M., and all,

From:

Here is a proposal using `repeat`, as:

@startuml
start
:action;
:action;
repeat
repeat
repeat
:(R);
note left: I want the (R) to come in here
:action;
repeat while (OK?) is (No) not (Yes)
:action;
:action;
repeat while (OK?) is (No) not (Yes)
:action;
:action;
repeat while (OK?) is (No) not (Yes)
:action;
stop
@enduml

If that can help,
Enjoy,

Regards,
Th.

...