This is the beginning of a longer activity workflow.
The main question is, is there any way to achieve having two activities in the backwards parts of the repeat loops? I want to indicate that there should be a pause after the GUI is updated but before the API call is made again.
The second question is asked a lot, and that's the ability to link the two repeats back to the same activity, instead of having the unlabelled diamond.
Any hints or feedback very welcome. I've come from Graphiz, so the constraints of PlantUML are interesting, even though the overall understandability is hugely improved :-)
@startuml
title get attachments
start
group get attachments
repeat
repeat :GUI calls API;
backward :GUI displays\nAPI failure;
repeat while (Did API\ncall suceed?) is (NO) not (YES)
backward :GUI displays\nspinner;
repeat while (Is there a\nplaceholder?) is (YES) not (NO)
if (is there an\nattachment?) then (YES)
:GUI displays\ndownload, update\nand delete functions;
stop
else (NO)
:GUI displays\nupload form;
endif
endgroup
#LightBlue:User does something>
@enduml