' Public example model for ArchiMate PlantUML import-export demonstrations.
' Original sample model created for this repository.
' Syntax reference: https://plantuml.com/archimate-diagram
' Archimate-PlantUML is licensed under the MIT License.
@startuml
!include <archimate/Archimate>
title Online Retail Capability Realization

Business_Actor(customer, "Customer")
Business_Role(service_rep, "Customer Service Representative")
Business_Process(order_journey, "Order Journey")
Business_Service(order_service, "Order Management Service")
Application_Component(storefront, "Web Storefront")
Application_Component(order_api, "Order API")
Application_Component(payment_gateway, "Payment Gateway Adapter")
Application_DataObject(order_record, "Order Record")
Technology_Node(kubernetes, "Kubernetes Cluster")
Technology_Service(message_bus, "Message Bus")

Rel_Triggering_Right(customer, order_journey, "places order")
Rel_Assignment_Right(service_rep, order_journey, "supports")
Rel_Serving_Right(order_service, order_journey, "enables")
Rel_Realization_Right(storefront, order_service, "realizes")
Rel_Flow_Right(storefront, order_api, "submits order")
Rel_Flow_Right(order_api, payment_gateway, "authorizes payment")
Rel_Access_Right(order_api, order_record, "writes")
Rel_Serving_Right(kubernetes, storefront, "hosts")
Rel_Serving_Right(kubernetes, order_api, "hosts")
Rel_Flow_Right(order_api, message_bus, "publishes events")

@enduml
