Files
n8n/packages/nodes-base/nodes/Switch/V2/test/switch.expression.workflow.json
alighasami 3d5eaf9445
Security: Sync from Public / sync-from-public (push) Has been cancelled
Test: Benchmark Nightly / build (push) Has been cancelled
Test: Benchmark Nightly / Notify Cats on failure (push) Has been cancelled
CI: Python / Checks (push) Has been cancelled
Test: Evals Python / Workflow Comparison Python (push) Has been cancelled
Util: Check Docs URLs / check-docs-urls (push) Has been cancelled
Test: Visual Storybook / Cloudflare Pages (push) Has been cancelled
Test: E2E Performance / build-and-test-performance (push) Has been cancelled
Test: Workflows Nightly / Run Workflow Tests (push) Has been cancelled
Util: Cleanup CI Docker Images / Delete stale CI images (push) Has been cancelled
Test: Benchmark Destroy Env / build (push) Has been cancelled
Util: Update Node Popularity / update-popularity (push) Has been cancelled
Test: E2E Coverage Weekly / Coverage Tests (push) Has been cancelled
first commit
2026-03-17 16:22:57 +03:30

168 lines
3.0 KiB
JSON

{
"name": "My workflow 109",
"nodes": [
{
"parameters": {},
"id": "7ae16f96-5c2c-44a3-9f96-167e426336f9",
"name": "When clicking \"Execute Workflow\"",
"type": "n8n-nodes-base.manualTrigger",
"typeVersion": 1,
"position": [620, 720]
},
{
"parameters": {
"data": [
{
"output": "third",
"text": "third output text"
},
{
"output": "fourth",
"text": "fourth output text"
},
{
"output": "first",
"text": "first output text"
},
{
"output": "second",
"text": "second output text"
}
]
},
"id": "31e9aada-7aa2-4c62-8e15-0cecb91788e4",
"name": "Code",
"type": "n8n-nodes-testing.testData",
"typeVersion": 1,
"position": [840, 720]
},
{
"parameters": {},
"id": "cf10b4c7-16a6-4c16-a17c-7b83f954f7b9",
"name": "No Operation, do nothing",
"type": "n8n-nodes-base.noOp",
"typeVersion": 1,
"position": [1380, 560]
},
{
"parameters": {},
"id": "3e7e7f4a-bff9-4ce1-a5e5-58505853260f",
"name": "No Operation, do nothing1",
"type": "n8n-nodes-base.noOp",
"typeVersion": 1,
"position": [1380, 720]
},
{
"parameters": {},
"id": "205f59d6-52f5-4412-9511-b680a91d0be2",
"name": "No Operation, do nothing2",
"type": "n8n-nodes-base.noOp",
"typeVersion": 1,
"position": [1380, 880]
},
{
"parameters": {
"mode": "expression",
"output": "={{ Math.max(0, ['first', 'second', 'third'].indexOf( $json.output)) }}",
"outputsAmount": 3
},
"id": "9c3dc163-0103-45c2-8455-e6ab3e84679c",
"name": "Switch1",
"type": "n8n-nodes-base.switch",
"typeVersion": 2,
"position": [1100, 720]
}
],
"pinData": {
"No Operation, do nothing2": [
{
"json": {
"output": "third",
"text": "third output text"
}
}
],
"No Operation, do nothing1": [
{
"json": {
"output": "second",
"text": "second output text"
}
}
],
"No Operation, do nothing": [
{
"json": {
"output": "fourth",
"text": "fourth output text"
}
},
{
"json": {
"output": "first",
"text": "first output text"
}
}
]
},
"connections": {
"When clicking \"Execute Workflow\"": {
"main": [
[
{
"node": "Code",
"type": "main",
"index": 0
}
]
]
},
"Code": {
"main": [
[
{
"node": "Switch1",
"type": "main",
"index": 0
}
]
]
},
"Switch1": {
"main": [
[
{
"node": "No Operation, do nothing",
"type": "main",
"index": 0
}
],
[
{
"node": "No Operation, do nothing1",
"type": "main",
"index": 0
}
],
[
{
"node": "No Operation, do nothing2",
"type": "main",
"index": 0
}
]
]
}
},
"active": false,
"settings": {
"executionOrder": "v1"
},
"versionId": "cca0f0b9-d01e-435b-9125-9616007f4aea",
"id": "xjPY8ZYJK53G6nQ1",
"meta": {
"instanceId": "ec7a5f4ffdb34436e59d23eaccb5015b5238de2a877e205b28572bf1ffecfe04"
},
"tags": []
}