Skip to main content

节点模版管理

节点模版是为用户定制化节点的一种方式,用户可以在节点模版中定义节点的资源、配置信息。在工作流编排的过程中使用节点模版,以提升任务接入效率。

模版创建

具体参数

参数名TypeRequired参数说明
模版名称stringtrue
模版类型stringfalse包含函数模版,插件模版,逻辑模版
categorystringtrue任务的分类,详情见category
iconstringfalse节点的展示icon。详见下文节点图标
模版任务默认yamlstringfalse详见下文模版任务默认yaml
模版输入结构stringfalse节点输入参数; 参数格式为JSON Schema
模版输出结构stringfalse节点输出参数; 参数格式为JSON Schema

参数详情

节点图标

目前支持图片base64和Ant Design Vue图标

  • 图片base64
    • 将图片转成base64格式
    • Examples
      iVBORw0KGgoAAAANSUhEUgAAAIAAAACACAYAAADDPmHLAAAAAXNSR0IArs4c6QAAC3BJREFUeF7tXXuMHVUZ/76ZvY3txgpiAkXbGEUgGiUGjFpLrYaiAimiGElQULStJljZ3Xu+uRur24vdvXPO7G6RWJUiqICpj0SQR4zFR1UqUcEHBnwU8f2MQdSuG7d75zOn3C232zt3Zu6de+64c07SP7rzne/x+373mzmPOYNgW6ERwEJHb4MHS4CCk8ASwBKg4AgUPHxbASwBCo5AwcO3FcASoOAIFDx8WwEsAQqOQMHDtxXAEqDgCBQ8fFsBLAEKjkDBw7cVwBKg4AgUPHxbASwBCo5AwcO3FcASoOAIFDx8WwEsAQqOQMHDtxXAEqDgCBQ8fFsBLAGWHgJSyh2IeCkAvCjj6PbX6/Xq6Ojo/oz19k3dkqwASqlvAsCGHqG6n4he0yPdxtUuVQJwL5EkoiWD25IJpDnhSilLgIS/AEuAhEA1i9kK0AFoJrvYCpAc7UJVgLS/3CgipdWTPB3mJS0B2mBuCWCekJlYzCpxWenJJKgeKcllBZienn7m4cOHt+mYmfmLlUrl4TTxZ5W4rPQEQXBeGIbrdAye5+1IE0uvZXNHgLGxsZWDg4P/bAr83wCwi4jGkoChlDoXAL7dSjbtvTuKAI7jnFsul++L80dKearOOSIeIfNCS+tHnJ1urueOAEqp7wPAy1oE9XMA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wZ8+x/KkOLMeCJQyAAAAABJRU5ErkJggg==
  • Ant Design Vue图标
    • 格式: ant-design:{icon}
    • 示例: ant-design:api-outlined

模版任务默认yaml

该参数是展示节点的默认配置,具体参数详见任务属性

  • Examples
    • HTTP协议派发器模版制作
      resourceName: "http://www.sample.com/execute.json"
      resourceProtocal: "http"
      name: "httpDemo"
      category: "function"
      pattern: "task_sync"
    • 阿里云模型服务派发器模版制作
          resourceName: "aliyun_ai://aliyun"
      resourceProtocal: "aliyun_ai"
      name: "aliyunAiTemplate"
      category: "function"
      pattern: "task_sync"