New activity syntax: how can I get two arrows going to a single activity?

+2 votes
asked Sep 11, 2014 in Wanted features by anonymous

The new syntax for activities looks cool, however, I can't find an example of two arrows going to a single activity.

Basically, how do I translate this to the new syntax:

@startuml
(*)  --> "check input"
If "input is verbose" then
--> [Yes] "turn on verbosity"
--> "run command"
else
--> "run command"
Endif
-->(*)
@enduml
 
If you could add an example on the website that would be more than sufficient. Thanks!
 
Alnoor
commented Dec 10, 2014 by Human (120 points)
Is this actually a bug instead of a wanted feature, since this works properly in the old version?
commented Dec 12, 2014 by anonymous
I guess so. When I asked the question, I thought it just be a case of not having an example on the website.

1 Answer

0 votes
answered Dec 12, 2014 by plantuml (294,960 points)

You can have:

start
:check input;
if (input is verbose) then (yes)
:turn on verbosity;
endif
:run command;
stop

 

But I guess that you need is more related to some kind of goto.

See http://plantuml.sourceforge.net/qa/?qa=1626/there-refer-existing-activity-inside-activitydiagram-goto

...