Welcome to PlantUML Q&A, where you can ask questions and receive answers from other members of the community.

You can also submit new features request and vote for them.

New shapes for entrypoints and exitpoints

0 votes
UML activity diagrams can be more complex than currently supported by either old- or new-style PlantUML activity diagrams.
In the example below, I managed to almost get what I want by leveraging PlantUML state diagram, which notably support entrypoints and exitpoints that can be used in place of InputPins and OutputPins (respectively).
However, for the illusion to fully work, the entrypoints & exitpoints should be empty squares instead of circles (without the X inside exitpoints).
This square shape could be associated to <<inputPin>> and <<outputPin>> stereotypes, for instance.
There should also be expansion nodes (e.g., with <<expansionInput>> and <<expansionOutput>> stereotypes), shaped as four squares stuck together to form a 4 by 1 rectangle.
Note that InputPins and OutputPins have the same shapes. Similarly, ExpansionNodes used as input and output also have the same shapes. It is however convenient to keep separate stereotypes (e.g., <<inputPin>> and <<outputPin>>) to control their placement.
Do you think this is possible?
asked Mar 14, 2016 in Wanted features by fred (730 points)

1 Answer

0 votes
Best answer

Thanks for the suggestion. This part of code is still experimental, but we like the idea!

So in last beta https://dl.dropboxusercontent.com/u/13064071/plantuml.jar

You can have something like:

state Somp {
  state entry1 <<expansionInput>>
  state entry2 <<expansionInput>>
  state sin
  entry1 --> sin
  entry2 -> sin
  sin -> sin2
  sin2 --> exitA <<expansionOutput>>

[*] --> entry1
exitA --> Foo
Foo1 -> entry2

We have also added <<inputPin>> and <<outputPin>> stereotypes.

Very few tests have been done, so feedback is welcome!


answered Mar 14, 2016 by plantuml (113,980 points)
selected Mar 15, 2016 by fred
Thanks! It works as expected and is quite useful.

The only issue I have found so far is that expansion nodes are not properly rotated when using "left to right direction".
On the last beta https://dl.dropboxusercontent.com/u/13064071/plantuml.jar
We have (somehow) fixed the "left to right direction" issue.
There are some overlap between labels and expansion nodes, but unfortunatly, we cannot fix it.
Confirmed: ExpansionNodes correctly oriented now.

Other issues are mostly cosmetic, and I plan to continue with other dedicated topics (like the one on "hide empty description").

Support This Project Offer 250 Mo! Follow PlantUML on Twitter