Swimlanes overlapping lines when using split

0 votes
asked Jun 25, 2018 in Question / help by Michael W.

Is it possible to avoid overlapping lines in swimlanes when using split? 

I want to show parallel executed tasks which detach at the end. My real world example has even more mails that are sent out and there for even more lines laying on top of eachother. 

Also hidden activities would be an options but couldn't figure out how to hide a certain activity completely that it not shown 

@startuml

title something

|#dee4e8|p1|
|#c4c9cd|p2|
|#daf0fe|Backend|

|Backend|
start
    :something;
    if (open) then (yes)
        :generate open data;
        split
            #3f3:Mail to p1\nMAIL ID: **3010**|
            |p1|
            :Receive Mail **3010**;
            detach
        split again
            |Backend|
            #3f3:Mail to p2\nMAIL ID: **3006**|
            |p2|
            :Receive Mail **3006**;
            detach
        end split
    endif
    |Backend|
    #HotPink:something else>
stop
@enduml

1 Answer

0 votes
answered 15 hours ago by The-Lu (89,200 points)

Hello M.,

In order to answer old request, for that you can use dummy label, as:

@startuml
title something

|#dee4e8|p1|
|#c4c9cd|p2|
|#daf0fe|Backend|

|Backend|
start
    :something;
    if (open) then (yes)
        :generate open data;
        split
            :Mail to p1\nMAIL ID: **3010**; <<#3f3>>
            |p1|
            label d1
            label d2
            :Receive Mail **3010**;
            detach
        split again
            |Backend|
            label d3
            :Mail to p2\nMAIL ID: **3006**; <<#3f3>>
            |p2|
            label d4
            label d5
            :Receive Mail **3006**;
            detach
        end split
    endif
    |Backend|
    :something else; <<#HotPink>>
stop
@enduml

Enjoy,

Regards,
Th.

...