A
A
Anton Anton2018-07-05 13:40:27
UML
Anton Anton, 2018-07-05 13:40:27

How to merge plantuml schema nodes?

There was a question based on the article https://habr.com/post/416077/
6_hqzm3c15gdakgo58m4oqbm-i0.png
I really want to replace the three "choise one" nodes with one.
The current code is this:

start
if (condition one) then (yes)
:choise one;
else (no)
if (condition two) then (no)
:choise one;
elseif (condition three) then (blank)
:choise one;
else (filled)
:choise two;
endif
endif
stop

Answer the question

In order to leave comments, you need to log in

1 answer(s)
I
i, 2018-12-10
@ilyarsoftware

!define choseOne :choise one;
!define choseTwo :choise two;

start
    if (condition one) then (yes)
        choseOne
    else (no)
        if (condition two) then (no)
            choseOne
        elseif (condition three) then (blank)
            choseOne
        else (filled)
            choseTwo
        endif
    endif
stop

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question