How do I create a reference when using the Beta Activity Diagram syntax

+1 vote
asked Jan 30 in Question / help by dnedrow (130 points)
There is a new Beta syntax for Activity Diagrams.

With this new syntax, I can't figure out how to define a reference for a particular step (say a conditional) such that I'm able to have the flow point to that reference in a later step.

Eg., say I have a failure handler that I want all false conditional checks to point to. "as" no longer seems to work.

1 Answer

0 votes
answered Feb 15 by zimchaa (920 points)

You might be able to use a detach and references to the common flow:

@startuml
start
:Some activity;
if (Test) then (yes)
elseif (Other Test) then (yes)
else (no)
(A)
detach
endif
:Some other activity;

if (Test) then (yes)
elseif (Other Test) then (yes)
else (no)
(A)
detach
endif
:Yet another activity;
end 

(A)
:Other activity;
@enduml

...