{
  "author": "Voodflow",
  "license": "MIT",
  "description": "Switch: Route a single order by payment.status using dot notation",
  "version": "1.2.0",
  "nodes": [
    {
      "id": "manual_trigger-sw-dot-000",
      "type": "manual_trigger_node",
      "position": { "x": -1200, "y": 0 },
      "data": {
        "label": "Manual Trigger",
        "description": "Manually trigger workflow execution",
        "icon": "heroicon-o-hand-raised",
        "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-sw-dot-001",
      "type": "dummy_data_node",
      "position": { "x": -650, "y": 0 },
      "data": {
        "label": "Single Order",
        "description": "One order with nested payment info",
        "data_type": "json",
        "content": "{\n  \"order_id\": 1042,\n  \"customer\": \"Alice\",\n  \"amount\": 89.97,\n  \"purchased_at\": \"2026-03-28T10:15:00Z\",\n  \"payment\": {\n    \"method\": \"credit_card\",\n    \"status\": \"success\"\n  },\n  \"shipping\": {\n    \"carrier\": \"DHL\",\n    \"tracking\": \"DHL-98765\"\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": "Single Order",
          "description": "One order with nested payment info",
          "data_type": "json",
          "content": "{\n  \"order_id\": 1042,\n  \"customer\": \"Alice\",\n  \"amount\": 89.97,\n  \"purchased_at\": \"2026-03-28T10:15:00Z\",\n  \"payment\": {\n    \"method\": \"credit_card\",\n    \"status\": \"success\"\n  },\n  \"shipping\": {\n    \"carrier\": \"DHL\",\n    \"tracking\": \"DHL-98765\"\n  }\n}",
          "positioning": { "input": false, "output": true },
          "isExpanded": true
        }
      },
      "measured": { "width": 450, "height": 400 }
    },
    {
      "id": "switch_node-sw-dot-002",
      "type": "switch_node",
      "position": { "x": -50, "y": 0 },
      "data": {
        "label": "Payment Status",
        "description": "Route by payment.status",
        "field": "payment.status",
        "cases": [
          { "id": "case_success", "operator": "equals", "value": "success" },
          { "id": "case_pending", "operator": "equals", "value": "pending" },
          { "id": "case_failed", "operator": "equals", "value": "failed" }
        ],
        "icon": "heroicon-o-arrows-right-left",
        "iconType": "heroicon",
        "color": "amber",
        "display_name": "Switch",
        "isNew": true,
        "isExpanded": true,
        "config": {
          "label": "Payment Status",
          "description": "Route by payment.status",
          "field": "payment.status",
          "cases": [
            { "id": "case_success", "operator": "equals", "value": "success" },
            { "id": "case_pending", "operator": "equals", "value": "pending" },
            { "id": "case_failed", "operator": "equals", "value": "failed" }
          ],
          "isExpanded": true
        }
      },
      "measured": { "width": 500, "height": 400 }
    },
    {
      "id": "data_viewer_node-sw-dot-003",
      "type": "data_viewer_node",
      "position": { "x": 650, "y": -300 },
      "data": {
        "label": "SUCCESS",
        "description": "Paid orders land here",
        "icon": "heroicon-o-eye",
        "iconType": "heroicon",
        "color": "emerald",
        "display_name": "Data Viewer",
        "isNew": true,
        "isExpanded": false,
        "config": {
          "label": "SUCCESS",
          "description": "Paid orders land here",
          "isExpanded": false
        }
      },
      "measured": { "width": 350, "height": 200 }
    },
    {
      "id": "data_viewer_node-sw-dot-004",
      "type": "data_viewer_node",
      "position": { "x": 650, "y": 0 },
      "data": {
        "label": "PENDING",
        "description": "Awaiting payment confirmation",
        "icon": "heroicon-o-eye",
        "iconType": "heroicon",
        "color": "amber",
        "display_name": "Data Viewer",
        "isNew": true,
        "isExpanded": false,
        "config": {
          "label": "PENDING",
          "description": "Awaiting payment confirmation",
          "isExpanded": false
        }
      },
      "measured": { "width": 350, "height": 200 }
    },
    {
      "id": "data_viewer_node-sw-dot-005",
      "type": "data_viewer_node",
      "position": { "x": 650, "y": 300 },
      "data": {
        "label": "FAILED",
        "description": "Payment failed — needs retry",
        "icon": "heroicon-o-eye",
        "iconType": "heroicon",
        "color": "rose",
        "display_name": "Data Viewer",
        "isNew": true,
        "isExpanded": false,
        "config": {
          "label": "FAILED",
          "description": "Payment failed — needs retry",
          "isExpanded": false
        }
      },
      "measured": { "width": 350, "height": 200 }
    }
  ],
  "edges": [
    {
      "id": "edge-trigger-to-dummy",
      "source": "manual_trigger-sw-dot-000",
      "target": "dummy_data_node-sw-dot-001",
      "sourceHandle": null,
      "targetHandle": null,
      "style": { "stroke": "#64748b", "strokeWidth": 2 }
    },
    {
      "id": "edge-dummy-to-switch",
      "source": "dummy_data_node-sw-dot-001",
      "target": "switch_node-sw-dot-002",
      "sourceHandle": null,
      "targetHandle": null,
      "style": { "stroke": "#64748b", "strokeWidth": 2 }
    },
    {
      "id": "edge-switch-success",
      "source": "switch_node-sw-dot-002",
      "target": "data_viewer_node-sw-dot-003",
      "sourceHandle": "case_case_success",
      "targetHandle": null,
      "style": { "stroke": "#10b981", "strokeWidth": 2 }
    },
    {
      "id": "edge-switch-pending",
      "source": "switch_node-sw-dot-002",
      "target": "data_viewer_node-sw-dot-004",
      "sourceHandle": "case_case_pending",
      "targetHandle": null,
      "style": { "stroke": "#f59e0b", "strokeWidth": 2 }
    },
    {
      "id": "edge-switch-failed",
      "source": "switch_node-sw-dot-002",
      "target": "data_viewer_node-sw-dot-005",
      "sourceHandle": "case_case_failed",
      "targetHandle": null,
      "style": { "stroke": "#f43f5e", "strokeWidth": 2 }
    }
  ],
  "viewport": { "x": 900, "y": 350, "zoom": 0.55 },
  "exportedAt": "2026-04-01T18:20:00.000Z",
  "voodflowVersion": "1.0.0"
}
