Two activities in backwards step of repeat

0 votes
asked Nov 26, 2021 in Question / help by mdsh (120 points)

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

1 Answer

0 votes
answered Dec 7, 2021 by Martin (8,360 points)

No, I don't believe you can link two repeats back to the same activity.

Nor can you have more than one activity on the backward leg of a loop.

(Unless you count this... wink)

...