New activity diagram syntax: direction of links

+4 votes
asked Feb 12, 2013 in Closed feature request by anonymous
First: I like the new syntax, it is clearer.

My question: How can I direct arrows into a certain direction?

Also, is it possible to have a flow just end instead of pointing to "stop": For never-returning functions.

Example:

@startuml
start
: Get current PCB;

if (size < sizeof(sc_msgid_t) then
   :ERROR(SC_MSGALLOC|KERNEL_EILL_BUFSIZE|SC_ERR_PROCESS_FATAL,size);
   stop
else
endif
if (pool == SC_DEFAULT_POOL) then (yes)
: Get plidx from PCB;
endif

stop
@enduml
 

Here, I'd like to have ERROR() on the right side. And ERROR never returns.

1 Answer

0 votes
answered Feb 18, 2013 by plantuml (235,460 points)

We have added an undocumented "kill" keyword to stop processing:

@startuml
if (foo) then
  :error;
  kill
endif
:foo2;
@enduml

 

You cannot (yet) direct arrows in other direction.
However our plan is to implement an "horizontal" layout.
(Today, the only possible layout is "vertical").
This future layout will allow to lay activity diagram from left to right (or from right to left).
Once this will be done, then yet another layout will allow to mix vertical/horizontal layouts.

But don't expect all these before several months...

Anyway, thanks for your suggestions, and others idea are welcomed!

Regards,

commented Feb 4, 2019 by nmz787
6 years later now, can you use "horizontal" layout?
If so please update this post with the syntax.
...