Understanding Incidents
An incident represents any unplanned event during production:- Equipment failures or malfunctions
- Quality deviations or defects
- Safety events or near-misses
- Material issues or shortages
- Process parameter excursions
- Operator errors or training gaps
Incident Lifecycle
- Abierto: Newly reported, awaiting investigation
- En investigación: Root cause analysis in progress
- Cerrado: Resolved with corrective action documented
Creating an Incident
Navigate to Producción → Incidentes.Enter Short Title
Provide a concise description (e.g., “Motor bearing failure on T-03”).Good titles:
- “Broken needle on sewing machine #5”
- “Ancho parameter out of spec”
- “Material shortage - polymer batch delayed”
- “Problem”
- “Machine stopped”
- “Issue”
Select Severity
Choose the impact level:Baja (Low - Informational)
- No production impact
- Minor observations
- Process improvement opportunities
- Quality parameter deviation
- Reduced efficiency or throughput
- Workaround implemented
- Scheduled maintenance required
- Production line stopped
- Critical quality failure
- Safety hazard present
- Major equipment damage
Describe the Problem
Enter a detailed description including:
- What happened
- When it was detected
- Which machine/process/order affected
- Immediate impact on production
- Initial observations
Link to Execution (Optional)
If the incident is associated with a specific production line:
- The system can link to
linea_ejecucion_id - This connects the incident to the order + process + machine context
Currently, línea selection is not exposed in the UI. Future versions will support dropdown selection.
Incident List View
The incidents table shows:| Column | Description |
|---|---|
| Fecha | Creation timestamp |
| Incidente | Title (short description) |
| Severidad | Baja, Media, Alta with color badge |
| Estado | abierto, en_investigacion, cerrado |
| Acciones | Update status or view details |
Sorting and Filtering
Incidents are displayed:- Sorted by creation date (newest first)
- Color-coded by severity:
- 🟢 Green: Baja
- 🟡 Yellow: Media
- 🔴 Red: Alta
Updating an Incident
Update Status
Change estado:
- abierto → en_investigacion: Investigation started
- en_investigacion → cerrado: Resolution complete
- abierto → cerrado: Quick resolution (minor issues)
Document Corrective Action (for Closure)
If closing the incident, the
accion_correctiva field is required:Include:- Root cause identified
- Corrective action taken
- Preventive measures implemented
- Verification of effectiveness
Inline Incident Reporting
During Shift Log Recording
For Proceso 1 (Extrusor PP), incidents can be logged directly in the process data form:Add Incident Details
Enter incident information inline. This is stored in the
parametros JSON field of the registro_trabajo.Inline incident reporting is currently specific to Extrusor PP. Other processes should use the dedicated Incidentes module.
Severity Guidelines
When to Use “Baja”
- Process observations for improvement
- Minor cosmetic defects (not affecting function)
- Informational notes for management
- Completed preventive maintenance
- Training opportunities identified
When to Use “Media”
- Quality parameter slightly outside tolerance
- Equipment running with reduced capacity
- Material substitution required
- Rework needed (but production continues)
- Delayed maintenance becoming urgent
When to Use “Alta”
- Production line stopped or unable to operate
- Quality failure requiring product hold or scrap
- Safety incident or hazard requiring immediate action
- Equipment failure with no immediate workaround
- Customer complaint or shipment rejection
Integration with Shift Logs
Impact on Closure
Incidents affect shift log closure:- Quality rejections in muestras trigger “Revisión” status
- The
_checkNeedsRevision()method detects incidents - Supervisor must review and approve closure
- Observations become mandatory when incidents exist
Linking Context
Incidents linked tolinea_ejecucion_id carry full context:
- Production order (codigo_orden)
- Process (proceso_id, proceso_nombre)
- Machine (maquina_id)
- Shift (bitacora_id → turno, fecha_operativa)
- Operator (usuario from registro_trabajo)
- Order specifications vs. actual parameters
- Machine performance history
- Operator training records
- Material batch traceability
Incident Repository
The data model (fromincidente.repository.js):
Query Patterns
All incidents (newest first):Best Practices
Report incidents immediately when detected, not at shift end
Use descriptive titles that allow quick incident identification
Include quantitative data in descriptions (temperatures, pressures, counts)
Link incidents to execution context when possible
Document corrective actions thoroughly for knowledge sharing
Use severidad consistently to enable trend analysis
Reporting and Analysis
Incidents support several analytical workflows:Frequency Analysis
- Group by severidad to identify high-impact areas
- Count by proceso_id to find problematic processes
- Trend over time to measure improvement initiatives
Pareto Analysis
- Identify top causes (from descriptions or future categorization)
- Focus corrective actions on high-frequency issues
- Calculate downtime cost by severity
Root Cause Trends
- Extract common themes from accion_correctiva text
- Link to machine maintenance schedules
- Correlate with material batch quality
Closure Time Metrics
- Calculate
fecha_cierre - fecha_creacion - Track average resolution time by severidad
- Identify bottlenecks in investigation workflow
Audit Trail
All incident operations are logged:- CREATE: Initial report with username and timestamp
- UPDATE: Changes to any field (status, description, corrective action)
- CLOSURE: Final estado change with accion_correctiva
Future Enhancements
Planned improvements to incident management:- Categorization: Predefined incident types (mechanical, quality, material, operator)
- Línea Selection UI: Dropdown to select execution line during incident creation
- Attachment Support: Photos, documents, or logs associated with incidents
- Notification System: Alert supervisors for alta severity incidents
- Incident Board: Kanban-style view for tracking investigation progress
- RCA Template: Structured root cause analysis form (5 Whys, Fishbone)
Troubleshooting
Cannot Close Incident
Error: “Acción correctiva es obligatoria para cerrar incidente”- The
accion_correctivafield is required when estado changes to “cerrado” - Provide detailed description of resolution
- Include verification of effectiveness
Incident Not Showing in List
- Check creation timestamp (list sorted newest first)
- Verify incident was saved successfully
- Refresh page to reload data
- Check browser console for API errors
Cannot Link to Execution Line
- Línea selection is not yet exposed in UI
- Currently requires direct API call or database update
- Future versions will support dropdown selection
Related Topics
- Shift Logs - Recording incidents during shifts
- Production Orders - Context for order-related incidents
- Traceability - Following incidents through production chain