185 lines
5.7 KiB
JSON
185 lines
5.7 KiB
JSON
{
|
|
"orchestration_run": {
|
|
"id": "90000000-0000-0000-0000-000000000001",
|
|
"tenant_id": "80000000-0000-4000-a000-000000000001",
|
|
"run_number": "ENT-ORCH-20250116-001",
|
|
"status": "completed",
|
|
"run_type": "daily_enterprise",
|
|
"started_at": "BASE_TS - 1d 16h",
|
|
"completed_at": "BASE_TS - 1d 15h30m",
|
|
"duration_seconds": 1800,
|
|
"trigger_type": "scheduled",
|
|
"trigger_source": "system",
|
|
"created_at": "BASE_TS - 1d 16h",
|
|
"updated_at": "BASE_TS - 1d 15h30m",
|
|
"notes": "Enterprise multi-location orchestration - Last successful run",
|
|
"locations_coordinated": 5
|
|
},
|
|
"orchestration_results": {
|
|
"production_batches_created": 45,
|
|
"production_batches_completed": 38,
|
|
"production_batches_in_progress": 7,
|
|
"purchase_orders_created": 8,
|
|
"purchase_orders_approved": 6,
|
|
"purchase_orders_pending_approval": 2,
|
|
"inventory_updates": 125,
|
|
"stock_alerts_generated": 5,
|
|
"quality_checks_performed": 42,
|
|
"delivery_schedules_updated": 15,
|
|
"forecasts_generated": 45,
|
|
"ai_insights_posted": 12,
|
|
"notifications_sent": 28,
|
|
"errors_encountered": 0,
|
|
"warnings_generated": 3,
|
|
"cross_location_optimizations": 8
|
|
},
|
|
"multi_location_coordination": {
|
|
"distribution_schedules": [
|
|
{
|
|
"from_location": "central",
|
|
"to_location": "madrid-salamanca",
|
|
"scheduled_delivery": "BASE_TS + 6h",
|
|
"products": 12,
|
|
"total_units": 850
|
|
},
|
|
{
|
|
"from_location": "central",
|
|
"to_location": "barcelona-eixample",
|
|
"scheduled_delivery": "BASE_TS + 8h",
|
|
"products": 15,
|
|
"total_units": 1200
|
|
},
|
|
{
|
|
"from_location": "central",
|
|
"to_location": "valencia-ruzafa",
|
|
"scheduled_delivery": "BASE_TS + 7h",
|
|
"products": 10,
|
|
"total_units": 650
|
|
},
|
|
{
|
|
"from_location": "central",
|
|
"to_location": "seville-triana",
|
|
"scheduled_delivery": "BASE_TS + 10h",
|
|
"products": 9,
|
|
"total_units": 550
|
|
},
|
|
{
|
|
"from_location": "central",
|
|
"to_location": "bilbao-casco-viejo",
|
|
"scheduled_delivery": "BASE_TS + 12h",
|
|
"products": 8,
|
|
"total_units": 480
|
|
}
|
|
],
|
|
"cross_location_alerts": [
|
|
{
|
|
"alert_type": "MULTI_LOCATION_LOW_STOCK",
|
|
"product_name": "Harina de Trigo T55",
|
|
"affected_locations": [
|
|
"barcelona-eixample",
|
|
"valencia-ruzafa"
|
|
],
|
|
"severity": "WARNING",
|
|
"central_action": "Emergency procurement triggered",
|
|
"priority_delivery_to": "barcelona-eixample"
|
|
},
|
|
{
|
|
"alert_type": "QUALITY_ISSUE_RECALL",
|
|
"product_name": "Levadura Fresca batch #CENTRAL-LEV-20250115",
|
|
"affected_locations": [
|
|
"madrid-salamanca",
|
|
"seville-triana"
|
|
],
|
|
"severity": "CRITICAL",
|
|
"action_taken": "Recall initiated, replacement batch scheduled"
|
|
}
|
|
],
|
|
"inventory_optimization": {
|
|
"surplus_transfers": [
|
|
{
|
|
"product": "Croissants",
|
|
"from": "madrid-salamanca",
|
|
"to": "bilbao-casco-viejo",
|
|
"quantity": 120,
|
|
"reason": "Madrid over-production, Bilbao shortage"
|
|
}
|
|
],
|
|
"production_reallocation": [
|
|
{
|
|
"original_location": "barcelona-eixample",
|
|
"new_location": "central",
|
|
"reason": "Barcelona oven maintenance",
|
|
"products_affected": [
|
|
"Pan Rústico",
|
|
"Baguette"
|
|
],
|
|
"quantity": 200
|
|
}
|
|
]
|
|
}
|
|
},
|
|
"ai_insights": {
|
|
"enterprise_optimization": [
|
|
{
|
|
"insight_type": "CROSS_LOCATION_DEMAND_PATTERN",
|
|
"description": "Barcelona demand peaks 2 hours before Madrid - adjust production scheduling",
|
|
"confidence": 0.91,
|
|
"potential_savings": "8% waste reduction",
|
|
"affected_locations": [
|
|
"barcelona-eixample",
|
|
"madrid-salamanca"
|
|
]
|
|
},
|
|
{
|
|
"insight_type": "BULK_PROCUREMENT_OPPORTUNITY",
|
|
"description": "Consolidate flour orders across all locations for 12% additional volume discount",
|
|
"confidence": 0.89,
|
|
"potential_savings": "€2,400/month",
|
|
"recommended_action": "Increase central procurement by 15%"
|
|
},
|
|
{
|
|
"insight_type": "DISTRIBUTION_ROUTE_OPTIMIZATION",
|
|
"description": "Combined Valencia-Barcelona route saves 3 hours delivery time",
|
|
"confidence": 0.94,
|
|
"potential_savings": "€800/month fuel costs",
|
|
"recommended_action": "Implement combined route 3x/week"
|
|
}
|
|
]
|
|
},
|
|
"system_state": {
|
|
"last_successful_run": "BASE_TS - 1d 16h",
|
|
"next_scheduled_run": "BASE_TS + 8h",
|
|
"system_health": "healthy",
|
|
"api_availability": 99.8,
|
|
"database_performance": "optimal",
|
|
"integration_status": "all_connected",
|
|
"enterprise_features_active": true,
|
|
"multi_location_sync_status": "synchronized"
|
|
},
|
|
"alerts": [
|
|
{
|
|
"alert_type": "OVERDUE_BATCH",
|
|
"severity": "high",
|
|
"message": "Production should have started 2 hours ago - BATCH-LATE-0001",
|
|
"created_at": "BASE_TS",
|
|
"tenant_id": "80000000-0000-4000-a000-000000000001",
|
|
"alert_scope": "enterprise"
|
|
},
|
|
{
|
|
"alert_type": "DELAYED_DELIVERY",
|
|
"severity": "high",
|
|
"message": "Supplier delivery 4 hours late - PO-LATE-0001",
|
|
"created_at": "BASE_TS",
|
|
"tenant_id": "80000000-0000-4000-a000-000000000001",
|
|
"alert_scope": "enterprise"
|
|
},
|
|
{
|
|
"alert_type": "CRITICAL_STOCK",
|
|
"severity": "critical",
|
|
"message": "Harina T55 below reorder point with NO pending PO",
|
|
"created_at": "BASE_TS",
|
|
"tenant_id": "80000000-0000-4000-a000-000000000001",
|
|
"alert_scope": "enterprise"
|
|
}
|
|
]
|
|
} |