Skip to content
1        10        20        30        401{2  "name": "quickstart",3  "nodes": [4    {5      "id": "csv",6      "type": "source",7      "position": {8        "x": 0,9        "y": 010      },11      "data": {12        "label": "Orders CSV",13        "componentId": "src.csv",14        "properties": {15          "path": "orders.csv"16        }17      }18    },19    {20      "id": "filter",21      "type": "transform",22      "position": {23        "x": 220,24        "y": 025      },26      "data": {27        "label": "Amount >= 20",28        "componentId": "xf.filter",29        "properties": {30          "predicate": {31            "mode": "python",32            "expr": "amount >= 20"33          }34        }35      }36    },37    {38      "id": "derive",39      "type": "transform",40      "position": {41        "x": 440,42        "y": 043      },44      "data": {45        "label": "Add total",46        "componentId": "xf.pyexpr",47        "properties": {48          "columns": [49            {50              "name": "total",51              "expr": "round(amount * 1.2, 2)"52            },53            {54              "name": "tag",55              "expr": "f'{region}-{customer}'"56            }57          ]58        }59      }60    },61    {62      "id": "out",63      "type": "sink",64      "position": {65        "x": 660,66        "y": 067      },68      "data": {69        "label": "Result CSV",70        "componentId": "snk.csv",71        "properties": {72          "path": "out.csv"73        }74      }75    }76  ],77  "edges": [78    {79      "id": "e1",80      "source": "csv",81      "target": "filter",82      "sourceHandle": "main",83      "targetHandle": "main",84      "data": {85        "connectionType": "main"86      }87    },88    {89      "id": "e2",90      "source": "filter",91      "target": "derive",92      "sourceHandle": "main",93      "targetHandle": "main",94      "data": {95        "connectionType": "main"96      }97    },98    {99      "id": "e3",100      "source": "derive",101      "target": "out",102      "sourceHandle": "main",103      "targetHandle": "main",104      "data": {105        "connectionType": "main"106      }107    }108  ]109}