How do I create a proper interface symbol in a Component diagram

+1 vote
asked Mar 13, 2023 in Question / help by gvarph (120 points)

I'm working on a component diagram and need some help with marking connections to interfaces properly.
Right now, I have it marked with
this

but I have been informed that that's not valid UML.
I'm supposed to mark them like this, but I have no idea how to to that (or at least something that vaguely resembles it) in plantUML format

1 Answer

0 votes
answered Mar 13, 2023 by The-Lu (74,900 points)

Hello G., and all,

Here is a proposal:

@startuml
left to right direction

component O
component P
component C
interface "Item Code" as ic
interface "Customer Detail" as cd

O --( ic
ic -- P
O --( cd
cd -- C

@enduml

See also doc here:

If that can help,
Regards.

...