{ "version": "2.2.0", "name": "cross-project-demo", "description": "Demonstrates integration between multiple MetaBuilder standalone projects", "nodes": [ { "id": "start", "type": "trigger", "op": "manual", "description": "Manual trigger to start the workflow" }, { "id": "check-postgres", "type": "operation", "op": "postgres.checkConnection", "description": "Verify database is accessible", "params": { "host": "localhost", "port": 5432, "database": "metabuilder", "user": "postgres" } }, { "id": "list-containers", "type": "operation", "op": "docker.listContainers", "description": "Get running Docker containers", "params": { "all": false } }, { "id": "create-3d-model", "type": "operation", "op": "cadquery.box", "description": "Create a sample 3D box model", "params": { "length": 100, "width": 50, "height": 25, "outputPath": "/tmp/demo-box.step" } }, { "id": "run-mojo-benchmark", "type": "operation", "op": "mojo.runExample", "description": "Run Mojo performance example", "params": { "example": "life/benchmark.mojo" } }, { "id": "aggregate-results", "type": "operation", "op": "transform", "description": "Combine all results into a summary", "params": { "expression": { "database": { "connected": "{{ $nodes['check-postgres'].success }}", "version": "{{ $nodes['check-postgres'].version }}" }, "docker": { "containerCount": "{{ $nodes['list-containers'].containers.length }}", "containers": "{{ $nodes['list-containers'].containers }}" }, "cadquery": { "modelCreated": "{{ $nodes['create-3d-model'].success }}", "outputPath": "{{ $nodes['create-3d-model'].outputPath }}" }, "mojo": { "benchmarkRan": "{{ $nodes['run-mojo-benchmark'].success }}", "executionTime": "{{ $nodes['run-mojo-benchmark'].executionTime }}" } } } }, { "id": "share-results", "type": "operation", "op": "pastebin.create", "description": "Share results as a paste", "params": { "content": "{{ JSON.stringify($nodes['aggregate-results'].result, null, 2) }}", "title": "Cross-Project Workflow Results", "language": "json", "expiresIn": "1d" } }, { "id": "send-notification", "type": "operation", "op": "smtp.sendEmail", "description": "Email the results", "params": { "from": "workflow@metabuilder.local", "to": "admin@example.com", "subject": "Cross-Project Workflow Complete", "body": "Workflow completed successfully.\n\nResults: {{ $nodes['share-results'].url }}\n\nSummary:\n- Database: {{ $nodes['check-postgres'].success ? 'Connected' : 'Failed' }}\n- Docker Containers: {{ $nodes['list-containers'].containers.length }}\n- 3D Model: {{ $nodes['create-3d-model'].success ? 'Created' : 'Failed' }}\n- Mojo Benchmark: {{ $nodes['run-mojo-benchmark'].executionTime }}ms" } } ], "connections": [ { "from": "start", "to": "check-postgres" }, { "from": "start", "to": "list-containers" }, { "from": "start", "to": "create-3d-model" }, { "from": "start", "to": "run-mojo-benchmark" }, { "from": "check-postgres", "to": "aggregate-results" }, { "from": "list-containers", "to": "aggregate-results" }, { "from": "create-3d-model", "to": "aggregate-results" }, { "from": "run-mojo-benchmark", "to": "aggregate-results" }, { "from": "aggregate-results", "to": "share-results" }, { "from": "share-results", "to": "send-notification" } ], "metadata": { "author": "MetaBuilder", "created": "2026-01-21", "tags": ["demo", "cross-project", "integration"], "projects": ["postgres", "docker", "cadquery", "mojo", "pastebin", "smtp"] } }