mirror of
https://github.com/n8n-io/n8n.git
synced 2024-11-16 01:24:05 -08:00
163 lines
2.8 KiB
JSON
163 lines
2.8 KiB
JSON
{
|
|
"name": "[Unit Test] Wait Node",
|
|
"nodes": [
|
|
{
|
|
"parameters": {},
|
|
"id": "76e5dcfd-fdc7-472f-8832-bccc0eb122c0",
|
|
"name": "When clicking \"Execute Workflow\"",
|
|
"type": "n8n-nodes-base.manualTrigger",
|
|
"typeVersion": 1,
|
|
"position": [120, 420]
|
|
},
|
|
{
|
|
"parameters": {
|
|
"amount": 42,
|
|
"unit": "seconds"
|
|
},
|
|
"id": "37f2c758-6fb2-43ce-86ae-ca11ec957cbd",
|
|
"name": "Wait",
|
|
"type": "n8n-nodes-base.wait",
|
|
"typeVersion": 1,
|
|
"position": [560, 420],
|
|
"webhookId": "35edc971-c3e4-48cf-835d-4d73a4fd1fd8"
|
|
},
|
|
{
|
|
"parameters": {
|
|
"conditions": {
|
|
"number": [
|
|
{
|
|
"value1": "={{ parseInt($json.afterTimestamp) }}",
|
|
"operation": "largerEqual",
|
|
"value2": "={{ parseInt($json.startTimestamp) + 42 }}"
|
|
}
|
|
]
|
|
}
|
|
},
|
|
"id": "c5c53934-2677-4adf-a4df-b32f3b0642a2",
|
|
"name": "IF",
|
|
"type": "n8n-nodes-base.if",
|
|
"typeVersion": 1,
|
|
"position": [960, 420]
|
|
},
|
|
{
|
|
"parameters": {
|
|
"keepOnlySet": true,
|
|
"values": {
|
|
"boolean": [
|
|
{
|
|
"name": "success",
|
|
"value": true
|
|
}
|
|
]
|
|
},
|
|
"options": {}
|
|
},
|
|
"id": "a78417b6-d3f5-4bbc-916a-d4b9d46961cc",
|
|
"name": "Set1",
|
|
"type": "n8n-nodes-base.set",
|
|
"typeVersion": 1,
|
|
"position": [1180, 400]
|
|
},
|
|
{
|
|
"parameters": {
|
|
"value": "={{ $now }}",
|
|
"dataPropertyName": "afterTimestamp",
|
|
"toFormat": "X",
|
|
"options": {}
|
|
},
|
|
"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,
|
|
"position": [360, 420]
|
|
}
|
|
],
|
|
"pinData": {
|
|
"Set1": [
|
|
{
|
|
"json": {
|
|
"success": true
|
|
}
|
|
}
|
|
]
|
|
},
|
|
"connections": {
|
|
"When clicking \"Execute Workflow\"": {
|
|
"main": [
|
|
[
|
|
{
|
|
"node": "Before",
|
|
"type": "main",
|
|
"index": 0
|
|
}
|
|
]
|
|
]
|
|
},
|
|
"Wait": {
|
|
"main": [
|
|
[
|
|
{
|
|
"node": "After",
|
|
"type": "main",
|
|
"index": 0
|
|
}
|
|
]
|
|
]
|
|
},
|
|
"IF": {
|
|
"main": [
|
|
[
|
|
{
|
|
"node": "Set1",
|
|
"type": "main",
|
|
"index": 0
|
|
}
|
|
]
|
|
]
|
|
},
|
|
"After": {
|
|
"main": [
|
|
[
|
|
{
|
|
"node": "IF",
|
|
"type": "main",
|
|
"index": 0
|
|
}
|
|
]
|
|
]
|
|
},
|
|
"Before": {
|
|
"main": [
|
|
[
|
|
{
|
|
"node": "Wait",
|
|
"type": "main",
|
|
"index": 0
|
|
}
|
|
]
|
|
]
|
|
}
|
|
},
|
|
"active": false,
|
|
"settings": {},
|
|
"versionId": "8ed794a0-5c04-4b8a-9a49-02c2c7f8003f",
|
|
"id": "500",
|
|
"meta": {
|
|
"instanceId": "8c8c5237b8e37b006a7adce87f4369350c58e41f3ca9de16196d3197f69eabcd"
|
|
},
|
|
"tags": []
|
|
}
|