160 lines
5.1 KiB
JSON
160 lines
5.1 KiB
JSON
{
|
|
"orchestration_run": {
|
|
"id": "90000000-0000-0000-0000-000000000001",
|
|
"tenant_id": "a1b2c3d4-e5f6-47a8-b9c0-d1e2f3a4b5c6",
|
|
"run_number": "ORCH-20250114-001",
|
|
"status": "completed",
|
|
"run_type": "daily",
|
|
"started_at": "2025-01-14T22:00:00Z",
|
|
"completed_at": "2025-01-14T22:15:00Z",
|
|
"duration_seconds": 900,
|
|
"trigger_type": "scheduled",
|
|
"trigger_source": "system",
|
|
"created_at": "2025-01-14T22:00:00Z",
|
|
"updated_at": "2025-01-14T22:15:00Z",
|
|
"notes": "Nightly orchestration run - Last successful execution before demo session"
|
|
},
|
|
"orchestration_results": {
|
|
"production_batches_created": 18,
|
|
"production_batches_completed": 15,
|
|
"production_batches_in_progress": 3,
|
|
"purchase_orders_created": 6,
|
|
"purchase_orders_approved": 4,
|
|
"purchase_orders_pending_approval": 2,
|
|
"inventory_updates": 25,
|
|
"stock_alerts_generated": 3,
|
|
"quality_checks_performed": 12,
|
|
"delivery_schedules_updated": 4,
|
|
"forecasts_generated": 10,
|
|
"ai_insights_posted": 5,
|
|
"notifications_sent": 8,
|
|
"errors_encountered": 0,
|
|
"warnings_generated": 2
|
|
},
|
|
"production_coordination": {
|
|
"batches_synchronized": [
|
|
{
|
|
"batch_id": "40000000-0000-0000-0000-000000000001",
|
|
"product_name": "Baguette Francesa Tradicional",
|
|
"quantity": 98.0,
|
|
"status": "COMPLETED",
|
|
"coordinated_with_po": "50000000-0000-0000-0000-000000000001",
|
|
"flour_consumed": 50.0,
|
|
"yeast_consumed": 2.0,
|
|
"butter_consumed": 1.5
|
|
},
|
|
{
|
|
"batch_id": "40000000-0000-0000-0000-000000000002",
|
|
"product_name": "Croissant de Mantequilla Artesanal",
|
|
"quantity": 115.0,
|
|
"status": "COMPLETED",
|
|
"coordinated_with_po": "50000000-0000-0000-0000-000000000002",
|
|
"flour_consumed": 30.0,
|
|
"yeast_consumed": 1.5,
|
|
"butter_consumed": 15.0
|
|
},
|
|
{
|
|
"batch_id": "40000000-0000-0000-0000-000000000003",
|
|
"product_name": "Pan de Pueblo con Masa Madre",
|
|
"quantity": 80.0,
|
|
"status": "COMPLETED",
|
|
"coordinated_with_po": "50000000-0000-0000-0000-000000000001",
|
|
"flour_consumed": 40.0,
|
|
"yeast_consumed": 1.0
|
|
}
|
|
],
|
|
"production_alerts": [
|
|
{
|
|
"alert_type": "LOW_STOCK",
|
|
"product_id": "10000000-0000-0000-0000-000000000001",
|
|
"product_name": "Harina de Trigo T55",
|
|
"current_stock": 150.0,
|
|
"threshold": 200.0,
|
|
"severity": "WARNING",
|
|
"related_po": "50000000-0000-0000-0000-000000000004"
|
|
},
|
|
{
|
|
"alert_type": "DELAYED_DELIVERY",
|
|
"product_id": "10000000-0000-0000-0000-000000000001",
|
|
"product_name": "Harina de Trigo T55",
|
|
"expected_delivery": "2025-01-14T10:00:00Z",
|
|
"actual_delivery": "2025-01-14T14:00:00Z",
|
|
"delay_hours": 4,
|
|
"severity": "CRITICAL",
|
|
"related_po": "50000000-0000-0000-0000-000000000004",
|
|
"impacted_batches": [
|
|
"40000000-0000-0000-0000-0000000000a3"
|
|
]
|
|
}
|
|
]
|
|
},
|
|
"procurement_coordination": {
|
|
"purchase_orders_processed": [
|
|
{
|
|
"po_id": "50000000-0000-0000-0000-000000000001",
|
|
"supplier_id": "40000000-0000-0000-0000-000000000001",
|
|
"supplier_name": "Harinas del Norte",
|
|
"status": "completed",
|
|
"total_amount": 1053.50,
|
|
"items_received": 3,
|
|
"items_pending": 0,
|
|
"delivery_status": "on_time"
|
|
},
|
|
{
|
|
"po_id": "50000000-0000-0000-0000-000000000002",
|
|
"supplier_id": "40000000-0000-0000-0000-000000000002",
|
|
"supplier_name": "Lácteos Gipuzkoa",
|
|
"status": "completed",
|
|
"total_amount": 402.20,
|
|
"items_received": 1,
|
|
"items_pending": 0,
|
|
"delivery_status": "on_time"
|
|
},
|
|
{
|
|
"po_id": "50000000-0000-0000-0000-000000000004",
|
|
"supplier_id": "40000000-0000-0000-0000-000000000001",
|
|
"supplier_name": "Harinas del Norte",
|
|
"status": "confirmed",
|
|
"total_amount": 1427.00,
|
|
"items_received": 0,
|
|
"items_pending": 2,
|
|
"delivery_status": "delayed",
|
|
"delay_hours": 4,
|
|
"urgency": "high"
|
|
}
|
|
],
|
|
"procurement_alerts": [
|
|
{
|
|
"alert_type": "PO_APPROVAL_ESCALATION",
|
|
"po_id": "50000000-0000-0000-0000-000000000003",
|
|
"supplier_name": "Eco-Proveedores",
|
|
"status": "pending_approval",
|
|
"age_hours": 72,
|
|
"severity": "WARNING",
|
|
"reason": "Auto-approval threshold not met"
|
|
}
|
|
]
|
|
},
|
|
"inventory_synchronization": {
|
|
"stock_updates": 25,
|
|
"low_stock_alerts": 3,
|
|
"expiration_alerts": 1,
|
|
"stock_movements": 15,
|
|
"inventory_accuracy": 98.5
|
|
},
|
|
"ai_insights": {
|
|
"yield_improvement_suggestions": 2,
|
|
"waste_reduction_opportunities": 1,
|
|
"demand_forecasting_updates": 3,
|
|
"procurement_optimization": 2,
|
|
"production_scheduling": 1
|
|
},
|
|
"system_state": {
|
|
"last_successful_run": "2025-01-14T22:00:00Z",
|
|
"next_scheduled_run": "2025-01-15T22:00:00Z",
|
|
"system_health": "healthy",
|
|
"api_availability": 100.0,
|
|
"database_performance": "optimal",
|
|
"integration_status": "all_connected"
|
|
}
|
|
} |