chain components

0 votes
asked Nov 20, 2020 in Wanted features by setop (320 points)
edited Nov 20, 2020 by setop

I'd like to be able to write

[A component] -> [B component] -> [C component] -> [D component]

instead of

[A component] -> [B component]
[B component] -> [C component]
[C component] -> [D component]


benefits:

  • more natural
  • more concise
  • simpler when one want to rename intermediate components
  • easier to insert new component in the chain

1 Answer

0 votes
answered Nov 20, 2020 by Ganesh Ramakrishnan
Third requirement can be met by using aliases

@startuml
[A component] as A
[B component] as B
[C component] as C
A -> B
B -> C
@enduml
commented Nov 20, 2020 by setop (320 points)
The feature I propose is exactly to avoid to have to do that.
commented Nov 20, 2020 by The-Lu (64,340 points)

Hello G.

Thanks, but the requested feature of @setop will be to define links between components on only one line, as:

@startuml
[A component] as A
[B component] as B
[C component] as C

A -> B -> C

@enduml

Regards,
Th.

...