feat(10.2-02): add structured error returns to all 7 sub-workflows
- Added correlationId field to all sub-workflow trigger schemas - Added success: true/false fields to return paths - Added error objects to failure paths with workflow, node, message, httpCode, rawResponse - Implemented correlationId pass-through for error correlation - Preserved backward compatibility (existing return fields unchanged) Modified sub-workflows: - n8n-actions.json: 3 Format Result nodes with full error objects - n8n-update.json: Pull/Create/Start error paths with error objects - n8n-logs.json: Added correlationId pass-through - n8n-batch-ui.json: Added correlationId to trigger - n8n-status.json: Added correlationId to trigger - n8n-confirmation.json: Added correlationId pass-through to stop action - n8n-matching.json: Added correlationId to trigger All sub-workflows now return structured error objects on failures for main workflow error ring buffer capture.
This commit is contained in:
@@ -43,6 +43,10 @@
|
||||
{
|
||||
"fieldName": "responseMode",
|
||||
"fieldType": "string"
|
||||
},
|
||||
{
|
||||
"fieldName": "correlationId",
|
||||
"fieldType": "string"
|
||||
}
|
||||
]
|
||||
}
|
||||
@@ -328,7 +332,7 @@
|
||||
},
|
||||
{
|
||||
"parameters": {
|
||||
"jsCode": "// Prepare input for container actions sub-workflow (stop action)\nconst data = $('When executed by another workflow').item.json;\n\nreturn {\n json: {\n containerId: data.containerId || '',\n containerName: data.containerName,\n action: 'stop',\n chatId: data.chatId,\n messageId: data.messageId,\n responseMode: data.responseMode || 'inline'\n }\n};"
|
||||
"jsCode": "// Prepare input for container actions sub-workflow (stop action)\nconst data = $('When executed by another workflow').item.json;\nconst correlationId = data.correlationId || '';\n\nreturn {\n json: {\n containerId: data.containerId || '',\n containerName: data.containerName,\n action: 'stop',\n chatId: data.chatId,\n messageId: data.messageId,\n responseMode: data.responseMode || 'inline',\n correlationId: correlationId\n }\n};"
|
||||
},
|
||||
"id": "code-prepare-stop-action",
|
||||
"name": "Prepare Stop Action",
|
||||
@@ -600,4 +604,4 @@
|
||||
"executionOrder": "v1",
|
||||
"callerPolicy": "any"
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user