{
  "product": "happytree-node.workflows",
  "formatVersion": 1,
  "workflows": [
    {
      "id": "workflow-1",
      "workflow": {
        "product": "happytree-node.workflow",
        "formatVersion": 1,
        "blueprint": {
          "name": "E04 \u00B7 Conferir abas e calcular Excel",
          "nodes": [
            {
              "id": "carregar",
              "type": "files.load-local",
              "settings": {
                "path": "__htn_configurar__",
                "maxMegabytes": 10
              },
              "x": 40,
              "y": 80
            },
            {
              "id": "abas",
              "type": "tables.xlsx-sheets",
              "settings": {},
              "x": 360,
              "y": 340
            },
            {
              "id": "precos",
              "type": "tables.xlsx-formula",
              "settings": {
                "sheet": "Vendas",
                "range": "G2:G9",
                "function": "PROCV",
                "formula": "E2;Catalogo!$A$2:$D$4;3;FALSO",
                "name": "vendas-com-precos.xlsx"
              },
              "x": 360,
              "y": 80
            },
            {
              "id": "soma",
              "type": "tables.xlsx-formula",
              "settings": {
                "sheet": "Metas",
                "range": "C5",
                "function": "SOMA",
                "formula": "Vendas!H2:H9",
                "name": "vendas-calculadas.xlsx"
              },
              "x": 680,
              "y": 80
            },
            {
              "id": "vendas",
              "type": "tables.xlsx-calculated-table",
              "settings": {
                "sheet": "Vendas"
              },
              "x": 1000,
              "y": 80
            },
            {
              "id": "metas",
              "type": "tables.xlsx-calculated-table",
              "settings": {
                "sheet": "Metas"
              },
              "x": 1000,
              "y": 340
            }
          ],
          "edges": [
            {
              "source": "carregar",
              "target": "abas"
            },
            {
              "source": "carregar",
              "target": "precos"
            },
            {
              "source": "precos",
              "target": "soma"
            },
            {
              "source": "soma",
              "target": "vendas"
            },
            {
              "source": "soma",
              "target": "metas"
            }
          ],
          "schemaVersion": 1
        },
        "requiredBindings": [
          {
            "nodeId": "carregar",
            "nodeName": "Carregar arquivo da pasta",
            "property": "path",
            "title": "Arquivo no Servidor Local",
            "kind": "local-file"
          }
        ]
      }
    },
    {
      "id": "workflow-2",
      "workflow": {
        "product": "happytree-node.workflow",
        "formatVersion": 1,
        "blueprint": {
          "name": "E04 \u00B7 Excel para painel explor\u00E1vel",
          "nodes": [
            {
              "id": "carregar",
              "type": "files.load-local",
              "settings": {
                "path": "__htn_configurar__",
                "maxMegabytes": 10
              },
              "x": 40,
              "y": 80
            },
            {
              "id": "vendas",
              "type": "tables.xlsx-calculated-table",
              "settings": {
                "sheet": "Vendas"
              },
              "x": 360,
              "y": 80
            },
            {
              "id": "painel",
              "type": "bi.explore",
              "settings": {
                "title": "Vendas da Aurora Papelaria \u00B7 demonstra\u00E7\u00E3o fict\u00EDcia",
                "definition": "{\u0022filters\u0022:[{\u0022column\u0022:\u0022data\u0022,\u0022title\u0022:\u0022Per\u00EDodo\u0022,\u0022kind\u0022:\u0022date\u0022},{\u0022column\u0022:\u0022regiao\u0022,\u0022title\u0022:\u0022Regi\u00E3o\u0022,\u0022kind\u0022:\u0022category\u0022},{\u0022column\u0022:\u0022canal\u0022,\u0022title\u0022:\u0022Canal\u0022,\u0022kind\u0022:\u0022category\u0022},{\u0022column\u0022:\u0022receita\u0022,\u0022title\u0022:\u0022Valor da venda\u0022,\u0022kind\u0022:\u0022number\u0022}],\u0022panels\u0022:[{\u0022title\u0022:\u0022Pedidos\u0022,\u0022kind\u0022:\u0022indicator\u0022,\u0022operation\u0022:\u0022count\u0022,\u0022valueColumn\u0022:\u0022\u0022,\u0022categoryColumn\u0022:\u0022\u0022,\u0022seriesColumn\u0022:\u0022\u0022,\u0022unit\u0022:\u0022pedidos\u0022},{\u0022title\u0022:\u0022Receita\u0022,\u0022kind\u0022:\u0022indicator\u0022,\u0022operation\u0022:\u0022sum\u0022,\u0022valueColumn\u0022:\u0022receita\u0022,\u0022categoryColumn\u0022:\u0022\u0022,\u0022seriesColumn\u0022:\u0022\u0022,\u0022unit\u0022:\u0022R$\u0022},{\u0022title\u0022:\u0022Ticket m\u00E9dio por pedido\u0022,\u0022kind\u0022:\u0022indicator\u0022,\u0022operation\u0022:\u0022mean\u0022,\u0022valueColumn\u0022:\u0022receita\u0022,\u0022categoryColumn\u0022:\u0022\u0022,\u0022seriesColumn\u0022:\u0022\u0022,\u0022unit\u0022:\u0022R$\u0022},{\u0022title\u0022:\u0022Lucro bruto\u0022,\u0022kind\u0022:\u0022indicator\u0022,\u0022operation\u0022:\u0022sum\u0022,\u0022valueColumn\u0022:\u0022lucro\u0022,\u0022categoryColumn\u0022:\u0022\u0022,\u0022seriesColumn\u0022:\u0022\u0022,\u0022unit\u0022:\u0022R$\u0022},{\u0022title\u0022:\u0022Receita por regi\u00E3o e canal\u0022,\u0022kind\u0022:\u0022bar\u0022,\u0022operation\u0022:\u0022sum\u0022,\u0022valueColumn\u0022:\u0022receita\u0022,\u0022categoryColumn\u0022:\u0022regiao\u0022,\u0022seriesColumn\u0022:\u0022canal\u0022,\u0022unit\u0022:\u0022R$\u0022},{\u0022title\u0022:\u0022Receita por data\u0022,\u0022kind\u0022:\u0022line\u0022,\u0022operation\u0022:\u0022sum\u0022,\u0022valueColumn\u0022:\u0022receita\u0022,\u0022categoryColumn\u0022:\u0022data\u0022,\u0022seriesColumn\u0022:\u0022\u0022,\u0022unit\u0022:\u0022R$\u0022}]}"
              },
              "x": 680,
              "y": 80
            },
            {
              "id": "html-claro",
              "type": "bi.export-html",
              "settings": {
                "name": "painel-vendas-claro.html",
                "theme": "Claro",
                "interactive": true
              },
              "x": 1000,
              "y": 80
            },
            {
              "id": "html-escuro",
              "type": "bi.export-html",
              "settings": {
                "name": "painel-vendas-escuro.html",
                "theme": "Escuro",
                "interactive": true
              },
              "x": 1000,
              "y": 340
            }
          ],
          "edges": [
            {
              "source": "carregar",
              "target": "vendas"
            },
            {
              "source": "vendas",
              "target": "painel"
            },
            {
              "source": "painel",
              "target": "html-claro"
            },
            {
              "source": "painel",
              "target": "html-escuro"
            }
          ],
          "schemaVersion": 1
        },
        "requiredBindings": [
          {
            "nodeId": "carregar",
            "nodeName": "Carregar arquivo da pasta",
            "property": "path",
            "title": "Arquivo no Servidor Local",
            "kind": "local-file"
          }
        ]
      }
    },
    {
      "id": "workflow-3",
      "workflow": {
        "product": "happytree-node.workflow",
        "formatVersion": 1,
        "blueprint": {
          "name": "E04 \u00B7 CSV para indicadores e gr\u00E1fico",
          "nodes": [
            {
              "id": "csv",
              "type": "tables.csv",
              "settings": {
                "sourceId": "__htn_configurar__",
                "delimiter": ";"
              },
              "x": 40,
              "y": 80
            },
            {
              "id": "numero-receita",
              "type": "numbers.column",
              "settings": {
                "column": "receita",
                "target": "N\u00FAmero",
                "format": "Ponto",
                "nulls": "Falhar"
              },
              "x": 360,
              "y": 80
            },
            {
              "id": "numero-lucro",
              "type": "numbers.column",
              "settings": {
                "column": "lucro",
                "target": "N\u00FAmero",
                "format": "Ponto",
                "nulls": "Falhar"
              },
              "x": 680,
              "y": 80
            },
            {
              "id": "receita",
              "type": "bi.indicator",
              "settings": {
                "title": "Receita",
                "unit": "R$",
                "operation": "Soma",
                "valueColumn": "receita"
              },
              "x": 1000,
              "y": 40
            },
            {
              "id": "lucro",
              "type": "bi.indicator",
              "settings": {
                "title": "Lucro bruto",
                "unit": "R$",
                "operation": "Soma",
                "valueColumn": "lucro"
              },
              "x": 1000,
              "y": 270
            },
            {
              "id": "regioes",
              "type": "bi.chart",
              "settings": {
                "title": "Receita por regi\u00E3o",
                "unit": "R$",
                "operation": "Soma",
                "valueColumn": "receita",
                "categoryColumn": "regiao",
                "style": "Barras",
                "seriesColumn": ""
              },
              "x": 1000,
              "y": 500
            },
            {
              "id": "painel",
              "type": "bi.dashboard",
              "settings": {
                "title": "Resumo de vendas \u00B7 alternativa CSV"
              },
              "x": 1320,
              "y": 80
            },
            {
              "id": "html",
              "type": "bi.export-html",
              "settings": {
                "name": "painel-csv-claro.html",
                "theme": "Claro",
                "interactive": false
              },
              "x": 1640,
              "y": 80
            }
          ],
          "edges": [
            {
              "source": "csv",
              "target": "numero-receita"
            },
            {
              "source": "numero-receita",
              "target": "numero-lucro"
            },
            {
              "source": "numero-lucro",
              "target": "receita"
            },
            {
              "source": "numero-lucro",
              "target": "lucro"
            },
            {
              "source": "numero-lucro",
              "target": "regioes"
            },
            {
              "source": "receita",
              "target": "painel",
              "order": 0
            },
            {
              "source": "lucro",
              "target": "painel",
              "order": 1
            },
            {
              "source": "regioes",
              "target": "painel",
              "order": 2
            },
            {
              "source": "painel",
              "target": "html"
            }
          ],
          "schemaVersion": 1
        },
        "requiredBindings": [
          {
            "nodeId": "csv",
            "nodeName": "Ler CSV",
            "property": "sourceId",
            "title": "Fonte do projeto",
            "kind": "project-source"
          }
        ]
      }
    }
  ]
}