{
  "product": "happytree-node.workflow",
  "formatVersion": 1,
  "blueprint": {
    "name": "E07 \u00B7 03 Separar lista de um fornecedor",
    "nodes": [
      {
        "id": "fonte",
        "type": "files.read-json",
        "settings": {
          "sourceId": "__htn_configurar__"
        },
        "x": 0,
        "y": 0
      },
      {
        "id": "tabela",
        "type": "tables.from-json",
        "settings": {},
        "x": 290,
        "y": 0
      },
      {
        "id": "abaixo-minimo",
        "type": "tables.filter-columns",
        "settings": {
          "left": "saldo",
          "right": "minimo",
          "comparison": "Menor que",
          "nulls": "Falhar",
          "ignoreCase": false
        },
        "x": 580,
        "y": 0
      },
      {
        "id": "repor",
        "type": "tables.calculate-column",
        "settings": {
          "left": "meta",
          "rightMode": "Coluna",
          "right": "saldo",
          "operation": "Subtrair",
          "output": "quantidade_repor",
          "nulls": "Falhar"
        },
        "x": 870,
        "y": 0
      },
      {
        "id": "custo-reposicao",
        "type": "tables.calculate-column",
        "settings": {
          "left": "quantidade_repor",
          "rightMode": "Coluna",
          "right": "custo_unitario",
          "operation": "Multiplicar",
          "output": "custo_reposicao",
          "nulls": "Falhar"
        },
        "x": 1160,
        "y": 0
      },
      {
        "id": "fornecedor",
        "type": "tables.filter",
        "settings": {
          "comparison": "Igual a",
          "value": "Papel \u0026 Cia",
          "ignoreCase": false,
          "column": "fornecedor"
        },
        "x": 0,
        "y": 180
      },
      {
        "id": "lista",
        "type": "tables.text",
        "settings": {
          "template": "{{/sku}} | {{/produto}} | repor {{/quantidade_repor}} unidades | R$ {{/custo_reposicao}}",
          "separator": "Nova linha"
        },
        "x": 290,
        "y": 180
      }
    ],
    "edges": [
      {
        "source": "fonte",
        "target": "tabela",
        "order": 0
      },
      {
        "source": "tabela",
        "target": "abaixo-minimo",
        "order": 0
      },
      {
        "source": "abaixo-minimo",
        "target": "repor",
        "order": 0
      },
      {
        "source": "repor",
        "target": "custo-reposicao",
        "order": 0
      },
      {
        "source": "custo-reposicao",
        "target": "fornecedor",
        "order": 0
      },
      {
        "source": "fornecedor",
        "target": "lista",
        "order": 0
      }
    ],
    "schemaVersion": 1
  },
  "requiredBindings": [
    {
      "nodeId": "fonte",
      "nodeName": "Ler arquivo JSON",
      "property": "sourceId",
      "title": "Fonte do projeto",
      "kind": "project-source"
    }
  ]
}