How to create 2 parallel infinite while loop

0 votes
asked Apr 24, 2023 in Question / help by UtacFreak

For a university thesis I would need to create an activity diagram that allows me to show two threads that are always active and behave like the code below. The problem is that if I try to use two infinite whiles I always have the arrow (usually removed with -[hidden]->, detach) visible. If I remove the fork, the problem doesn't exist, but obviously I wouldn't have parellization. How can I do?

@startuml

skinparam defaultTextAlignment center

mainframe <b>id</b> Quick/Standard Flows

start

fork

-> <<DataBaseManager>>;

while (SearchForEntity) is ([Entity found])

if (Entity type?) then ([Bulk Entity])

:Process Bulk\nEntity;

else ([Single Entity])

:Process Single\nEntity;

endif

:Update Entity status on \nInbound DB;

endwhile

-[hidden]->

detach

fork again

-> <<QuickManager>>;

while (SearchForQuickEntity) is ([Quick Entity found])

if (Entity type?) then ([Single Entity])

:Process Single\nEntity;

:Update Entity status on \nInbound DB;

else ([Bulk Entity])

endif

endwhile([No Entity found])

-[hidden]->

detach

end fork

@enduml

Your answer

Your name to display (optional):
Privacy: Your email address will only be used for sending these notifications.
Anti-spam verification:

[Antispam2 Feature: please please wait 1 or 2 minutes (this message will disappear) before pressing the button otherwise it will fail](--------)
To avoid this verification in future, please log in or register.
...