{
  "author": "Voodflow",
  "license": "MIT",
  "description": "ForEach: Iterate over users, create greeting, and send notification",
  "version": "1.0.0",
  "nodes": [
    {
      "id": "manual_trigger_node-fe-ex-000",
      "type": "manual_trigger_node",
      "position": { "x": -1150, "y": -50 },
      "data": {
        "label": "Manual Trigger",
        "description": "Run workflow manually",
        "icon": "heroicon-o-play",
        "iconType": "heroicon",
        "color": "amber",
        "display_name": "Manual Trigger",
        "isNew": true,
        "isExpanded": true,
        "positioning": { "input": false, "output": true },
        "config": {
          "label": "Manual Trigger",
          "test_payload": "{}",
          "positioning": { "input": false, "output": true },
          "isExpanded": true
        }
      },
      "measured": { "width": 450, "height": 300 }
    },
    {
      "id": "dummy_data_node-fe-ex-001",
      "type": "dummy_data_node",
      "position": { "x": -600, "y": -50 },
      "data": {
        "label": "Users List",
        "description": "Array of users",
        "data_type": "json",
        "content": "{\n  \"data\": [\n    { \"id\": 1, \"name\": \"Alice\", \"email\": \"alice@example.com\" },\n    { \"id\": 2, \"name\": \"Bob\", \"email\": \"bob@example.com\" },\n    { \"id\": 3, \"name\": \"Charlie\", \"email\": \"charlie@example.com\" }\n  ]\n}",
        "icon": "heroicon-o-document-arrow-down",
        "iconType": "heroicon",
        "color": "emerald",
        "display_name": "Dummy Data",
        "isNew": true,
        "isExpanded": true,
        "positioning": { "input": false, "output": true },
        "config": {
          "label": "Users List",
          "data_type": "json",
          "content": "{\n  \"data\": [\n    { \"id\": 1, \"name\": \"Alice\", \"email\": \"alice@example.com\" },\n    { \"id\": 2, \"name\": \"Bob\", \"email\": \"bob@example.com\" },\n    { \"id\": 3, \"name\": \"Charlie\", \"email\": \"charlie@example.com\" }\n  ]\n}",
          "positioning": { "input": false, "output": true },
          "isExpanded": true
        }
      },
      "measured": { "width": 450, "height": 400 }
    },
    {
      "id": "for_each_node-fe-ex-002",
      "type": "for_each_node",
      "position": { "x": 0, "y": -50 },
      "data": {
        "label": "For Each User",
        "description": "Iterate over data array",
        "array_field": "data",
        "max_iterations": 100,
        "icon": "heroicon-o-arrow-path",
        "iconType": "heroicon",
        "color": "yellow",
        "display_name": "ForEach",
        "isNew": true,
        "isExpanded": true,
        "config": {
          "label": "For Each User",
          "description": "Iterate over data array",
          "array_field": "data",
          "max_iterations": 100,
          "isExpanded": true
        }
      },
      "measured": { "width": 450, "height": 300 }
    },
    {
      "id": "expression_node-fe-ex-003",
      "type": "expression_node",
      "position": { "x": 600, "y": -50 },
      "data": {
        "label": "Create Greeting",
        "description": "Build a welcome message for each user",
        "expressions": [
          { "field": "greeting", "expression": "\"Welcome, \" ~ {{name}} ~ \"!\"" },
          { "field": "summary", "expression": "{{name}} ~ \" <\" ~ {{email}} ~ \">\"" }
        ],
        "pass_through_input": true,
        "evaluation_mode": "per_record",
        "icon": "heroicon-o-command-line",
        "iconType": "heroicon",
        "color": "emerald",
        "display_name": "Expression",
        "isNew": true,
        "isExpanded": true,
        "config": {
          "label": "Create Greeting",
          "description": "Build a welcome message for each user",
          "expressions": [
            { "field": "greeting", "expression": "\"Welcome, \" ~ {{name}} ~ \"!\"" },
            { "field": "summary", "expression": "{{name}} ~ \" <\" ~ {{email}} ~ \">\"" }
          ],
          "pass_through_input": true,
          "evaluation_mode": "per_record",
          "isExpanded": true
        }
      },
      "measured": { "width": 450, "height": 350 }
    },
    {
      "id": "system_notification-fe-ex-004",
      "type": "system_notification",
      "position": { "x": 1200, "y": -50 },
      "data": {
        "label": "Notify Admin",
        "description": "Send greeting to admin user",
        "title": "{{greeting}}",
        "body": "Processed user: {{summary}}",
        "status": "success",
        "icon_name": "",
        "icon_color": "",
        "duration_ms": null,
        "channels": ["database"],
        "dispatch_database_event": true,
        "recipient_user_id": "1",
        "icon": "heroicon-o-bell",
        "iconType": "heroicon",
        "color": "indigo",
        "display_name": "System Notification",
        "isNew": true,
        "isExpanded": true,
        "config": {
          "label": "Notify Admin",
          "description": "Send greeting to admin user",
          "title": "{{greeting}}",
          "body": "Processed user: {{summary}}",
          "status": "success",
          "icon_name": "",
          "icon_color": "",
          "duration_ms": null,
          "channels": ["database"],
          "dispatch_database_event": true,
          "recipient_user_id": "1",
          "isExpanded": true
        }
      },
      "measured": { "width": 450, "height": 400 }
    }
  ],
  "edges": [
    {
      "id": "edge-trigger-to-dummy",
      "source": "manual_trigger_node-fe-ex-000",
      "target": "dummy_data_node-fe-ex-001",
      "sourceHandle": null,
      "targetHandle": null,
      "style": { "stroke": "#64748b", "strokeWidth": 2 }
    },
    {
      "id": "edge-dummy-to-foreach",
      "source": "dummy_data_node-fe-ex-001",
      "target": "for_each_node-fe-ex-002",
      "sourceHandle": null,
      "targetHandle": null,
      "style": { "stroke": "#64748b", "strokeWidth": 2 }
    },
    {
      "id": "edge-foreach-to-expression",
      "source": "for_each_node-fe-ex-002",
      "target": "expression_node-fe-ex-003",
      "sourceHandle": null,
      "targetHandle": null,
      "style": { "stroke": "#64748b", "strokeWidth": 2 }
    },
    {
      "id": "edge-expression-to-notification",
      "source": "expression_node-fe-ex-003",
      "target": "system_notification-fe-ex-004",
      "sourceHandle": null,
      "targetHandle": null,
      "style": { "stroke": "#64748b", "strokeWidth": 2 }
    }
  ],
  "viewport": { "x": 800, "y": 300, "zoom": 0.55 },
  "exportedAt": "2026-04-01T16:00:00.000Z",
  "voodflowVersion": "1.0.0"
}
