[
  {
    "id": "3000000000000001",
    "type": "tab",
    "label": "流程計數狀態",
    "disabled": false,
    "info": "以流程範圍內容保存手動觸發次數。",
    "env": []
  },
  {
    "id": "3000000000000002",
    "type": "inject",
    "z": "3000000000000001",
    "name": "手動增加計數",
    "props": [
      {
        "p": "payload"
      },
      {
        "p": "topic",
        "vt": "str"
      }
    ],
    "repeat": "",
    "crontab": "",
    "once": false,
    "onceDelay": 0.1,
    "topic": "",
    "payload": "",
    "payloadType": "date",
    "x": 160,
    "y": 100,
    "wires": [
      [
        "3000000000000003"
      ]
    ]
  },
  {
    "id": "3000000000000003",
    "type": "change",
    "z": "3000000000000001",
    "name": "更新流程計數",
    "rules": [
      {
        "t": "set",
        "p": "count",
        "pt": "flow",
        "to": "($目前 := $flowContext(\"count\"); $exists($目前) ? $目前 + 1 : 1)",
        "tot": "jsonata"
      },
      {
        "t": "set",
        "p": "payload",
        "pt": "msg",
        "to": "count",
        "tot": "flow"
      }
    ],
    "action": "",
    "property": "",
    "from": "",
    "to": "",
    "reg": false,
    "x": 390,
    "y": 100,
    "wires": [
      [
        "3000000000000004"
      ]
    ]
  },
  {
    "id": "3000000000000004",
    "type": "debug",
    "z": "3000000000000001",
    "name": "檢視目前計數",
    "active": true,
    "tosidebar": true,
    "console": false,
    "tostatus": false,
    "complete": "payload",
    "targetType": "msg",
    "statusVal": "",
    "statusType": "auto",
    "x": 700,
    "y": 100,
    "wires": []
  }
]
