beta is missing option?

0 votes
asked Aug 24, 2016 in Closed question / help by anonymous

Perhaps I'm missing something, but in the "OLD" syntax, I can do stuff like:

@startuml
title Login User
(*) -down-> "Show login page"
if " Existing User?" then
  --> [Yes] "Show index page"
  --> (*)
else
  -right-> [No] "Wait x seconds"
  -up-> [Retry] "Show login page"
endif
@enduml

but in the "BETA" I don't see how I can go back to a previous activity

1 Answer

0 votes
answered Aug 24, 2016 by plantuml (298,440 points)

Unfortunatly, you cannot (yet).

The BETA syntax is close to programming language, and there is no way to express your diagram without some "goto" or "break" feature which are not implemented yet.

The closer you can have (but that's not perfect)

@startuml
start
:Show login page;
while (Existing user?)
  ->no;
  :Show login page;
  :Wait x second;
endwhile (yes)
:Show index page;
stop
@enduml

 

...