{
"schemaVersion": 1,
"id": "sample-object-fields-log",
"name": "对象字段 · 读取 ID 和名称",
"description": "无需插件的字段读取示例。遍历工作流输入 contacts 数组,两个读取对象字段节点分别读取 id 和 displayName,转换为文本后通过数据连线输出原始 ID 和名称;日志消息参数留空。不使用消息表达式,保留中文、表情和原始对象。",
"enabled": false,
"priority": 0,
"kind": "Graph",
"graph": {
"nodes": [
{
"id": "array-start",
"capabilityId": "core.start",
"name": "开始",
"x": 160,
"y": 180,
"parameters": {}
},
{
"id": "array-foreach",
"capabilityId": "core.foreach",
"name": "逐个遍历联系人",
"x": 1080,
"y": 180,
"parameters": {},
"children": {
"body": {
"nodes": [
{
"id": "item-start",
"capabilityId": "core.start",
"name": "本轮开始",
"x": 160,
"y": 180,
"parameters": {}
},
{
"id": "item-current",
"capabilityId": "core.foreach.current",
"name": "当前联系人",
"x": 620,
"y": 180,
"parameters": {}
},
{
"id": "contact-id",
"capabilityId": "core.object.get",
"name": "读取联系人 ID",
"x": 1080,
"y": 180,
"parameters": {
"path": "id"
}
},
{
"id": "id-text",
"capabilityId": "core.convert.string",
"name": "ID 转为文本",
"x": 1540,
"y": 180,
"parameters": {}
},
{
"id": "log-id",
"capabilityId": "core.log",
"name": "输出联系人 ID",
"x": 2000,
"y": 180,
"parameters": {}
},
{
"id": "contact-name",
"capabilityId": "core.object.get",
"name": "读取联系人名称",
"x": 1080,
"y": 700,
"parameters": {
"path": "displayName"
}
},
{
"id": "name-text",
"capabilityId": "core.convert.string",
"name": "名称转为文本",
"x": 1540,
"y": 700,
"parameters": {}
},
{
"id": "log-name",
"capabilityId": "core.log",
"name": "输出联系人名称",
"x": 2000,
"y": 700,
"parameters": {}
},
{
"id": "item-end",
"capabilityId": "core.end",
"name": "返回原始联系人",
"x": 2460,
"y": 700,
"parameters": {}
}
],
"edges": [
{
"id": "item-execute-0",
"fromNode": "item-start",
"fromPort": "next",
"toNode": "item-current",
"toPort": "in",
"kind": "Execution"
},
{
"id": "item-execute-1",
"fromNode": "item-current",
"fromPort": "next",
"toNode": "contact-id",
"toPort": "in",
"kind": "Execution"
},
{
"id": "item-execute-2",
"fromNode": "contact-id",
"fromPort": "next",
"toNode": "id-text",
"toPort": "in",
"kind": "Execution"
},
{
"id": "item-execute-3",
"fromNode": "id-text",
"fromPort": "next",
"toNode": "log-id",
"toPort": "in",
"kind": "Execution"
},
{
"id": "item-execute-4",
"fromNode": "log-id",
"fromPort": "next",
"toNode": "contact-name",
"toPort": "in",
"kind": "Execution"
},
{
"id": "item-execute-5",
"fromNode": "contact-name",
"fromPort": "next",
"toNode": "name-text",
"toPort": "in",
"kind": "Execution"
},
{
"id": "item-execute-6",
"fromNode": "name-text",
"fromPort": "next",
"toNode": "log-name",
"toPort": "in",
"kind": "Execution"
},
{
"id": "item-execute-7",
"fromNode": "log-name",
"fromPort": "next",
"toNode": "item-end",
"toPort": "in",
"kind": "Execution"
},
{
"id": "current-id",
"fromNode": "item-current",
"fromPort": "item",
"toNode": "contact-id",
"toPort": "value",
"kind": "Data"
},
{
"id": "id-convert",
"fromNode": "contact-id",
"fromPort": "value",
"toNode": "id-text",
"toPort": "value",
"kind": "Data"
},
{
"id": "id-message",
"fromNode": "id-text",
"fromPort": "value",
"toNode": "log-id",
"toPort": "message",
"kind": "Data"
},
{
"id": "current-name",
"fromNode": "item-current",
"fromPort": "item",
"toNode": "contact-name",
"toPort": "value",
"kind": "Data"
},
{
"id": "name-convert",
"fromNode": "contact-name",
"fromPort": "value",
"toNode": "name-text",
"toPort": "value",
"kind": "Data"
},
{
"id": "name-message",
"fromNode": "name-text",
"fromPort": "value",
"toNode": "log-name",
"toPort": "message",
"kind": "Data"
},
{
"id": "item-return",
"fromNode": "item-current",
"fromPort": "item",
"toNode": "item-end",
"toPort": "result",
"kind": "Data"
}
]
}
}
},
{
"id": "array-end",
"capabilityId": "core.end",
"name": "返回全部迭代结果",
"x": 1540,
"y": 180,
"parameters": {}
}
],
"edges": [
{
"id": "array-execute-end",
"fromNode": "array-foreach",
"fromPort": "next",
"toNode": "array-end",
"toPort": "in",
"kind": "Execution"
},
{
"id": "array-collect-results",
"fromNode": "array-foreach",
"fromPort": "results",
"toNode": "array-end",
"toPort": "result",
"kind": "Data"
},
{
"id": "start-foreach",
"fromNode": "array-start",
"fromPort": "next",
"toNode": "array-foreach",
"toPort": "in",
"kind": "Execution"
},
{
"id": "input-contacts",
"fromNode": "array-start",
"fromPort": "contacts",
"toNode": "array-foreach",
"toPort": "items",
"kind": "Data"
}
]
},
"code": "",
"inputs": [
{
"label": "联系人示例",
"name": "contacts",
"required": true,
"type": "Array"
}
],
"outputs": [
{
"name": "result",
"label": "全部迭代结果",
"type": "Array",
"description": "每轮 body 子图的输出对象,按输入数组顺序排列。"
}
],
"inputDefaults": {
"contacts": [
{
"id": "781300000000001",
"displayName": "张三 🌚😀"
},
{
"id": "781300000000002",
"displayName": "李四 👨👩👧👦👍🏽🇨🇳"
}
]
},
"variables": {},
"pluginVersions": {},
"triggers": [],
"modifiedAt": "2026-10-13T00:00:00+08:00"
}
{
"schemaVersion": 1,
"id": "sample-object-fields-log",
"name": "对象字段 · 读取 ID 和名称",
"description": "无需插件的字段读取示例。遍历工作流输入 contacts 数组,两个读取对象字段节点分别读取 id 和 displayName,转换为文本后通过数据连线输出原始 ID 和名称;日志消息参数留空。不使用消息表达式,保留中文、表情和原始对象。",
"enabled": false,
"priority": 0,
"kind": "Graph",
"graph": {
"nodes": [
{
"id": "array-start",
"capabilityId": "core.start",
"name": "开始",
"x": 160,
"y": 180,
"parameters": {}
},
{
"id": "array-foreach",
"capabilityId": "core.foreach",
"name": "逐个遍历联系人",
"x": 1080,
"y": 180,
"parameters": {},
"children": {
"body": {
"nodes": [
{
"id": "item-start",
"capabilityId": "core.start",
"name": "本轮开始",
"x": 160,
"y": 180,
"parameters": {}
},
{
"id": "item-current",
"capabilityId": "core.foreach.current",
"name": "当前联系人",
"x": 620,
"y": 180,
"parameters": {}
},
{
"id": "contact-id",
"capabilityId": "core.object.get",
"name": "读取联系人 ID",
"x": 1080,
"y": 180,
"parameters": {
"path": "id"
}
},
{
"id": "id-text",
"capabilityId": "core.convert.string",
"name": "ID 转为文本",
"x": 1540,
"y": 180,
"parameters": {}
},
{
"id": "log-id",
"capabilityId": "core.log",
"name": "输出联系人 ID",
"x": 2000,
"y": 180,
"parameters": {}
},
{
"id": "contact-name",
"capabilityId": "core.object.get",
"name": "读取联系人名称",
"x": 1080,
"y": 700,
"parameters": {
"path": "displayName"
}
},
{
"id": "name-text",
"capabilityId": "core.convert.string",
"name": "名称转为文本",
"x": 1540,
"y": 700,
"parameters": {}
},
{
"id": "log-name",
"capabilityId": "core.log",
"name": "输出联系人名称",
"x": 2000,
"y": 700,
"parameters": {}
},
{
"id": "item-end",
"capabilityId": "core.end",
"name": "返回原始联系人",
"x": 2460,
"y": 700,
"parameters": {}
}
],
"edges": [
{
"id": "item-execute-0",
"fromNode": "item-start",
"fromPort": "next",
"toNode": "item-current",
"toPort": "in",
"kind": "Execution"
},
{
"id": "item-execute-1",
"fromNode": "item-current",
"fromPort": "next",
"toNode": "contact-id",
"toPort": "in",
"kind": "Execution"
},
{
"id": "item-execute-2",
"fromNode": "contact-id",
"fromPort": "next",
"toNode": "id-text",
"toPort": "in",
"kind": "Execution"
},
{
"id": "item-execute-3",
"fromNode": "id-text",
"fromPort": "next",
"toNode": "log-id",
"toPort": "in",
"kind": "Execution"
},
{
"id": "item-execute-4",
"fromNode": "log-id",
"fromPort": "next",
"toNode": "contact-name",
"toPort": "in",
"kind": "Execution"
},
{
"id": "item-execute-5",
"fromNode": "contact-name",
"fromPort": "next",
"toNode": "name-text",
"toPort": "in",
"kind": "Execution"
},
{
"id": "item-execute-6",
"fromNode": "name-text",
"fromPort": "next",
"toNode": "log-name",
"toPort": "in",
"kind": "Execution"
},
{
"id": "item-execute-7",
"fromNode": "log-name",
"fromPort": "next",
"toNode": "item-end",
"toPort": "in",
"kind": "Execution"
},
{
"id": "current-id",
"fromNode": "item-current",
"fromPort": "item",
"toNode": "contact-id",
"toPort": "value",
"kind": "Data"
},
{
"id": "id-convert",
"fromNode": "contact-id",
"fromPort": "value",
"toNode": "id-text",
"toPort": "value",
"kind": "Data"
},
{
"id": "id-message",
"fromNode": "id-text",
"fromPort": "value",
"toNode": "log-id",
"toPort": "message",
"kind": "Data"
},
{
"id": "current-name",
"fromNode": "item-current",
"fromPort": "item",
"toNode": "contact-name",
"toPort": "value",
"kind": "Data"
},
{
"id": "name-convert",
"fromNode": "contact-name",
"fromPort": "value",
"toNode": "name-text",
"toPort": "value",
"kind": "Data"
},
{
"id": "name-message",
"fromNode": "name-text",
"fromPort": "value",
"toNode": "log-name",
"toPort": "message",
"kind": "Data"
},
{
"id": "item-return",
"fromNode": "item-current",
"fromPort": "item",
"toNode": "item-end",
"toPort": "result",
"kind": "Data"
}
]
}
}
},
{
"id": "array-end",
"capabilityId": "core.end",
"name": "返回全部迭代结果",
"x": 1540,
"y": 180,
"parameters": {}
}
],
"edges": [
{
"id": "array-execute-end",
"fromNode": "array-foreach",
"fromPort": "next",
"toNode": "array-end",
"toPort": "in",
"kind": "Execution"
},
{
"id": "array-collect-results",
"fromNode": "array-foreach",
"fromPort": "results",
"toNode": "array-end",
"toPort": "result",
"kind": "Data"
},
{
"id": "start-foreach",
"fromNode": "array-start",
"fromPort": "next",
"toNode": "array-foreach",
"toPort": "in",
"kind": "Execution"
},
{
"id": "input-contacts",
"fromNode": "array-start",
"fromPort": "contacts",
"toNode": "array-foreach",
"toPort": "items",
"kind": "Data"
}
]
},
"code": "",
"inputs": [
{
"label": "联系人示例",
"name": "contacts",
"required": true,
"type": "Array"
}
],
"outputs": [
{
"name": "result",
"label": "全部迭代结果",
"type": "Array",
"description": "每轮 body 子图的输出对象,按输入数组顺序排列。"
}
],
"inputDefaults": {
"contacts": [
{
"id": "781300000000001",
"displayName": "张三 🌚😀"
},
{
"id": "781300000000002",
"displayName": "李四 👨👩👧👦👍🏽🇨🇳"
}
]
},
"variables": {},
"pluginVersions": {},
"triggers": [],
"modifiedAt": "2026-10-13T00:00:00+08:00"
}