n8n/packages/nodes-base/nodes/Wait/test/Wait.workflow.json

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

163 lines
2.8 KiB
JSON
Raw Normal View History

{
"name": "[Unit Test] Wait Node",
"nodes": [
{
"parameters": {},
2023-04-18 03:28:05 -07:00
"id": "76e5dcfd-fdc7-472f-8832-bccc0eb122c0",
"name": "When clicking \"Execute Workflow\"",
"type": "n8n-nodes-base.manualTrigger",
"typeVersion": 1,
2023-04-18 03:28:05 -07:00
"position": [120, 420]
},
{
"parameters": {
2023-04-18 03:28:05 -07:00
"amount": 42,
"unit": "seconds"
},
2023-04-18 03:28:05 -07:00
"id": "37f2c758-6fb2-43ce-86ae-ca11ec957cbd",
"name": "Wait",
"type": "n8n-nodes-base.wait",
"typeVersion": 1,
2023-04-18 03:28:05 -07:00
"position": [560, 420],
"webhookId": "35edc971-c3e4-48cf-835d-4d73a4fd1fd8"
},
{
"parameters": {
"conditions": {
2023-04-18 03:28:05 -07:00
"number": [
{
2023-04-18 03:28:05 -07:00
"value1": "={{ parseInt($json.afterTimestamp) }}",
"operation": "largerEqual",
"value2": "={{ parseInt($json.startTimestamp) + 42 }}"
}
]
}
},
2023-04-18 03:28:05 -07:00
"id": "c5c53934-2677-4adf-a4df-b32f3b0642a2",
"name": "IF",
"type": "n8n-nodes-base.if",
"typeVersion": 1,
2023-04-18 03:28:05 -07:00
"position": [960, 420]
},
{
"parameters": {
2023-04-18 03:28:05 -07:00
"keepOnlySet": true,
"values": {
2023-04-18 03:28:05 -07:00
"boolean": [
{
2023-04-18 03:28:05 -07:00
"name": "success",
"value": true
}
]
},
"options": {}
},
2023-04-18 03:28:05 -07:00
"id": "a78417b6-d3f5-4bbc-916a-d4b9d46961cc",
"name": "Set1",
"type": "n8n-nodes-base.set",
"typeVersion": 1,
2023-04-18 03:28:05 -07:00
"position": [1180, 400]
},
{
"parameters": {
2023-04-18 03:28:05 -07:00
"value": "={{ $now }}",
"dataPropertyName": "afterTimestamp",
"toFormat": "X",
"options": {}
},
2023-04-18 03:28:05 -07:00
"id": "94f042ea-49d5-44ea-9ccf-93dac8d27d4a",
"name": "After",
"type": "n8n-nodes-base.dateTime",
"typeVersion": 1,
"position": [760, 420]
},
{
"parameters": {
"value": "={{ $now }}",
"dataPropertyName": "startTimestamp",
"toFormat": "X",
"options": {}
},
"id": "43f8a396-1bf7-484e-962c-120f677dfa51",
"name": "Before",
"type": "n8n-nodes-base.dateTime",
"typeVersion": 1,
2023-04-18 03:28:05 -07:00
"position": [360, 420]
}
],
"pinData": {
"Set1": [
{
"json": {
"success": true
}
}
]
},
"connections": {
"When clicking \"Execute Workflow\"": {
"main": [
[
{
2023-04-18 03:28:05 -07:00
"node": "Before",
"type": "main",
"index": 0
}
]
]
},
"Wait": {
"main": [
[
{
2023-04-18 03:28:05 -07:00
"node": "After",
"type": "main",
"index": 0
}
]
]
},
2023-04-18 03:28:05 -07:00
"IF": {
"main": [
[
{
2023-04-18 03:28:05 -07:00
"node": "Set1",
"type": "main",
"index": 0
}
]
]
},
2023-04-18 03:28:05 -07:00
"After": {
"main": [
[
{
2023-04-18 03:28:05 -07:00
"node": "IF",
"type": "main",
"index": 0
}
2023-04-18 03:28:05 -07:00
]
]
},
"Before": {
"main": [
[
{
"node": "Wait",
"type": "main",
"index": 0
}
]
]
}
},
"active": false,
"settings": {},
2023-04-18 03:28:05 -07:00
"versionId": "8ed794a0-5c04-4b8a-9a49-02c2c7f8003f",
"id": "500",
"meta": {
2023-04-18 03:28:05 -07:00
"instanceId": "8c8c5237b8e37b006a7adce87f4369350c58e41f3ca9de16196d3197f69eabcd"
},
"tags": []
}