mirror of
https://github.com/johndoe6345789/metabuilder.git
synced 2026-04-25 14:25:02 +00:00
BREAKING CHANGE: MetaBuilder JSON Script v2.2.0 format is deprecated. All workflows now use n8n schema exclusively. Changes: - Migrated all 133 .jsonscript files to standard .json format - All workflows now conform to schemas/n8n-workflow.schema.json - Removed 211 backup files created during migration - Complete JSON Script to n8n schema transformation: * MetaBuilder nodes → n8n-compatible nodes with proper types * Custom parameters → standard n8n parameters * Edge arrays → adjacency map connections * Trigger objects → explicit triggers array * Single-file workflows → proper adjacency format Impact: ✅ 100% of workflows now n8n-compatible ✅ First-class variable support via schema ✅ Complex DAG topology via adjacency maps ✅ Multi-tenant safety maintained throughout ✅ All business logic preserved ✅ Ready for n8n tooling, import/export, and execution engines Architecture: - Workflows stored in /packages/*/workflow/*.json - Schema validation via schemas/n8n-workflow.schema.json - Support for variables, credentials, triggers, connections - TypeVersion pinning for backward compatibility Migration is complete. Codebase is now 100% n8n-based. Next step: Update workflow executor to use n8n execution engine. Co-Authored-By: Claude Haiku 4.5 <noreply@anthropic.com>
462 lines
9.2 KiB
JSON
462 lines
9.2 KiB
JSON
{
|
|
"name": "Data Processing Demo",
|
|
"active": false,
|
|
"nodes": [
|
|
{
|
|
"id": "create_sample_data",
|
|
"name": "Create Sample Data",
|
|
"type": "var.set",
|
|
"typeVersion": 1,
|
|
"position": [
|
|
100,
|
|
100
|
|
],
|
|
"parameters": {
|
|
"name": "Create Sample Data",
|
|
"typeVersion": 1,
|
|
"position": [
|
|
100,
|
|
100
|
|
],
|
|
"parameters": {
|
|
"name": "Create Sample Data",
|
|
"typeVersion": 1,
|
|
"position": [
|
|
100,
|
|
100
|
|
],
|
|
"parameters": {
|
|
"name": "Create Sample Data",
|
|
"typeVersion": 1,
|
|
"position": [
|
|
0,
|
|
50
|
|
],
|
|
"parameters": {
|
|
"key": "numbers",
|
|
"value": [
|
|
1,
|
|
2,
|
|
3,
|
|
4,
|
|
5,
|
|
6,
|
|
7,
|
|
8,
|
|
9,
|
|
10
|
|
]
|
|
}
|
|
}
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"id": "filter_even",
|
|
"name": "Filter Even",
|
|
"type": "utils.filter_list",
|
|
"typeVersion": 1,
|
|
"position": [
|
|
400,
|
|
100
|
|
],
|
|
"parameters": {
|
|
"name": "Filter Even",
|
|
"typeVersion": 1,
|
|
"position": [
|
|
400,
|
|
100
|
|
],
|
|
"parameters": {
|
|
"name": "Filter Even",
|
|
"typeVersion": 1,
|
|
"position": [
|
|
400,
|
|
100
|
|
],
|
|
"parameters": {
|
|
"name": "Filter Even Numbers",
|
|
"typeVersion": 1,
|
|
"position": [
|
|
300,
|
|
50
|
|
],
|
|
"parameters": {
|
|
"items": "$numbers",
|
|
"mode": "lambda",
|
|
"condition": "lambda x: x % 2 == 0"
|
|
}
|
|
}
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"id": "map_square",
|
|
"name": "Map Square",
|
|
"type": "utils.map_list",
|
|
"typeVersion": 1,
|
|
"position": [
|
|
700,
|
|
100
|
|
],
|
|
"parameters": {
|
|
"name": "Map Square",
|
|
"typeVersion": 1,
|
|
"position": [
|
|
700,
|
|
100
|
|
],
|
|
"parameters": {
|
|
"name": "Map Square",
|
|
"typeVersion": 1,
|
|
"position": [
|
|
700,
|
|
100
|
|
],
|
|
"parameters": {
|
|
"name": "Square Each Number",
|
|
"typeVersion": 1,
|
|
"position": [
|
|
600,
|
|
50
|
|
],
|
|
"parameters": {
|
|
"items": "$filtered_numbers",
|
|
"transform": "lambda x: x * x"
|
|
}
|
|
}
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"id": "reduce_sum",
|
|
"name": "Reduce Sum",
|
|
"type": "math.add",
|
|
"typeVersion": 1,
|
|
"position": [
|
|
100,
|
|
300
|
|
],
|
|
"parameters": {
|
|
"name": "Reduce Sum",
|
|
"typeVersion": 1,
|
|
"position": [
|
|
100,
|
|
300
|
|
],
|
|
"parameters": {
|
|
"name": "Reduce Sum",
|
|
"typeVersion": 1,
|
|
"position": [
|
|
100,
|
|
300
|
|
],
|
|
"parameters": {
|
|
"name": "Sum All Values",
|
|
"typeVersion": 1,
|
|
"position": [
|
|
900,
|
|
50
|
|
],
|
|
"parameters": {
|
|
"numbers": "$squared_numbers"
|
|
}
|
|
}
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"id": "check_threshold",
|
|
"name": "Check Threshold",
|
|
"type": "logic.gt",
|
|
"typeVersion": 1,
|
|
"position": [
|
|
400,
|
|
300
|
|
],
|
|
"parameters": {
|
|
"name": "Check Threshold",
|
|
"typeVersion": 1,
|
|
"position": [
|
|
400,
|
|
300
|
|
],
|
|
"parameters": {
|
|
"name": "Check Threshold",
|
|
"typeVersion": 1,
|
|
"position": [
|
|
400,
|
|
300
|
|
],
|
|
"parameters": {
|
|
"name": "Check If Sum > 50",
|
|
"typeVersion": 1,
|
|
"position": [
|
|
1200,
|
|
50
|
|
],
|
|
"parameters": {
|
|
"a": "$sum",
|
|
"b": 50
|
|
}
|
|
}
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"id": "branch_result",
|
|
"name": "Branch Result",
|
|
"type": "utils.branch_condition",
|
|
"typeVersion": 1,
|
|
"position": [
|
|
700,
|
|
300
|
|
],
|
|
"parameters": {
|
|
"name": "Branch Result",
|
|
"typeVersion": 1,
|
|
"position": [
|
|
700,
|
|
300
|
|
],
|
|
"parameters": {
|
|
"name": "Branch Result",
|
|
"typeVersion": 1,
|
|
"position": [
|
|
700,
|
|
300
|
|
],
|
|
"parameters": {
|
|
"name": "Branch On Result",
|
|
"typeVersion": 1,
|
|
"position": [
|
|
1500,
|
|
50
|
|
],
|
|
"parameters": {
|
|
"condition": "$is_greater"
|
|
}
|
|
}
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"id": "format_success",
|
|
"name": "Format Success",
|
|
"type": "string.format",
|
|
"typeVersion": 1,
|
|
"position": [
|
|
100,
|
|
500
|
|
],
|
|
"parameters": {
|
|
"name": "Format Success",
|
|
"typeVersion": 1,
|
|
"position": [
|
|
100,
|
|
500
|
|
],
|
|
"parameters": {
|
|
"name": "Format Success",
|
|
"typeVersion": 1,
|
|
"position": [
|
|
100,
|
|
500
|
|
],
|
|
"parameters": {
|
|
"name": "Format Success Message",
|
|
"typeVersion": 1,
|
|
"position": [
|
|
1800,
|
|
0
|
|
],
|
|
"parameters": {
|
|
"template": "Success! Sum is {sum}, which is greater than 50.",
|
|
"variables": {
|
|
"sum": "$sum"
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"id": "format_failure",
|
|
"name": "Format Failure",
|
|
"type": "string.format",
|
|
"typeVersion": 1,
|
|
"position": [
|
|
400,
|
|
500
|
|
],
|
|
"parameters": {
|
|
"name": "Format Failure",
|
|
"typeVersion": 1,
|
|
"position": [
|
|
400,
|
|
500
|
|
],
|
|
"parameters": {
|
|
"name": "Format Failure",
|
|
"typeVersion": 1,
|
|
"position": [
|
|
400,
|
|
500
|
|
],
|
|
"parameters": {
|
|
"name": "Format Failure Message",
|
|
"typeVersion": 1,
|
|
"position": [
|
|
1800,
|
|
100
|
|
],
|
|
"parameters": {
|
|
"template": "Sum is {sum}, which is not greater than 50.",
|
|
"variables": {
|
|
"sum": "$sum"
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"id": "store_result",
|
|
"name": "Store Result",
|
|
"type": "var.set",
|
|
"typeVersion": 1,
|
|
"position": [
|
|
700,
|
|
500
|
|
],
|
|
"parameters": {
|
|
"name": "Store Result",
|
|
"typeVersion": 1,
|
|
"position": [
|
|
700,
|
|
500
|
|
],
|
|
"parameters": {
|
|
"name": "Store Result",
|
|
"typeVersion": 1,
|
|
"position": [
|
|
700,
|
|
500
|
|
],
|
|
"parameters": {
|
|
"name": "Store Final Result",
|
|
"typeVersion": 1,
|
|
"position": [
|
|
2100,
|
|
50
|
|
],
|
|
"parameters": {
|
|
"key": "final_message",
|
|
"value": "$message"
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
],
|
|
"connections": {
|
|
"Create Sample Data": {
|
|
"main": {
|
|
"0": [
|
|
{
|
|
"node": "[object Object]",
|
|
"type": "main",
|
|
"index": 0
|
|
}
|
|
]
|
|
}
|
|
},
|
|
"Filter Even Numbers": {
|
|
"main": {
|
|
"0": [
|
|
{
|
|
"node": "[object Object]",
|
|
"type": "main",
|
|
"index": 0
|
|
}
|
|
]
|
|
}
|
|
},
|
|
"Square Each Number": {
|
|
"main": {
|
|
"0": [
|
|
{
|
|
"node": "[object Object]",
|
|
"type": "main",
|
|
"index": 0
|
|
}
|
|
]
|
|
}
|
|
},
|
|
"Sum All Values": {
|
|
"main": {
|
|
"0": [
|
|
{
|
|
"node": "[object Object]",
|
|
"type": "main",
|
|
"index": 0
|
|
}
|
|
]
|
|
}
|
|
},
|
|
"Check If Sum > 50": {
|
|
"main": {
|
|
"0": [
|
|
{
|
|
"node": "[object Object]",
|
|
"type": "main",
|
|
"index": 0
|
|
}
|
|
]
|
|
}
|
|
},
|
|
"Branch On Result": {
|
|
"main": {
|
|
"0": [
|
|
{
|
|
"node": "[object Object]",
|
|
"type": "main",
|
|
"index": 0
|
|
}
|
|
]
|
|
}
|
|
},
|
|
"Format Success Message": {
|
|
"main": {
|
|
"0": [
|
|
{
|
|
"node": "[object Object]",
|
|
"type": "main",
|
|
"index": 0
|
|
}
|
|
]
|
|
}
|
|
},
|
|
"Format Failure Message": {
|
|
"main": {
|
|
"0": [
|
|
{
|
|
"node": "[object Object]",
|
|
"type": "main",
|
|
"index": 0
|
|
}
|
|
]
|
|
}
|
|
}
|
|
},
|
|
"staticData": {},
|
|
"meta": {},
|
|
"settings": {
|
|
"timezone": "UTC",
|
|
"executionTimeout": 3600,
|
|
"saveExecutionProgress": true,
|
|
"saveDataErrorExecution": "all",
|
|
"saveDataSuccessExecution": "all"
|
|
}
|
|
}
|