Ability to add sync points between processes within fork

0 votes
asked Nov 16, 2021 in Wanted features by boshka (3,940 points)
edited Nov 16, 2021 by boshka

I'd like to have an ability to define named sync points between processes within fork

for example:

@startuml
    start
        fork
            :Do 1;
            == Sync 1 ==
            :Do 2;
        fork again
            :Do 3;
            == Sync 1 ==
            :Do 4;
            :Do 5;
        end fork
    stop
@enduml

so, that this would result in something like below (means that the processes must sync before doing Do 2 and Do 4):
https://i.ibb.co/2Nk3z8R/sync.png


Note: without the sync point it will result in:

PlantUML Diagram

commented Nov 17, 2021 by anonymous

There's a tedious/manual workaround.  You can insert 'labels' as spacers.  Two of them did the trick here to balance out "Do 5".
(click diagram for online server)

commented Nov 17, 2021 by boshka (3,940 points)
thank you, however, this manual workaround will break as you add more and more details to the diagram. I'd like an automated solution that will not require manual adjustments of the sync points alignments as your diagram evolves

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.
...