{
  "format": "rpai-station-workflow",
  "version": 1,
  "name": "Data entry practice",
  "variables": [],
  "activities": [
    {
      "id": "academy-001",
      "type": "comment",
      "name": "About this workflow",
      "properties": {
        "text": "Station Academy beginner project. Types a short list into an empty TextEdit or Notepad document, one line per item. Safe: it only types into the document you click."
      }
    },
    {
      "id": "academy-002",
      "type": "set_variable",
      "name": "Items to enter",
      "properties": {
        "variableName": "entries",
        "valueType": "static",
        "value": "Paper,Pens,Folders,Stapler"
      }
    },
    {
      "id": "academy-003",
      "type": "string_operation",
      "name": "Turn them into a list",
      "properties": {
        "operation": "split",
        "input": "{{entries}}",
        "delimiter": ",",
        "saveToVariable": "items"
      }
    },
    {
      "id": "academy-004",
      "type": "set_variable",
      "name": "Lines typed",
      "properties": {
        "variableName": "typed",
        "valueType": "static",
        "value": "0"
      }
    },
    {
      "id": "academy-005",
      "type": "message_box",
      "name": "Get ready",
      "properties": {
        "title": "Station Academy",
        "message": "Open an empty TextEdit (Mac) or Notepad (Windows) document. Press OK, then click into the document within 5 seconds and keep your hands off the keyboard.",
        "buttons": "ok",
        "icon": "info"
      }
    },
    {
      "id": "academy-006",
      "type": "delay",
      "name": "Time to click into the document",
      "properties": {
        "duration": 5000
      }
    },
    {
      "id": "academy-009",
      "type": "loop",
      "name": "For each item",
      "properties": {
        "loopType": "collection",
        "collection": "items",
        "itemVariable": "item"
      },
      "children": [
        {
          "id": "academy-007",
          "type": "type",
          "name": "Type the item and press Enter",
          "properties": {
            "text": "{{item}}",
            "typingMode": "type",
            "hotkeyAfter": "enter"
          }
        },
        {
          "id": "academy-008",
          "type": "math_operation",
          "name": "Count it",
          "properties": {
            "operation": "add",
            "operand1": "typed",
            "operand2": "1",
            "saveToVariable": "typed"
          }
        }
      ]
    },
    {
      "id": "academy-010",
      "type": "log",
      "name": "Done",
      "properties": {
        "message": "Typed {{typed}} lines.",
        "level": "info"
      }
    }
  ]
}
