/** * FallbackConfig - Fallback-Strategie Konfiguration * * Props: * - node: React Flow Node object * - edges: Array of React Flow edges * - onChange: (nodeId, updates) => void */ export function FallbackConfig({ node, edges, onChange }) { const fallbackStrategy = node.data.fallback_strategy || 'conservative_skip' const fallbackEdge = node.data.fallback_edge || null // Outgoing Edges von diesem Node const outgoingEdges = edges.filter(e => e.source === node.id) const handleStrategyChange = (e) => { const strategy = e.target.value onChange(node.id, { fallback_strategy: strategy }) // Reset fallback_edge wenn strategy geändert wird if (strategy === 'conservative_skip' || strategy === 'document_only') { onChange(node.id, { fallback_edge: null }) } } const handleEdgeChange = (e) => { onChange(node.id, { fallback_edge: e.target.value || null }) } return (

Fallback-Strategie

{fallbackStrategy === 'conservative_skip' && 'Bei Unklarheit: Pfad nicht routen.'} {fallbackStrategy === 'default_path' && 'Bei Unklarheit: Definierter Standardpfad wird ausgeführt.'} {fallbackStrategy === 'uncertainty_path' && 'Bei Unklarheit: Expliziter Klärungspfad.'} {fallbackStrategy === 'document_only' && 'Unklarheit dokumentieren, aber kein Routing.'}
{(fallbackStrategy === 'default_path' || fallbackStrategy === 'uncertainty_path') && ( <> {outgoingEdges.length === 0 && (
⚠️ Keine ausgehenden Kanten gefunden. Bitte verbinden Sie diesen Node zuerst.
)} )}
) }