New shapes for entrypoints and exitpoints

0 votes
asked Mar 14, 2016 in Wanted features by fred (920 points)
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?

1 Answer

0 votes
answered Mar 14, 2016 by plantuml (160,280 points)
selected Mar 15, 2016 by fred
Best answer

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

So in last beta

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!


commented Mar 15, 2016 by fred (920 points)
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".
commented Mar 15, 2016 by plantuml (160,280 points)
On the last beta
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.
commented Mar 16, 2016 by fred (920 points)
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").