How to move the "No" after the junction node to just after the repeat while statement?

0 votes
asked Mar 4, 2021 in Question / help by notalentgeek (140 points)

What I have:

What I want to have:

My UML:

repeat
    if (Get a Product from Redis) then (Succeed)
    else (Failed)
        break
    endif
repeat while (Are there any more Product UUIDs?) is (Yes)
->No;

1 Answer

0 votes
answered Mar 4, 2021 by The-Lu (48,920 points)
selected Mar 4, 2021 by notalentgeek
 
Best answer

Hello N.,

See similar question/answer here:

And the good syntax for that is:

@startuml
start
repeat
    if (Get a Product from Redis) then (Succeed)
    else (Failed)
        break
    endif
repeat while (Are there any more Product UUIDs?) is (Yes) not (No)
end
@enduml


[See on PU online server]

If that can help,
Regards,
Th.

commented Mar 4, 2021 by notalentgeek (140 points)
Thanks that works!
...