workspace { model { user = person "Sales Rep / Customer" { description "Places orders using the company's web or mobile portal" } group "Internal Systems" { webApp = softwareSystem "Order Placement Portal" { description "Used by customers and sales reps to place orders" } eventRouter = softwareSystem "Event Routing System" { description "Queues and routes order events between systems" } erp = softwareSystem "ERP System" { description "Handles pricing, inventory, invoicing, and tax logic" } wms = softwareSystem "Warehouse Management System (WMS)" { description "Handles stock allocation and warehouse fulfillment" } logistics = softwareSystem "3PL: Logistics Provider Integration" { description "Manages delivery and tracking updates via third-party APIs" } payment = softwareSystem "Payment Processing System" { description "Processes payments and sends confirmations" } loyalty = softwareSystem "Loyalty System" { description "Applies points or rewards to orders" } promotions = softwareSystem "Promotions Engine" { description "Applies eligible discounts to incoming orders" } } // Relationships user -> webApp "Places orders via" webApp -> eventRouter "Sends order requests to" eventRouter -> erp "Processes order data" eventRouter -> loyalty "Sends order events to" eventRouter -> promotions "Routes to for discount validation" erp -> wms "Triggers stock allocation" wms -> logistics "Sends delivery details to" logistics -> erp "Updates delivery status via API" webApp -> payment "Handles payment through" payment -> erp "Updates payment status" } views { systemLandscape pepsicoLandscape { include * autolayout lr title "Hypothetical Order Management Architecture" } styles { element "SoftwareSystem" { background "#1a73e8" color "#ffffff" shape RoundedBox } element "Person" { background "#fbbc04" color "#000000" shape Person } relationship "default" { thickness 2 color "#888888" } } } }