Universal CSV Importer #70
|
|
@ -375,13 +375,14 @@ function extractWorkflowPlaceholders(nodes) {
|
||||||
// Signals und Fragen für Analysis Nodes
|
// Signals und Fragen für Analysis Nodes
|
||||||
if (node.type === 'analysis' && node.data.questions && node.data.questions.length > 0) {
|
if (node.type === 'analysis' && node.data.questions && node.data.questions.length > 0) {
|
||||||
node.data.questions.forEach((q, qIdx) => {
|
node.data.questions.forEach((q, qIdx) => {
|
||||||
|
const questionId = q.id || `q${qIdx + 1}`
|
||||||
const questionType = q.type || `q${qIdx + 1}`
|
const questionType = q.type || `q${qIdx + 1}`
|
||||||
const questionText = q.question || `Frage ${qIdx + 1}`
|
const questionText = q.question || `Frage ${qIdx + 1}`
|
||||||
|
|
||||||
// Signal-Platzhalter (Antwort)
|
// Signal-Platzhalter (Antwort)
|
||||||
placeholders.push({
|
placeholders.push({
|
||||||
placeholder: `{{ ${nodeId}.signal_${questionType} }}`,
|
placeholder: `{{ ${nodeId}.signal_${questionType} }}`,
|
||||||
description: `${nodeLabel} - Signal: ${questionText.substring(0, 50)}${questionText.length > 50 ? '...' : ''}`,
|
description: `${nodeLabel} (${questionId}) - Signal ${questionType}: ${questionText.substring(0, 40)}${questionText.length > 40 ? '...' : ''}`,
|
||||||
icon: '📊',
|
icon: '📊',
|
||||||
category: 'Workflow - Signals'
|
category: 'Workflow - Signals'
|
||||||
})
|
})
|
||||||
|
|
@ -389,7 +390,7 @@ function extractWorkflowPlaceholders(nodes) {
|
||||||
// Frage-Text-Platzhalter
|
// Frage-Text-Platzhalter
|
||||||
placeholders.push({
|
placeholders.push({
|
||||||
placeholder: `{{ ${nodeId}.question_${questionType} }}`,
|
placeholder: `{{ ${nodeId}.question_${questionType} }}`,
|
||||||
description: `${nodeLabel} - Frage-Text: ${questionText.substring(0, 50)}${questionText.length > 50 ? '...' : ''}`,
|
description: `${nodeLabel} (${questionId}) - Frage ${questionType}: ${questionText.substring(0, 40)}${questionText.length > 40 ? '...' : ''}`,
|
||||||
icon: '❓',
|
icon: '❓',
|
||||||
category: 'Workflow - Questions'
|
category: 'Workflow - Questions'
|
||||||
})
|
})
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user