Skip to main content
← UML

UML Component Diagram Lab

UML / COMPONENT / 01

Which interfaces does the order service need?

Select a component role, square port or assembly connector. Inspect who needs the interface, who provides it and what it declares.

«component» CheckoutSystemOrder serviceorder : OrderServiceInventory serviceinventory : InventoryServicePayment adapterpayment : CardPaymentAdapterNotification servicenotifier : NotificationServiceStockLookupPaymentGatewayOrderNotificationStock lookupPayment requestReceipt requestStockLookupPaymentGatewayOrderNotification
Required interfaceProvided interfaceScroll the diagram horizontally on narrow screens or expand the text list.
List of components, ports and connectors

A square marks a port on a role boundary. Each port in this case carries one required or provided interface.

A socket needs an interface. A ball provides one. A joined ball and socket show these two roles assembled.

This diagram shows component contracts. Checkout creates an order awaiting payment. A separate business flow triggers payment.

Notation and semantics

This case checks the declared interface identity and endpoint roles, with one provider per required port. Passing the check establishes this model’s assembly contract. Protocol, availability and behavioral compatibility require separate validation.

OMG · UML 2.5.1 §§10.4, 11.2–11.6, 19.2–19.4 ↗
Blank area: ← → chapters · Native keys inside controls01 / 06
Preparing the model