how to use "as" in new syntax for activity diagram

0 votes
asked Dec 20, 2017 by JL
How in the new syntax for activity diagram I can refer to the activity in the other place of uml code? (like with "as" in the old syntax). Otherwise I will need to nest multiple if statements which is not easy to read.

e.g.

@startuml

start

:Activity1;

if (check parameters) then (true)

   :Parse file;

   if(check cond1) then (true)

    activity2:

    if(check cond2) then (true)

       activity3:

    endif

  endif

else (false -> exit with error code)

   stop

endif

stop

@enduml​
related to an answer for: separate final nodes in activity diagram

1 Answer

0 votes
answered Dec 22, 2017 by Serge Wenger Work (6,820 points)
I think you can do all what you want (without goto) with the new syntax. It is like "code" with nested if. Could you provide your previous sample like you want to write it?
...