Directing Activity Joins on Activity Beta

0 votes
asked Jan 3, 2018 in To be sorted by alevinetx (160 points)

In the original Activity, I can identify nodes using "as".   This doesn't appear to be supported in the new Beta format.

So now I have a diagram where I'd like to force the connection between two paths, but I can't figure out what I'm doing wrong.

In this diagram, I want a line from "BLP4" to "Common 3".  If I remove the 'detach', BLP4 merges back in to its originating trunk.  These are conditional branches, so using fork/join isn't the proper notation.

Source:  https://goo.gl/yo8T2b

Thank you !!

1 Answer

+2 votes
answered Jan 4, 2018 by Serge Wenger Work (15,620 points)
selected Jan 4, 2018 by alevinetx
 
Best answer

Hello,

The new notation is really like code. You cannot do what you want without GOTO. a workaround can be:

@startuml
start
if (RNC) then (NF)
    :NF1;
    :NF2;
    :NF3;
    :Common 1 |
    :Common 2 |
' end NF
    
elseif (BFL) then (BLU) 
    :BLU1;
    :BLU2;
    :BLU3;
    :Common 1 |
    :Common 2 |
    ' end BLU
else (BLP)
    :BLP1;
    :BLP2;
    :BLP3;
    :BLP4;
    'end BLP
endif   
:Common 3 |
stop
@enduml

commented Jan 4, 2018 by alevinetx (160 points)
I see.  A sacrifice in ideal view, but it provides the linkage desired.   Thank you!

I tried doing this same chart in the original Activity syntax.  I don't know if I was doing something wrong, but the layout was just crazy.  The new one is so clean w/o worrying about items flying around random spots.  I love this tool!!
...