Question with repeat loop [activity diagram]

0 votes
asked Sep 8 in Question / help by Marry

I would like to do this activity diagram in PlantUML :

https://ibb.co/pPXH3J5

How can I do? I try the repeat loop but it doesn' t work.

my code :

@startuml
|Swimlane1|
start
:apply;
|Swimlane2|
:Action1;
if (score>=80) then (Y)
  if (Sure?) then (Y)
    |Swimlane1|
    if (Sure?) then (Y)
      |Swimlane3|
      :Action2;
      stop
    else (N)
      |Swimlane1|
      stop
    endif
  else (N)
    |Swimlane2|
    stop
  endif
elseif (score=60~79) then (Y)
  |Swimlane3|
  :Action3;
else (score=1~59)
  |Swimlane2|
  stop
endif
@enduml

1 Answer

0 votes
answered Sep 8 by The-Lu (31,200 points)

Hello M.,

According to a backward must to be go to the initial action (Action1), a direct line between Swimlane3 (Action3) and Swimlane2 (Action1) is not possible.
There are some bug for Activity, by Swimlane.

Here are some attempts:

If that can help,
Regards,
Th.

...