{
  "title": "E-commerce Checkout",
  "description": "Complete checkout flow with inventory, payments, and order fulfillment",
  "type": "ecommerce",
  "data": {
    "nodes": [
      {
        "id": "service-cart",
        "type": "service",
        "position": { "x": 50, "y": 200 },
        "data": {
          "name": "Shopping Cart",
          "version": "1.0.0",
          "summary": "Manages customer shopping cart and checkout initiation",
          "mode": "full"
        }
      },
      {
        "id": "service-inventory",
        "type": "service",
        "position": { "x": 300, "y": 150 },
        "data": {
          "name": "Inventory Service",
          "version": "1.0.0",
          "summary": "Tracks product availability and reserves stock",
          "mode": "full"
        }
      },
      {
        "id": "service-payment",
        "type": "service",
        "position": { "x": 300, "y": 300 },
        "data": {
          "name": "Payment Service",
          "version": "1.0.0",
          "summary": "Processes payments and handles billing",
          "mode": "full"
        }
      },
      {
        "id": "service-order",
        "type": "service",
        "position": { "x": 550, "y": 200 },
        "data": {
          "name": "Order Service",
          "version": "1.0.0",
          "summary": "Creates and manages customer orders",
          "mode": "full"
        }
      },
      {
        "id": "service-fulfillment",
        "type": "service",
        "position": { "x": 800, "y": 200 },
        "data": {
          "name": "Fulfillment Service",
          "version": "1.0.0",
          "summary": "Handles shipping and delivery coordination",
          "mode": "full"
        }
      },
      {
        "id": "event-checkout-started",
        "type": "event",
        "position": { "x": 150, "y": 50 },
        "data": {
          "name": "CheckoutStarted",
          "version": "1.0.0",
          "summary": "Customer begins checkout process",
          "mode": "full"
        }
      },
      {
        "id": "event-inventory-reserved",
        "type": "event",
        "position": { "x": 400, "y": 50 },
        "data": {
          "name": "InventoryReserved",
          "version": "1.0.0",
          "summary": "Items successfully reserved for customer",
          "mode": "full"
        }
      },
      {
        "id": "event-payment-completed",
        "type": "event",
        "position": { "x": 400, "y": 400 },
        "data": {
          "name": "PaymentCompleted",
          "version": "1.0.0",
          "summary": "Payment successfully processed",
          "mode": "full"
        }
      },
      {
        "id": "event-order-confirmed",
        "type": "event",
        "position": { "x": 650, "y": 350 },
        "data": {
          "name": "OrderConfirmed",
          "version": "1.0.0",
          "summary": "Order created and confirmed for fulfillment",
          "mode": "full"
        }
      },
      {
        "id": "event-order-shipped",
        "type": "event",
        "position": { "x": 900, "y": 350 },
        "data": {
          "name": "OrderShipped",
          "version": "1.0.0",
          "summary": "Order has been shipped to customer",
          "mode": "full"
        }
      },
      {
        "id": "note-checkout",
        "type": "note",
        "position": { "x": 50, "y": 350 },
        "data": {
          "text": "Complete E-commerce Flow:\n• Cart → Checkout\n• Inventory reservation\n• Payment processing\n• Order creation\n• Fulfillment & shipping"
        },
        "width": 220,
        "height": 140
      }
    ],
    "edges": [
      {
        "id": "edge-checkout",
        "source": "service-cart",
        "target": "event-checkout-started",
        "label": "Publishes",
        "animated": true,
        "type": "animatedMessage"
      },
      {
        "id": "edge-inventory-check",
        "source": "event-checkout-started",
        "target": "service-inventory",
        "label": "Triggers",
        "animated": true,
        "type": "animatedMessage"
      },
      {
        "id": "edge-inventory-confirm",
        "source": "service-inventory",
        "target": "event-inventory-reserved",
        "label": "Publishes",
        "animated": true,
        "type": "animatedMessage"
      },
      {
        "id": "edge-payment-start",
        "source": "event-inventory-reserved",
        "target": "service-payment",
        "label": "Triggers",
        "animated": true,
        "type": "animatedMessage"
      },
      {
        "id": "edge-payment-done",
        "source": "service-payment",
        "target": "event-payment-completed",
        "label": "Publishes",
        "animated": true,
        "type": "animatedMessage"
      },
      {
        "id": "edge-order-create",
        "source": "event-payment-completed",
        "target": "service-order",
        "label": "Triggers",
        "animated": true,
        "type": "animatedMessage"
      },
      {
        "id": "edge-order-confirm",
        "source": "service-order",
        "target": "event-order-confirmed",
        "label": "Publishes",
        "animated": true,
        "type": "animatedMessage"
      },
      {
        "id": "edge-fulfillment",
        "source": "event-order-confirmed",
        "target": "service-fulfillment",
        "label": "Triggers",
        "animated": true,
        "type": "animatedMessage"
      },
      {
        "id": "edge-shipped",
        "source": "service-fulfillment",
        "target": "event-order-shipped",
        "label": "Publishes",
        "animated": true,
        "type": "animatedMessage"
      }
    ],
    "viewport": { "x": 0, "y": 50, "zoom": 0.7 }
  },
  "usecase": "E-commerce"
}