{
  "kind": "open-flow-workflow",
  "version": 1,
  "name": "Pause and continue",
  "content": {
    "modelVersion": 14,
    "document": {
      "bindings": {},
      "graph": {
        "nodes": {
          "start": {
            "name": "Start",
            "kind": "start",
            "inputDefs": []
          },
          "wait": {
            "inputs": {},
            "name": "Wait for review",
            "kind": "wait",
            "inputDefinitions": [],
            "prompt": "Wait for review"
          },
          "resume": {
            "inputs": {},
            "name": "Continue the work",
            "kind": "task",
            "task": {
              "inputs": [],
              "outputs": [
                {
                  "jsonSchema": {
                    "type": "string"
                  },
                  "nullable": false,
                  "handle": "message"
                }
              ],
              "name": "Continue the work",
              "moduleId": "resume-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": "resume",
                    "output": "message"
                  }
                ]
              }
            }
          }
        },
        "edges": [
          {
            "source": "start",
            "target": "wait"
          },
          {
            "source": "wait",
            "target": "resume",
            "sourceHandle": "continue"
          },
          {
            "source": "resume",
            "target": "outputs"
          }
        ]
      }
    },
    "modules": {
      "resume-module": {
        "name": "Continue the work",
        "imports": [],
        "source": "export default () => ({ message: \"Review finished\" });"
      }
    }
  },
  "presentation": {
    "designer": {
      "version": 1,
      "flow": {
        "nodes": {
          "start": {
            "x": 0,
            "y": 0
          },
          "wait": {
            "x": 340,
            "y": 0
          },
          "resume": {
            "x": 680,
            "y": 0
          },
          "outputs": {
            "x": 1020,
            "y": 0
          }
        }
      }
    }
  }
}
