while-loopplantumlactivity-diagram

Endless while loop with PlantUML


Using PlantUML, the following results in an arrow into nowhere as exit for the loop. How do I get rid of the arrow to nowhere to get an endless loop?

start
while (Always)  is ( )
  :do something;
endwhile ( )

See resulting picture here


Solution

  • You can hide the arrow:

    while (Always)
      :do something;
    endwhile
    -[hidden]->
    detach
    

    Endless loop