Support for dataflows (directed graph of components with input and output ports)

0 votes
asked Jun 15, 2022 in Wanted features by jean-marc

I would like to use plantuml to create dataflows similar to what can be (painly) achieved with:

The idea would be to declare components and their input / ouput ports first and then to describe how output port of a given component is connected to input of other components.

Ports could be named

1 Answer

0 votes
answered Jun 16, 2022 by The-Lu (57,460 points)
Best answer

Hello J.-M.,

  • Is this attempt can answer to your request?
component C {
  portin p1
  portin p2
  portin p3
  portout po1
  portout po2
  portout po3
  file f1

i --> p1
i --> p2
i --> p3
p1 --> f1
p2 --> f1
po1 --> o
po2 --> o
po3 --> o
f1 --> po1

See new doc here:


commented Jun 17, 2022 by anonymous
That's great. Is it possible to have port description and name using alias or equivalent.

Something like:

port "port 1" as p1
commented Jun 17, 2022 by The-Lu (57,460 points)

Yes it is possible, but with some overlapping... as:

component C {
  portin "Port 1" as p1
  portin "Port 2" as p2
  portin "Port 3" as p3
  portout "Port o1" as po1
  portout "Port o2" as po2
  portout "Port o3" as po3
  file f1