| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119 |
- {
- "name": "DF_DO202601130001_仓库库存汇总表",
- "nodes": [
- {
- "parameters": {},
- "id": "trigger-001",
- "name": "Manual Trigger",
- "type": "n8n-nodes-base.manualTrigger",
- "typeVersion": 1,
- "position": [250, 300]
- },
- {
- "parameters": {
- "command": "=cd {{ $env.DATAOPS_PROJECT_ROOT || '/opt/dataops-platform' }} && python datafactory/scripts/DF_DO202601130001.py"
- },
- "id": "exec-001",
- "name": "Execute DataFlow Script",
- "type": "n8n-nodes-base.executeCommand",
- "typeVersion": 1,
- "position": [450, 300]
- },
- {
- "parameters": {
- "conditions": {
- "boolean": [
- {
- "value1": "={{ $json.exitCode === 0 }}",
- "value2": true
- }
- ]
- }
- },
- "id": "check-001",
- "name": "Check Result",
- "type": "n8n-nodes-base.if",
- "typeVersion": 1,
- "position": [650, 300]
- },
- {
- "parameters": {
- "functionCode": "return [{ json: { success: true, message: '仓库库存汇总表数据流程执行成功', workflow: 'DF_DO202601130001' } }];"
- },
- "id": "success-001",
- "name": "Success Response",
- "type": "n8n-nodes-base.function",
- "typeVersion": 1,
- "position": [850, 200]
- },
- {
- "parameters": {
- "functionCode": "return [{ json: { success: false, message: '仓库库存汇总表数据流程执行失败', error: $json.stderr || $json.stdout, workflow: 'DF_DO202601130001' } }];"
- },
- "id": "error-001",
- "name": "Error Response",
- "type": "n8n-nodes-base.function",
- "typeVersion": 1,
- "position": [850, 400]
- }
- ],
- "connections": {
- "Manual Trigger": {
- "main": [
- [
- {
- "node": "Execute DataFlow Script",
- "type": "main",
- "index": 0
- }
- ]
- ]
- },
- "Execute DataFlow Script": {
- "main": [
- [
- {
- "node": "Check Result",
- "type": "main",
- "index": 0
- }
- ]
- ]
- },
- "Check Result": {
- "main": [
- [
- {
- "node": "Success Response",
- "type": "main",
- "index": 0
- }
- ],
- [
- {
- "node": "Error Response",
- "type": "main",
- "index": 0
- }
- ]
- ]
- }
- },
- "active": false,
- "settings": {
- "executionOrder": "v1"
- },
- "versionId": "1",
- "meta": {
- "templateCredsSetupCompleted": false,
- "instanceId": "dataops-platform"
- },
- "tags": [
- {
- "createdAt": "2026-01-13T19:30:00.000Z",
- "updatedAt": "2026-01-13T19:30:00.000Z",
- "id": "2",
- "name": "数据流程"
- }
- ]
- }
|