AutomationFlowsDevOps › 分支处理工作流

分支处理工作流

分支处理工作流. Event-driven trigger; 5 nodes.

Event trigger★★☆☆☆ complexity5 nodes
DevOps Trigger: Event Nodes: 5 Complexity: ★★☆☆☆ Added:

The workflow JSON

Copy or download the full n8n JSON below. Paste it into a new n8n workflow, add your credentials, activate. Full import guide →

Download .json
{
  "name": "\u5206\u652f\u5904\u7406\u5de5\u4f5c\u6d41",
  "nodes": [
    {
      "parameters": {},
      "id": "f1d4b3e2-8c9a-4b5d-9e8f-1234567890ab",
      "name": "\u624b\u52a8\u89e6\u53d1",
      "type": "n8n-nodes-base.manualTrigger",
      "typeVersion": 1,
      "position": [
        240,
        300
      ]
    },
    {
      "parameters": {
        "values": {
          "string": [
            {
              "name": "\u7528\u6237\u7c7b\u578b",
              "value": "VIP"
            },
            {
              "name": "\u8ba2\u5355\u91d1\u989d",
              "value": "1500"
            },
            {
              "name": "\u7528\u6237\u540d",
              "value": "\u5f20\u4e09"
            }
          ]
        },
        "options": {}
      },
      "id": "a2b3c4d5-1234-5678-9abc-def123456789",
      "name": "\u8bbe\u7f6e\u6570\u636e",
      "type": "n8n-nodes-base.set",
      "typeVersion": 3,
      "position": [
        460,
        300
      ]
    },
    {
      "parameters": {
        "conditions": {
          "options": {
            "caseSensitive": true,
            "leftValue": "",
            "typeValidation": "strict"
          },
          "conditions": [
            {
              "id": "condition1",
              "leftValue": "={{ $json.\u7528\u6237\u7c7b\u578b }}",
              "rightValue": "VIP",
              "operator": {
                "type": "string",
                "operation": "equals"
              }
            },
            {
              "id": "condition2",
              "leftValue": "={{ $json.\u8ba2\u5355\u91d1\u989d }}",
              "rightValue": "1000",
              "operator": {
                "type": "number",
                "operation": "gt"
              }
            }
          ],
          "combinator": "and"
        },
        "options": {}
      },
      "id": "c3d4e5f6-5678-9abc-def1-23456789abcd",
      "name": "\u6761\u4ef6\u5224\u65ad",
      "type": "n8n-nodes-base.if",
      "typeVersion": 2,
      "position": [
        680,
        300
      ]
    },
    {
      "parameters": {
        "values": {
          "string": [
            {
              "name": "\u5904\u7406\u65b9\u5f0f",
              "value": "VIP\u4e13\u5c5e\u4f18\u60e0"
            },
            {
              "name": "\u6298\u6263\u7387",
              "value": "20%"
            }
          ]
        },
        "options": {}
      },
      "id": "d4e5f6g7-9abc-def1-2345-6789abcdef12",
      "name": "VIP\u5904\u7406",
      "type": "n8n-nodes-base.set",
      "typeVersion": 3,
      "position": [
        900,
        200
      ]
    },
    {
      "parameters": {
        "values": {
          "string": [
            {
              "name": "\u5904\u7406\u65b9\u5f0f",
              "value": "\u666e\u901a\u7528\u6237\u6807\u51c6\u6d41\u7a0b"
            },
            {
              "name": "\u6298\u6263\u7387",
              "value": "5%"
            }
          ]
        },
        "options": {}
      },
      "id": "e5f6g7h8-def1-2345-6789-abcdef123456",
      "name": "\u666e\u901a\u5904\u7406",
      "type": "n8n-nodes-base.set",
      "typeVersion": 3,
      "position": [
        900,
        400
      ]
    }
  ],
  "connections": {
    "\u624b\u52a8\u89e6\u53d1": {
      "main": [
        [
          {
            "node": "\u8bbe\u7f6e\u6570\u636e",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "\u8bbe\u7f6e\u6570\u636e": {
      "main": [
        [
          {
            "node": "\u6761\u4ef6\u5224\u65ad",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "\u6761\u4ef6\u5224\u65ad": {
      "main": [
        [
          {
            "node": "VIP\u5904\u7406",
            "type": "main",
            "index": 0
          }
        ],
        [
          {
            "node": "\u666e\u901a\u5904\u7406",
            "type": "main",
            "index": 0
          }
        ]
      ]
    }
  },
  "createdAt": "2024-12-17T10:00:00.000Z",
  "updatedAt": "2024-12-17T10:00:00.000Z",
  "settings": {
    "executionOrder": "v1"
  },
  "staticData": null,
  "versionId": "12345678-1234-1234-1234-123456789abc"
}
Pro

For the full experience including quality scoring and batch install features for each workflow upgrade to Pro

About this workflow

分支处理工作流. Event-driven trigger; 5 nodes.

Source: https://github.com/lengzhao/lengzhao.github.io/blob/64b5ebed8d3117e82111fb61b33e830eb9c23003/examples/n8n-branch-example.json — original creator credit. Request a take-down →

More DevOps workflows → · Browse all categories →

Related workflows

Workflows that share integrations, category, or trigger type with this one. All free to copy and import.

DevOps

Turn On A Light To A Specific Color On Any Update In Github Repository. Uses githubTrigger, homeAssistant, stickyNote. Event-driven trigger; 4 nodes.

Github Trigger, Home Assistant
DevOps

This workflow turns a light red when an update is made to a GitHub repository. By default, updates include pull requests, issues, pushes just to name a few. GitHub credentials. Home Assistant credenti

Github Trigger, Home Assistant
DevOps

Trigger a build in Travis CI when code changes are push to a GitHub repo. Uses githubTrigger, travisCi. Event-driven trigger; 4 nodes.

Github Trigger, Travis CI
DevOps

Get Details Of A Gitlab Repository. Uses manualTrigger, gitlab. Event-driven trigger; 2 nodes.

GitLab
DevOps

Get The Community Profile Of A Repository. Uses manualTrigger, github. Event-driven trigger; 2 nodes.

GitHub