End 节点(type = "end")
用于声明工作流输出。
Schema
- 参考: EndNode.json
- 核心字段:
data.inputs:约束该节点可接受的输入(常见为result)data.inputsValues:指定来源(ref/constant/expression等)
示例
把 Start 的 query 输出到 End 的 result:
{
"nodes": [
{
"id": "start_0",
"type": "start",
"data": {
"outputs": {
"type": "object",
"properties": { "query": { "type": "string" } }
}
}
},
{
"id": "end_0",
"type": "end",
"data": {
"title": "End",
"inputs": {
"type": "object",
"properties": { "result": { "type": "string" } }
},
"inputsValues": {
"result": { "type": "ref", "content": ["start_0", "query"] }
}
}
}
],
"edges": [{ "sourceNodeID": "start_0", "targetNodeID": "end_0" }]
}