# 结束节点

工作流的结束节点,用于在工作流运行结束后返回结果信息。

# 数据结构定义

结束节点的 ID 固定为 900001

export interface EndNodeDef {
  id: '900001';
  type: WorkflowNodeTypeEnum.End;
  data: {
    title: string;
    inputsValues: Record<string, IFlowValue>;
    inputs: Record<string, IJsonSchema>;
  }
}

# 范例

{
  id: '900001',
  type: 'end',
  data: {
    title: '结束',
    inputsValues: {
      result: {
        type: 'constant',
        content: 'Flow execution completed.',
      },
    },
    inputs: {
      type: 'object',
      properties: {
        result: {
          type: 'string',
        },
      },
    },
  },
}