{
  "author": "Voodflow",
  "license": "MIT",
  "description": "Expression: Calculate total with VAT (22%)",
  "version": "1.0.0",
  "nodes": [
    {
      "id": "dummy_data_node-expr-ex-001",
      "type": "dummy_data_node",
      "position": { "x": -600, "y": -50 },
      "data": {
        "label": "Invoice Line",
        "description": "Product with price and quantity",
        "data_type": "json",
        "content": "{\n  \"product\": \"Widget Pro\",\n  \"price\": 45.00,\n  \"quantity\": 3,\n  \"subtotal\": 135.00\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": "Invoice Line",
          "data_type": "json",
          "content": "{\n  \"product\": \"Widget Pro\",\n  \"price\": 45.00,\n  \"quantity\": 3,\n  \"subtotal\": 135.00\n}",
          "positioning": { "input": false, "output": true },
          "isExpanded": true
        }
      },
      "measured": { "width": 450, "height": 380 }
    },
    {
      "id": "expression_node-expr-ex-002",
      "type": "expression_node",
      "position": { "x": 0, "y": -50 },
      "data": {
        "label": "Calculate VAT",
        "description": "Add 22% VAT to subtotal",
        "expressions": [
          { "field": "vat_amount", "expression": "{{input.subtotal}} * 0.22" },
          { "field": "total_with_vat", "expression": "{{input.subtotal}} * 1.22" }
        ],
        "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": "Calculate VAT",
          "description": "Add 22% VAT to subtotal",
          "expressions": [
            { "field": "vat_amount", "expression": "{{input.subtotal}} * 0.22" },
            { "field": "total_with_vat", "expression": "{{input.subtotal}} * 1.22" }
          ],
          "pass_through_input": true,
          "evaluation_mode": "per_record",
          "isExpanded": true
        }
      },
      "measured": { "width": 500, "height": 400 }
    },
    {
      "id": "data_viewer_node-expr-ex-003",
      "type": "data_viewer_node",
      "position": { "x": 650, "y": -50 },
      "data": {
        "label": "Invoice Total",
        "description": "With VAT calculated",
        "view_mode": "auto",
        "icon": "heroicon-o-table-cells",
        "iconType": "heroicon",
        "color": "slate",
        "display_name": "Data Viewer",
        "isNew": true,
        "config": { "label": "Invoice Total", "view_mode": "auto" }
      },
      "measured": { "width": 450, "height": 300 }
    }
  ],
  "edges": [
    {
      "id": "edge-dummy-to-expr",
      "source": "dummy_data_node-expr-ex-001",
      "target": "expression_node-expr-ex-002",
      "sourceHandle": null,
      "targetHandle": null,
      "style": { "stroke": "#64748b", "strokeWidth": 2 }
    },
    {
      "id": "edge-expr-to-viewer",
      "source": "expression_node-expr-ex-002",
      "target": "data_viewer_node-expr-ex-003",
      "sourceHandle": null,
      "targetHandle": null,
      "style": { "stroke": "#64748b", "strokeWidth": 2 }
    }
  ],
  "viewport": { "x": 700, "y": 300, "zoom": 0.8 },
  "exportedAt": "2026-03-31T18:00:00.000Z",
  "voodflowVersion": "1.0.0"
}
