{
  "kind": "open-flow-workflow",
  "version": 1,
  "name": "Run on a schedule",
  "content": {
    "modelVersion": 14,
    "document": {
      "bindings": {},
      "graph": {
        "nodes": {
          "schedule": {
            "name": "Every weekday",
            "kind": "cron",
            "cronTimes": [
              {
                "type": "cron",
                "expression": "0 9 * * 1-5",
                "timezone": "UTC"
              }
            ]
          },
          "report": {
            "inputs": {},
            "name": "Prepare the daily report",
            "kind": "task",
            "task": {
              "inputs": [],
              "outputs": [
                {
                  "jsonSchema": {
                    "type": "string"
                  },
                  "nullable": false,
                  "handle": "message"
                }
              ],
              "name": "Prepare the daily report",
              "moduleId": "report-module",
              "capabilities": [
                {
                  "kind": "connector",
                  "mode": "independent",
                  "actions": []
                }
              ]
            }
          },
          "outputs": {
            "name": "Workflow result",
            "kind": "outputs",
            "outputDefs": [
              {
                "jsonSchema": {
                  "type": "string"
                },
                "nullable": false,
                "handle": "message"
              }
            ],
            "outputMappings": {
              "message": {
                "kind": "sources",
                "sources": [
                  {
                    "kind": "node",
                    "nodeId": "report",
                    "output": "message"
                  }
                ]
              }
            }
          }
        },
        "edges": [
          {
            "source": "schedule",
            "target": "report"
          },
          {
            "source": "report",
            "target": "outputs"
          }
        ]
      }
    },
    "modules": {
      "report-module": {
        "name": "Prepare the daily report",
        "imports": [],
        "source": "export default () => ({ message: \"Daily report is ready\" });"
      }
    }
  },
  "presentation": {
    "designer": {
      "version": 1,
      "flow": {
        "nodes": {
          "schedule": {
            "x": 0,
            "y": 0
          },
          "report": {
            "x": 340,
            "y": 0
          },
          "outputs": {
            "x": 680,
            "y": 0
          }
        }
      }
    }
  }
}
