- Migrated 67/72 workflows from MetaBuilder JSON Script to n8n schema
- All migrated workflows now conform to schemas/n8n-workflow.schema.json
- Key transformations applied:
* Edges array → adjacency map connections format
* Added required n8n node properties (name, typeVersion, position)
* Converted trigger object → triggers array with explicit declaration
* Preserved original node logic and parameters
* Maintained tenantId filtering for multi-tenant safety
- Created backup files (.backup.json/.backup.jsonscript) for all 67 migrated workflows
- Migration script fixed to handle edge cases in node ID conversion
5 workflows skipped due to JSON syntax errors (minified with unescaped operators):
- reset-password.jsonscript
- list-users.jsonscript
- delete-user.jsonscript
- list-scripts.jsonscript
- export-script.jsonscript
These 5 files need manual cleanup to fix JSON syntax before migration.
Migration impact:
- 67 workflows now compatible with n8n tooling and executors
- First-class variable support enabled via schema
- Adjacency map connections enable more complex DAG workflows
- Zero functional regression - all logic preserved
Co-Authored-By: Claude Haiku 4.5 <noreply@anthropic.com>
- Moved n8n workflow schema to schemas/n8n-workflow.schema.json
- Added `variables` property at workflow root level for type-safe, reusable workflow configuration
- Implemented full variable system with:
* Type system (string, number, boolean, array, object, date, any)
* Validation rules (min, max, pattern, enum)
* Scope control (workflow, execution, global)
* Required/optional with default values
- Created comprehensive N8N_VARIABLES_GUIDE.md (6,800+ words) with:
* 5 real-world use case examples
* Best practices and migration guide from meta to variables
* Complete property reference and expression syntax
- Created N8N_VARIABLES_EXAMPLE.json demonstrating e-commerce order processing
- Documented schema gaps in N8N_SCHEMA_GAPS.md (10 missing enterprise features)
- Created migration infrastructure:
* scripts/migrate-workflows-to-n8n.ts for workflow format conversion
* npm scripts for dry-run and full migration
* N8N_COMPLIANCE_AUDIT.md tracking 72 workflows needing migration
- Established packagerepo backend workflows with n8n schema format
Impact: Variables now first-class citizens enabling DRY principle, type safety, and enterprise-grade configuration management across workflows.
Co-Authored-By: Claude Haiku 4.5 <noreply@anthropic.com>