How would I recreate the No label in this Activity diagram?

0 votes
asked Jul 17, 2023 in Question / help by stephenwithav (180 points)

https://imgur.com/gallery/JenLBvl

The following will recreate this image except for the No label.

@startuml
!theme superhero-outline
skinparam dpi 125
skinparam backgroundColor #282c34
skinparam defaultFontColor #ffffff
|User|
:GetDetails;
|ServiceProvider|
:GenerateID;
|User|
:GetPassword;
:ConfirmPassword;
-> [ GetPassword == ConfirmPassword ];
if () then (no)
        |User|
        :goto ConfirmPassword;
else (yes)
        |ServiceProvider|
        :Login;
end
@enduml

2 Answers

0 votes
answered Jul 17, 2023 by kirchsth (7,760 points)

Hi stephenwithav
I cannot reproduce the issue, I see the no in the diagram

What is your concrete problem?

BR Helmut

commented Jul 17, 2023 by kirchsth (7,760 points)

With repeat you could have the same loop too
 

commented Jul 17, 2023 by stephenwithav (180 points)
The concrete problem is getting the bottom result without the repeat.

@startuml
!theme superhero-outline
skinparam dpi 125
skinparam backgroundColor #282c34
skinparam defaultFontColor #ffffff
|User|
:GetDetails;
|ServiceProvider|
:GenerateID;
|User|
:GetPassword;
:ConfirmPassword;
|ServiceProvider|
-> [ GetPassword == ConfirmPassword ];
if () then (no)
        |User|
        :ConfirmPassword;
else (yes)
        |ServiceProvider|
        :Login;
end
@enduml
0 votes
answered Jul 19, 2023 by stephenwithav (180 points)

The solution:

@startuml
!theme superhero-outline
skinparam dpi 125
skinparam backgroundColor #282c34
skinparam defaultFontColor #ffffff
|User|
start
:GetDetails;
|ServiceProvider|
:GenerateID;
|User|
repeat :GetPassword;
:ConfirmPassword;
|ServiceProvider|
repeat while ([ GetPassword == ConfirmPassword ]) is (false) not (true)
:Login;
stop
@enduml

...