xmove01

chain regexp

Aug 9th, 2023 (edited)
767
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. {
  2.     "nodes": [
  3.         {
  4.             "width": 80,
  5.             "height": 45,
  6.             "id": "start_node_default",
  7.             "type": "Start",
  8.             "position": {
  9.                 "x": 10,
  10.                 "y": 10
  11.             },
  12.             "data": {},
  13.             "selected": false,
  14.             "positionAbsolute": {
  15.                 "x": 10,
  16.                 "y": 10
  17.             }
  18.         },
  19.         {
  20.             "width": 250,
  21.             "height": 211,
  22.             "id": "chain_node_default",
  23.             "type": "Message",
  24.             "selected": false,
  25.             "position": {
  26.                 "x": 197,
  27.                 "y": 101
  28.             },
  29.             "data": {
  30.                 "nodes": [
  31.                     {
  32.                         "id": "sub_node_default",
  33.                         "type": "Text",
  34.                         "content": {
  35.                             "text": "Test quick answers",
  36.                             "type": ""
  37.                         },
  38.                         "buttons": [],
  39.                         "state": {}
  40.                     },
  41.                     {
  42.                         "id": "sub_node_ce58679f-f1c3-4e9b-92fe-d989adcbcca3",
  43.                         "type": "Answer",
  44.                         "content": {
  45.                             "validate": "Regex",
  46.                             "variable": "regexVar",
  47.                             "errorMessage": "Ви ввели не цифри",
  48.                             "message": "Введіть цифри",
  49.                             "answer": [
  50.                                 "1",
  51.                                 "2",
  52.                                 "3",
  53.                                 "test"
  54.                             ],
  55.                             "regexp": "^\\d+$"
  56.                         },
  57.                         "buttons": [],
  58.                         "state": {}
  59.                     }
  60.                 ]
  61.             },
  62.             "dragging": false,
  63.             "positionAbsolute": {
  64.                 "x": 197,
  65.                 "y": 101
  66.             }
  67.         },
  68.         {
  69.             "width": 250,
  70.             "height": 138,
  71.             "id": "chain_node_201a389f-ca68-43a2-9851-38299d44ebba",
  72.             "type": "Message",
  73.             "selected": false,
  74.             "position": {
  75.                 "x": 610,
  76.                 "y": 141.3125
  77.             },
  78.             "data": {
  79.                 "nodes": [
  80.                     {
  81.                         "id": "sub_node_cc798e28-d1b7-4f67-bea4-238c92712aea",
  82.                         "type": "Text",
  83.                         "content": {
  84.                             "text": "🤡",
  85.                             "type": ""
  86.                         },
  87.                         "buttons": [],
  88.                         "state": {}
  89.                     }
  90.                 ]
  91.             },
  92.             "positionAbsolute": {
  93.                 "x": 610,
  94.                 "y": 141.3125
  95.             },
  96.             "dragging": false
  97.         }
  98.     ],
  99.     "edges": [
  100.         {
  101.             "source": "start_node_default",
  102.             "sourceHandle": "start_node_default",
  103.             "target": "chain_node_default",
  104.             "targetHandle": "chain_node_default",
  105.             "id": "reactflow__edge-start_node_default-chain_node_default",
  106.             "selected": false
  107.         },
  108.         {
  109.             "source": "chain_node_default",
  110.             "sourceHandle": "sub_node_ce58679f-f1c3-4e9b-92fe-d989adcbcca3",
  111.             "target": "chain_node_201a389f-ca68-43a2-9851-38299d44ebba",
  112.             "targetHandle": "chain_node_201a389f-ca68-43a2-9851-38299d44ebba",
  113.             "id": "reactflow__edge-chain_node_defaultsub_node_ce58679f-f1c3-4e9b-92fe-d989adcbcca3-chain_node_201a389f-ca68-43a2-9851-38299d44ebbachain_node_201a389f-ca68-43a2-9851-38299d44ebba",
  114.             "selected": false
  115.         }
  116.     ],
  117.     "name": "Test quick answers"
  118. }
Advertisement
Add Comment
Please, Sign In to add comment