Hi.
I have to complete the two lines missing, but I don't seem to get around. The stop after "Log Report", and the one "Are there elements in the list2? -> no" should go back to "Listen to Events" and the stop must be removed. Do you have an idea or recommendation of how I can do that. Thanks so much in advance.
Here is the code.
@startuml Diagram
!define LIGHTBLUE
!includeurl https://raw.githubusercontent.com/Drakemor/RedDress-PlantUML/master/style.puml
start
:Queue Handling;
:Publish Events\nnotify-keyspace-events;
if (is publish successful?) then (yes)
:Subscribe to Events;
repeat
repeat
repeat:Listen to Events;
repeat while (has a notification arrived?) is (no) not(yes)
:Check Notification;
repeat while (Is the notification linked to a sock?) is (no) not(yes)
:Get name name from the sock;
:get socks;
:Check name list1;
if(Are there elements in the list1?) then (yes)
:Remove 1st item from list1 and create a sock;
else (no)
:Check name list2;
if(Are there elements in the list2?) then (yes)
:Remove 1st item from list2 and create a sock;
else (no)
stop
endif
endif
repeat while (Is sock creation successful?) is (yes) not(no)
:Log Report;
stop
else (no)
:<b>Error</b>\n<b>Program Terminates</b>;
stop
endif
@enduml