chain components

0 votes
asked Nov 20 in Wanted features by setop (300 points)
edited Nov 20 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 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 by setop (300 points)
The feature I propose is exactly to avoid to have to do that.
commented Nov 20 by The-Lu (10,120 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.

...